[jboss-user] [jBPM] New message: "Re: Upgrade from JBPM3 to JBPM4 woes"
nick bauman
do-not-reply at jboss.com
Fri Feb 5 15:31:18 EST 2010
User development,
A new message was posted in the thread "Upgrade from JBPM3 to JBPM4 woes":
http://community.jboss.org/message/524481#524481
Author : nick bauman
Profile : http://community.jboss.org/people/nick.bauman
Message:
--------------------------------------------------------------
So in V4 the above looks like so?
ActivityImpl currentWaitState = ((ExecutionImpl) pi).getActivity();
for (int i = 0; i < timedNodes.length; i++) {
if (timedNodes[i].equals(currentWaitState.getName())) {
// Can we get out of here?
if (currentWaitState.hasOutgoingTransition(TIME_OUT)) {
((ExecutionImpl)pi).signal(TIME_OUT);
return;
}
// Misconfigured process definition
throw new RuntimeException("Workflow timed out on current state, but no corresponding timeout transition found.");
}
}
log.debug("Workflow departed any timed state.");
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/524481#524481
More information about the jboss-user
mailing list