synapse-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Prabath Abeysekara (JIRA)" <j...@apache.org>
Subject [jira] [Issue Comment Edited] (SYNAPSE-792) Enabling Tasks to be run at a user specified time.
Date Wed, 24 Aug 2011 09:30:37 GMT

    [ https://issues.apache.org/jira/browse/SYNAPSE-792?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13090107#comment-13090107
] 

Prabath Abeysekara edited comment on SYNAPSE-792 at 8/24/11 9:30 AM:
---------------------------------------------------------------------

To achieve the aforementioned task I'd like to come up with the following approach.

In the serialized task description, we add another two child elements representing startTime
and endTime fields defined in the task description. There, the user is given the ability to
specify the time format to be used upon the startTime and the endTime as an attribute of those
two elements. (This is intended to use while serializing the task from the task description
object and vise versa) So, at the end, the two elements would look like the following.

Start time element
===============
<task:startTime dateTimeFormat="yyyy/MM/dd HH:mm:ss">2011/08/24 09:22:00</task:startTime>

End time element
=============
<task:endTime dateTimeFormat="yyyy/MM/dd HH:mm:ss">2011/08/24 09:22:00</task:endTime>

      was (Author: prabathabeysekara):
    To achieve the aforementioned task I'd like to come up with the following approach.

In the serialized task description, we add another two child elements representing startTime
and endTime fields defined in the task description. There, the user is given the ability to
specify the time format to be used upon the startTime and the endTime as an attribute of those
two elements. (This is intended to use while serializing the task from the task description
object and vise versa) So, at the end, the two elements would look like the following.

Start time element
===============
<task:startTime dateTimeFormat="yyyy/MM/dd HH:mm:ss">2011/08/24 09:22:00</task:startTime>

End time element
=============
<task:endTime dateTimeFormat="yyyy/MM/dd HH:mm:ss">2011/08/24 09:22:00</task:startTime>
  
> Enabling Tasks to be run at a user specified time.
> --------------------------------------------------
>
>                 Key: SYNAPSE-792
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-792
>             Project: Synapse
>          Issue Type: Improvement
>            Reporter: Prabath Abeysekara
>
> Currently synapse tasks do not support the task attribute "startTime" and "endTime" which
enables a particular user to configure a particular task to be run/stopped at a user specified
time. Although "startTime" and "endTime" are attribute of the TaskDescription itself, TaskDescriptionSerializer
and TaskDescriptionFactory do not take them into account while serializing and de-serializing
Task Descriptions. I believe, this would be a nice to have feature under synapse task so that
it would enable users to execute/stop the desired tasks at any given time depending on the
requirement.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@synapse.apache.org
For additional commands, e-mail: dev-help@synapse.apache.org


Mime
View raw message