-
1. Re: Trigger timer every 1st day of the month
swiderski.maciej Jun 7, 2010 3:51 PM (in response to dbht)1 of 1 people found this helpfulHi,
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
-
2. Re: Trigger timer every 1st day of the month
dbht Jun 7, 2010 7:38 PM (in response to swiderski.maciej)Hi Maciej,
Thank you for your clarification! Awezome!
Of course cron expressions are so good but there is no hurry for now....
BTW: How can I contribute (with coding) to this project? I'm a very interested in this process engine and I'm thinking of start contributing!
Regards,
Davi.
-
3. Re: Trigger timer every 1st day of the month
rebody Jun 7, 2010 8:23 PM (in response to dbht)Hi Davi,
Glad to hear that you are interesting in contributing, please sign http://www.jboss.org/contributor first, and Alejandro will reply you later. As you see, he is the Chief.
And for CRON, I just find there is an org.jbpm.pvm.internal.cal.CronExpression in the trunk. Not sure how to use it. I think I should do some test for it. If I got any result, I will reply here.
-
4. Re: Trigger timer every 1st day of the month
swiderski.maciej Jun 8, 2010 2:07 AM (in response to rebody)HuiSheng Xu wrote:
And for CRON, I just find there is an org.jbpm.pvm.internal.cal.CronExpression in the trunk. Not sure how to use it. I think I should do some test for it. If I got any result, I will reply here.
Yes, you are right. It is partially implemented. I have tested that yesterday and with quite small adds it can be achieved. I think it was mainly introduced for BPMN support. If you are interested I could provide you with a patch for this later today.
-
5. Re: Trigger timer every 1st day of the month
rebody Jun 8, 2010 2:31 AM (in response to swiderski.maciej)Hi Maciej,
Thank you very much. Maybe we could add the feature into userguide or developer guide.
-
6. Re: Trigger timer every 1st day of the month
swiderski.maciej Jun 8, 2010 4:28 AM (in response to rebody)I think we don't have any jira for cron feature for JPDL.
Either way I will create a patch for that with some unit tests. If it comes to documentation for that it is definitely a good idea.
-
7. Re: Trigger timer every 1st day of the month
aguizar Jun 14, 2010 9:00 PM (in response to swiderski.maciej)I think we don't have any jira for cron feature for JPDL.
Either way I will create a patch for that with some unit tests. If it comes to documentation for that it is definitely a good idea.
This would make great material for a 4.5 release. Could any of you create the JIRA issue?
-
8. Re: Trigger timer every 1st day of the month
rebody Jun 14, 2010 10:56 PM (in response to aguizar)Hi Alejandro,
New issue on JIRA: JBPM-2889.