cancel
Showing results for 
Search instead for 
Did you mean: 

Set name of calledElement in callActivity

agiledevpro
Champ in-the-making
Champ in-the-making
Hi,

I have created a main process that at the moment just calls one sub process. I have achived this using callActivity in my main process.
I would like to be able to determine the sub process to be called given a name of the sub process, thus I would like to have just one callActivity in my main process and given the name of the sub process different callElement names shoul be used.

I would like to have something like this:

<callActivity id="callSubProcess" calledElement="${nameOfSubProcess}">
      <extensionElements>
         <activiti:in source="processVariables" target="processVariables" />
            <activiti:out source="processVariables" target="processVariables" />
      </extensionElements>
      </callActivity>


I've tried doing it this way but it does not work, I get an error saying that
Unknown property used in expression: ${subProcessName}, how can I call my subProcess with different callElement names?

Please help!
1 REPLY 1

jbarrez
Star Contributor
Star Contributor
The exception says '${subProcessName}' .. but your xml says '${nameOfSubProcess}' …. which explains what you seeing ….