jbpm的例子之五 使用timer

jbpm的版本为3.2.3

timer本身是由JobExecutor执行的。所以要先启动它,
JbpmConfiguration.getInstance().startJobExecutor();

action必须实现ActionHandler。

<process-definition name='testTimer'>


<start-state>
<transition to='start' />
</start-state>

<state name='start'>
<timer name='reminder' duedate='1 seconds' repeat='2 seconds'>
<action class='test.timer.Remainder' />
</timer>
<transition to='end' />
</state>

<end-state name='end' />

</process-definition>


你可能感兴趣的:(jbpm)