-
1. Re: JBpm Process composition : can we propagate super intanc
jbarrez Jul 25, 2008 2:46 AM (in response to mhamza)That is explained here:
http://docs.jboss.com/jbpm/v3/userguide/jpdl.html#processstate.element -
2. Re: JBpm Process composition : can we propagate super intanc
mhamza Jul 25, 2008 3:44 AM (in response to mhamza)Thanks for your reply,
The variable element is only dealing with variables copy from the super process to the sub one :( . I was looking for a simple way to initialize the subprocess instance's key by using the super process instance's one.
I could handle this issue by implementing 2 handlers, listening to the subprocess creation event and to the process start event in the subprocess.
The first copies the key into the variable map, and the second uses the "key" variable to set the instance's key -
3. Re: JBpm Process composition : can we propagate super intanc
jbarrez Jul 25, 2008 5:19 AM (in response to mhamza)What you could do is creating a custom ActionHandler which initilises the subprocesss using the variables of the superprocess.
The disadvantage is that the superprocess won't be triggered when the subprocess has finished, but if that's ok I think the easiest solution is the actionHandler -
4. Re: JBpm Process composition : can we propagate super intanc
mhamza Jul 25, 2008 5:58 AM (in response to mhamza)Thanks a lot for your replies.
that's what I did.