Hi Barrez ,
Thanks for the update.
Yes , i have mapped the variables in call activity. ( sourceExpression="${action}" target="action" ) .
Issue i am facing using call activity is , the value for the variable is reaching the X-OR gateway only when i declare them as part of process instance creation. (setting through run time service or task completion is not working) .
But , i could do it through a service / script task .I am still wondering why the below methods are not working with call activity as it would have made the execution simple without service / script tasks elements
1. runtimeService.setVariable(processInstance.getId(),"variable","value");
2. taskService.complete(tasks.get(0).getId(), vars);
Thanks
Niyas