This content has been marked as final.
Show 3 replies
-
1. Re: get current state of ProcessInstance
ajanz Jul 30, 2008 12:05 PM (in response to ajanz)i created the processinstances with the newprocessinstancecommand.
but the root token is null. is this correct?
Process defintion is<process-definition xmlns="urn:jbpm.org:jpdl-3.2" name="ad-hoc"> <start-state name="Start"> <transition to="in Bearbeitung" name="beginnen"></transition> </start-state> <state name="in Bearbeitung"> <transition to="Ende" name="beenden"></transition> <transition to="in Bearbeitung" name="weiterleiten"></transition> </state> <end-state name="Ende"></end-state> </process-definition>
-
2. Re: get current state of ProcessInstance
memius Jul 31, 2008 9:31 AM (in response to ajanz)after creating your process, I think you need to actually 'start' it with a signal call
ProcessInstance processInstance = < your newly created processInstance >
processInstance.getRootToken().signal();
at least, that's what I would try ;)
Hope this helps.
Dieter D'haeyere. -
3. Re: get current state of ProcessInstance
ajanz Jul 31, 2008 9:52 AM (in response to ajanz)no, reason was lazy hibernate.
implementing my own command solved my problem.