Exclude Variable Mapping

Hello, I am new to Camunda.

I have lots of variables in “call activity” task, e.g. var1, var2, var3, etc.

I know that I can pass all of them to the subprocess by using <camunda:in variables="all" />
But I want to exclude variable var3. Is that possible? I can’t find documentation about this.

1 Like

Hello @smsidki,

this is only possible by adding all other variables except the one you want to exclude.

Hope this helps,

Ingo

You can also implement the variable mapping Java code, which should give you the flexibility to build this. See https://docs.camunda.org/manual/7.7/reference/bpmn20/subprocesses/call-activity/#delegation-of-variable-mapping

@thorben Thank you for your suggestion.