[jboss-user] [jBPM] - Trigger timer every 1st day of the month
Maciej Swiderski
do-not-reply at jboss.com
Mon Jun 7 15:52:06 EDT 2010
Maciej Swiderski [http://community.jboss.org/people/swiderski.maciej] replied to the discussion
"Trigger timer every 1st day of the month"
To view the discussion, visit: http://community.jboss.org/message/546571#546571
--------------------------------------------------------------
Hi,
it depends what you want to do when timer expires. In general you could use duedatetime attribute of timer node:
<timer duedatetime='21:49 07/06/2010' />
The default date format is as follows:
HH:mm dd/MM/yyyy
It has some limitations, for example if you want to set such a timer on transition with repeat enabled it will not work properly. But if you use such timer together with event listeners it works properly because it reuses the timer.
Another thing could be to use cron based expressions but it requires a bit of development, If you would like to have cron expression support please file a jira issue for that. By cron expression here I mean Quartz cron expressions.
HTH
Maciej
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/546571#546571]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100607/cee52894/attachment.html
More information about the jboss-user
mailing list