[jboss-user] [jBPM] - Re: Change a Timer length/period at runtime possible?

Ryan Peterson do-not-reply at jboss.com
Fri Oct 28 11:57:31 EDT 2011


Ryan Peterson [http://community.jboss.org/people/rrpeterson] created the discussion

"Re: Change a Timer length/period at runtime possible?"

To view the discussion, visit: http://community.jboss.org/message/634079#634079

--------------------------------------------------------------
A bit more advice from krisv and I was able to get this to work:

After migrating to the new process, I cancel the old timer, then once the node ids are re-mapped (same as happens in the WorkflowProcessInstanceUpgrader), and the processInstance is reconnected, I call the "to" trigger for the original node (I keep a reference to the active timer when mapping the node ids from the old process to the new):

originalTimerNodeInstance.trigger(null, instance.getTimerNode().getTo().getToType());

This "clears" the original process timer, and allows execution to continue in the newly defined nodes in the new process.

Thanks again krisv for your help!
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/634079#634079]

Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20111028/2490f21c/attachment.html 


More information about the jboss-user mailing list