instance = getProcessInstance(spInstanceId);
definition = instance.getProcessDefinition();
}
}
ActivityInstanceContext firstRunningActivityInstanceCtx = instance.getCurrentRunningActivity();
HumanActivity humanActivity = (HumanActivity)firstRunningActivityInstanceCtx.getActivity();
//HumanActivity humanActivity = (HumanActivity)initiatorHumanActivityReference.getActivity();
if(humanActivity==null)
throw new UEngineException("Inconsistent status. Couldn't find the initiator HumanActivity.");