I’m trying to call a reusable activity from my parent process but all the fields in the activity’s execution are coming as null. I understand this is different from sub process. How can I ensure all the variables in the parent execution scope are passed into the call activity?
Task A is being called successfully but when I do the following in Task A it comes back as null
(SOME_VARIABLE
is set correctly in the parent)
public class TaskADelegate implements JavaDelegate {
public void execute(DelegateExecution execution) throws Exception {
String key = execution.getProcessBusinessKey(); // is NULL when it should have a value
String varId = execution.getVariable("SOME_VARIABLE").toString(); /is NULL when it should have a value
Parent activity
Call Activity