JBoss Community

Advice on how to approach CRON based BPMN2 processes

created by olddave in jBPM - View the full discussion

Hi,

 

I have the need to run Processes, with no human tasks, on a repeating basis, normally 3 times a day, weekdays and excluding holidays. But I also need to run the same tasks on an ad hoc basis. So if I code a new workitem that is a Start task that uses Quartz scheduler (thus holidays can be supported) I could not run that on an ad hoc basis. Alternately I could use a normal Start task and have a diverging gateway as the first node that tests for a boolean param that represents "run now" it could diverge to a converging gateway and thus to the actual first node that does real work in the Process, the alternate path would hit the new Timer workitem that I would have to code that also used Quartz, this would then hit a converging gateway with the direct run now path to start the actual Process that does the work I need. Another alternative is theh start task with Quartz and also an integrated parameter test for pass through.

 

Any suggestions on how this problem scenario is best solved?

 

thx.

 

Ed

Reply to this message by going to Community

Start a new discussion in jBPM at Community