[jboss-user] [jBPM] - Re: How to set timeCycle on boundryEvent at runtime
onkar ruikar
do-not-reply at jboss.com
Tue Dec 21 09:20:36 EST 2010
onkar ruikar [http://community.jboss.org/people/onkarruikar] created the discussion
"Re: How to set timeCycle on boundryEvent at runtime"
To view the discussion, visit: http://community.jboss.org/message/576999#576999
--------------------------------------------------------------
Found a solution, instead of boundary event, I used Timer. And before timer placed one Script Task.
Following script did the job:
org.jbpm.workflow.core.node.TimerNode timerNode =
(org.jbpm.workflow.core.node.TimerNode)
kcontext.getNodeInstance().getNode().getNodeContainer().getNode(237);
timerNode.getTimer().setPeriod(reminderInterval);
timerNode.getTimer().setDelay(reminderInterval);
reminderInterval is process variable and 237 is id of the timer node.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/576999#576999]
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/20101221/e5e64e85/attachment.html
More information about the jboss-user
mailing list