You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@synapse.apache.org by "Prabath Abeysekara (JIRA)" <ji...@apache.org> on 2011/08/24 11:30:37 UTC

[jira] [Commented] (SYNAPSE-792) Enabling Tasks to be run at a user specified time.

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

Prabath Abeysekara commented on SYNAPSE-792:
--------------------------------------------

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