Hi HuiSheng:
Because the process never reached the next node "remove-file", that is why executeJob() was added to the event handler. (By the way, during the process the job entry has been automatically removed from jbpm4_job table though.)
In the same process, if change the timer's node "generate-file" to the following, then it works (i.e. it reached the "remove-file" node):
<state g="222,123,147,40" name="generate-file">
<on event="start">
<event-listener>
<field name="msg"><string value="entered the (generate-file) state node."/></field>
</event-listener>
</on>
<transition g="-71,-15" name="timeout" to="remove-file">
<timer duedate="10 seconds"/>
</transition>
</state>
Why it does not go to the next node if use the "timeout" event handler and how to make it work ?
Thanks a lot for your help.