Call activity( source expression)

Hi,

Am new to camunda just trying some test cases, wanna know about source expression in call activity gone through docs but didnt get clear idea, can someone plz help me out with this in brief

Can you explain this in a little more detial?

Hi @Gus_fring,

In the docs

<callActivity id="callSubProcess" calledElement="checkCreditProcess" >
  <extensionElements>
    <camunda:in sourceExpression="${x+5}" target="y" />
    <camunda:out sourceExpression="${y+5}" target="z" />
  </extensionElements>
</callActivity>

<camunda:in sourceExpression="${x+5}" target=ā€œyā€ />
means the expression in the main process would get evaluated and the result gets assigned to y variable in the called sub-process

<camunda:out sourceExpression="${y+5}" target=ā€œzā€ />
means the expression in the called sub-process would get evaluated and the result gets assigned to z variable in the main process

1 Like