cancel
Showing results for 
Search instead for 
Did you mean: 

pass varaibles from subprocess back to parent

tomcheng76
Champ in-the-making
Champ in-the-making
Hi,

how to pass all variables from subprocess back to parent process without specifying them explicitly?
Is it possible?
5 REPLIES 5

trademak
Star Contributor
Star Contributor
Yes, a call activity has the possibility to define in and out parameters.
You can find an example in the source code (http://code.google.com/p/activitiinaction/) accompanying the Activiti in Action book.

Best regards,

tomcheng76
Champ in-the-making
Champ in-the-making
Yes, a call activity has the possibility to define in and out parameters.
You can find an example in the source code (http://code.google.com/p/activitiinaction/) accompanying the Activiti in Action book.

Best regards,

Does the in and out mapping supports regex/wildcard ?
I have to define the mapping one by one which is very time comsuming.
It is better if activiti supports

    <callActivity …>
      <extensionElements>
        <activitiSmiley Surprisedut source="*" target="*"></activitiSmiley Surprisedut>
      </extensionElements>
    </callActivity>

I will use embedded sub-process if it is not supported, thanks Smiley Happy

trademak
Star Contributor
Star Contributor
Right. No it's not possible. Maybe something to raise a feature request for.

Best regards,

aman_goel
Champ in-the-making
Champ in-the-making
Hi everyone, I have similar requirement to bind all variables to subprocess. Is this possible to implement in new versions of Activiti like 5.17.0?

Regards!

jbarrez
Star Contributor
Star Contributor
No, not by definition. But you could do that by overriding the default CallActivityBehaviour (see the ActivityBehaviorFactory).