Handling of variables in the parallel task

Suppose we have 2 parallel task A and B.
2 parallel task - A & B (Sharing same variable, lets say a)

Now if A changes the variable a, it will be reflected to B also.
But B wants to have the old value of a.

So how this is handled in Camunda.

Can anyone help !

You would need to either create “local variables” for each task or great a global variable for each task.

By default both tasks are seeing the same global variables.