Parallel Task

i have a parallel execution and in each service task i set process-variable called result , when the sequence finished i will have a process_variables (result ) but i don’t know which result or this result belong to
is there any way to know ??

Maybe name your variables differently for the result of each service.

I don’t really understand what you mean by that.
But i guess you could also use input/output mapping to take the result variable of each service and cast it to a new variable.

i mean that task 1 and task 3 have the same implementation they listen to same topic as they do api-request with different parameters and then execute api request and set response of this call in variable called result and same scenario happen to task3

for task2 and task4 also have the same implementation that takes the result and mapped to another object so i want to know the previous task so i can know which result came from

Input/output mapping would do the trick - then you could name the variable depending on the task even if they’re working on the same topic

First Thank you for your quick response.

I have added prefix to each variable with activityId
as task1 set variable called task1_result ,
task3 set variable called task3_result

but i have problem that task2 only need the result from task 1 so how will task2 know which result is correct ?? as all variables are global and task2 don’t have any information about its earlier task