How to schedule a weekly BPM process

287 views
Skip to first unread message

james...@unisys.com

unread,
Oct 3, 2014, 10:27:05 AM10/3/14
to jbpm-...@googlegroups.com
I have a "housekeeping" BPM process that needs to execute once a week.
Currently, my team has developed a long-running BPM process containing a loop that never terminates. The BPM process diagram has a timer at the end of the loop to reschedule when to start the next loop iteration. If the jbpm server is shutdown and restarted, we are
depending on this active process instance to automatically get restarted by jbpm runtimes and resume the  timer looping behavior.
Is this an appropriate use of a timer?
Are there other BPM mechanisms that would allow the BPM diagram to contain a clean start and end node? Perhaps there is a event-based BPM start node that I have overlooked?
 
Or is it better to have the BPM process contain a "standard" start and terminate node and use the Operating System task scheduler to initiate each new execution of the housekeeping process?

Maciej Swiderski

unread,
Oct 3, 2014, 10:48:12 AM10/3/14
to james...@unisys.com, jbpm-...@googlegroups.com
you can use start timer event in your process definition and then use cron based scheduling, see an example here: https://github.com/droolsjbpm/jbpm/blob/master/jbpm-bpmn2/src/test/resources/BPMN2-TimerStartCron.bpmn2

Maciej
--
You received this message because you are subscribed to the Google Groups "jBPM Usage" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jbpm-usage+...@googlegroups.com.
To post to this group, send email to jbpm-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jbpm-usage/39024849-1c0c-4b8f-b77e-3b44eae5c50e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

james...@unisys.com

unread,
Oct 13, 2014, 12:43:21 PM10/13/14
to jbpm-...@googlegroups.com, james...@unisys.com
Thanks Maciej.
Your suggestion showed us how to properly use a timer-based Start Event.
Message has been deleted

Neeraj Pandey

unread,
Dec 30, 2015, 1:44:11 AM12/30/15
to jBPM Usage, james...@unisys.com
Hi Maciej ,

I am trying to learn the jbpm controls and I followed the link that you provided.
My process contains a start node(timer)->script node->end node.
timer node is set with a cron 
0/1 * * * * ? now its running every 1 sec. I have changed cron deplyed it again but the previous cron is keep on running.
How can i stop this process to run.

Maciej Swiderski

unread,
Dec 30, 2015, 2:28:02 AM12/30/15
to Neeraj Pandey, jBPM Usage, james...@unisys.com
you need to first undeploy the project that contains that process

Maciej

Neeraj Pandey

unread,
Dec 30, 2015, 2:32:15 AM12/30/15
to jBPM Usage, gpk.pand...@gmail.com, james...@unisys.com
Thanks for the guidance Maciej,
Reply all
Reply to author
Forward
0 new messages