cancel
Showing results for 
Search instead for 
Did you mean: 

Passing Variables to Subprocess

flavio_donze
Champ in-the-making
Champ in-the-making
Hello

I'm trying to convert my framework which used jBPM to using Activiti.

With jBPM I was able to pass variables to the subprocess using:

<sub-process name="commit" sub-process-key="Commit">
   <parameter-in subvar="objectId" var="objectId" />
   <parameter-in subvar="objectType" var="objectType" />
   <parameter-in subvar="version" var="version" />
   <parameter-in subvar="workflowInstance" var="workflowInstance" />

   <transition to="endCommit" name="end" />
</sub-process>

I read this post: http://forums.activiti.org/en/viewtopic.php?f=3&t=402
Isn't there a similar way like jBPM, something like:

<callActivity id="callCommit" name="Commit" calledElement="Commit">
   <extensionElements>
       <activiti:resultVariableName name="objectId" expression="${objectId}"/>
       <activiti:field name="objectType" expression="${objectType}"/>
       <activiti:field name="version" expression="${version}"/>
       <activiti:field name="workflowInstance" expression="${workflowInstance}"/>
   </extensionElements>
</callActivity>

Or is there a way to access variables from the super process?

greets
Flavio
3 REPLIES 3

jbarrez
Star Contributor
Star Contributor
Thats not yet possible.

I created a jira to track the implementation:

http://jira.codehaus.org/browse/ACT-313

flavio_donze
Champ in-the-making
Champ in-the-making
Thanks Joram!

Already voted for it 🙂

Since there was a feature freeze, I guess it won't be part of 5.0 final. right?

jbarrez
Star Contributor
Star Contributor
No, that's true.

If you really really need it, you could write your own serviceTask that extends our current CallActivity implementation.