Input/Output Mapping and variable scopes

Hey everyone,

I got a quick question regarding the scopes of variables when using input/output mapping.
In my understanding, passing variables to an element via input mapping creates a local variable that is only accessible for the execution context of the element it is passed to and deleted once the execution continues. Trying to access this newly created variable outside of the local scope would create an error.
For the output mapping, it creates a new global variable that can be accessed freely after creation, until the process instance is finished.

Can someone verify my understanding or in case I got it wrong please correct me.

Hi @sdibernardo,

according to this section in the documentation your understanding is correct.
(Except that accessing a variable that does not exist returns null instead of an error)