Hi Dears,
I have the process engine embedded in an external application, i have created sample process which is consisting of 2 external user tasks and i want to use camunda process engine API to access the submitted variables (dynamic) by the first task from the second task.
Example for the process as follows:
task1 —> task2 —> task3 …
I want to access the submitted variables by task1 from task2 and access the submitted variables by task2 from task3.
I am still trying to implement it but still have problem to access the variables.
I am submitting the variables from the first task as follows:
taskService.complete(task1.getId(), processVariables);
Now i need to know how to access these variables from task2 and so on…
Are the variables being created in the process instance after the first task is completed?
Can you show your code ( take a look at the style guide for formatting ) for both of your external tasks?
Yes the variables are created in the process instance after completing the task.
The code for the external user tasks is not yet implemented.
What I need to do from the business perspective as follows:
1- user has a view to submit his request
2- another user to review this request (access the variables from the previous step) and approve or decline.
…