AnsweredAssumed Answered

Set name of calledElement in callActivity

Question asked by agiledevpro on Feb 11, 2015
Latest reply on Feb 18, 2015 by jbarrez
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!

Outcomes