[jboss-user] [JBoss jBPM] - Re: Variable missing in assignment handler
i think i may have found the issue with why my sub process has now variable instances. it seems that the variables need to be 'explicit' copied into the new process definition. The following snippet now correctly sets the variable in the new sub process. | | process-state name='Sub Process' | variable name='itp.id' access='read' mapped-name='itp.id' / | sub-process name='sub'/ | | From the docs http://docs.jboss.com/jbpm/v3.2/userguide/html_single/#graphorientedprogramming it describes this exact process. anonymous wrote : | 10.8. Process composition | In general, When a subprocess is started, all variables with read access are read from the super process and fed into the newly created sub process before the signal is given to leave the start state. When the sub process instances is finished, all the variables with write access will be copied from the sub process to the super process. The mapped-name attribute of the variable element allows you to specify the variable name that should be used in the sub process. | However i dont want to 'explicitly' copy all my variables over to the new process. I am hoping there is an 'implicit' copy that i have not found yet. I have not seen this functionality in any of the unit tests i have been viewing, so any help is appreciated. -lp View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4243641#4243641 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4243641 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Variable missing in assignment handler
Implicit is possible by extending and overriding the subprocess node implementation. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4243821#4243821 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4243821 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Variable missing in assignment handler
I'll have a look later today, but one compliment in advance. It looks like a unittest that can be run with just a copy/paste (ok, a quickfix for the imports). Everything IN it... great... View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4243499#4243499 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4243499 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Variable missing in assignment handler
Further testing reveals that there are NO variables at all available in the Assignment handler. I am using Jbpm3.2.6 | | public void assign(Assignable assignable, ExecutionContext executionContext) { | | MapToken, TokenVariableMap tokenVariableMaps = executionContext.getContextInstance().getTokenVariableMaps(); | assertNotNull(tokenmap shouldnt be null, tokenVariableMaps); | | Q. Since the ExecutionContext has only one method to retrieve variable ExecutionContext.getVariable() which seem to be based on the root token. How can a local variable bound to a token be retrieved from the ExecutionContext? any help most appreciated. many thanks -lp View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4243622#4243622 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4243622 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user