cancel
Showing results for 
Search instead for 
Did you mean: 

How to pass Task local variables to subsequent task without storing them as process variables

chaganti
Champ in-the-making
Champ in-the-making
hi,
I have a scenario, where I have multiple reviewers review multiple documents in parallel. Now once one reviewer completes the ‘Review’ task, the task state goes to another state called ‘Inform’ . Now ‘Inform’  task should be able to see variables used in ‘Review’ task in the same execution. Once the ‘Review’ task finishes, the variables associated to that task gets lost and is not visible to ‘Inform’ task.

The model is designed like, multiple parallel execution flows start from a node in a single process.(so each reviewer’s review goes into each single execution flow)
Now In a particular execution flow, once a task is completed, the local variables belonging to the task1(Review) are lost and are not available in task2(Inform) in same execution.
Is there any mechanism by which the subsequent task can access to variables of current task once current task is completed, without storing the variables in the Process variables.

for example:
execution-1 contains task-1 and task-2
execution-2 contains task-3 and task-4
after completion of the task-1 in the execution-1, only task-2 should see the local variables of task-1, but task-3 and task-4 should never see them as they were part of execution-2. Is this possible by not storing the variables against the process id.
1 REPLY 1

jbarrez
Star Contributor
Star Contributor
Currently, we don't have transient variables (it's one of the features we want to add to v6).
However, using execution listeners that remove the variables again, you should be able to control the visibility of the variables.