Input and Output Parameters Call Activity

Hi everyone,

I don’t understand how passing input and output parameters function to Call Activity.
I need to pass parameters with textual value to Call Activity.
For example, in input parameters I set parameter named type to value 1.
When in variable mapping I set All and Local to true, I can see parameter ‘type’ inside Call Activity.
If I set variable ‘type’ to be Local and others not, it doesn’t work.
Also, when I change variables to Local I cannot reference them through execution.getVariable anymore, I guess they are seen as LocalVariable now.
Can someone explain why can only one variable be passed as Local? Also, it would be great if someone could explain why parameters must be passed as Local to Call Activity.

Hi @JuLog,

Could you please share an example of your process on which your questions are based, it help us to see what you tried.

Where do you try to access them like that? In this case the process will be again helpful.

Just guessing that you are asking how this can be done (please correct me if I’m wrong), here is an example:

<camunda:in source="someVariableInMainProcess" target="nameOfVariableInSubProcess" local="true" />

This depends on your needs, it is not mandatory to pass them as local, but if you want/need it, it is possible.

Docs related to this topic:

Hope this helps.

Best regards,
Yana

While creating demo bpmn, I realised that I was mistaken: I had 3 instances of same call activity triggered at once, so I didn’t realize I didn’t add parameter to all of the 3 call activities.
Thank you anyway!

Great that you managed to resolve your problem.

1 Like