@Override public void signal(ActivityExecution execution, String signal, Map<String, Object> parameters) { final XpdlExecution xpdlExecution = (XpdlExecution) execution; final XpdlInstance xpdlInstance = xpdlExecution.getXpdlInstance(); xpdlInstance.setInstanceState(InstanceState.STARTED); final Recorder recorder = EnvTool.getRecorder(); recorder.recordInstanceStarted(xpdlInstance, EnvTool.getUserId()); recorder.recordEnterActivity(this, xpdlExecution); recorder.recordBodyStarted(this, xpdlExecution); recorder.recordBodyEnded(this, xpdlExecution); executeSplit(execution, false); }
@Override public void signal(final ActivityExecution execution, final String signal, final Map<String, Object> parameters) { final XpdlExecution xpdlExecution = (XpdlExecution) execution; final XpdlInstance xpdlInstance = xpdlExecution.getXpdlInstance(); xpdlInstance.setInstanceState(InstanceState.STARTED); final Recorder recorder = ServiceEnvTool.getRecorder(); recorder.recordInstanceStarted(new ProcessInstanceCurrentInfo( xpdlInstance.getPackageDefinitionUUID(), xpdlInstance.getProcessDefinitionUUID(), xpdlInstance.getUUID(), (xpdlInstance.getParentInstance() != null) ? xpdlInstance.getParentInstance().getUUID() : null, xpdlExecution.getVariables(), ServiceEnvTool.getUserId()) ); final ActivityInstanceCurrentInfo activityInstanceCurrentInfo = new ActivityInstanceCurrentInfo( xpdlInstance.getPackageDefinitionUUID(), xpdlInstance.getProcessDefinitionUUID(), xpdlInstance.getUUID(), xpdlExecution.getCurrentActivityInstanceUUID(), this.getActivityType(), this.getActivityId(), xpdlExecution.getIterationId(), xpdlExecution.getActivityInstanceId(), xpdlExecution.getScopeVariables()); recorder.recordEnterActivity(activityInstanceCurrentInfo); recorder.recordBodyStarted(activityInstanceCurrentInfo); recorder.recordBodyEnded(activityInstanceCurrentInfo); executeSplit(execution, false); }
ExternalActivity initialRoute = new InitialNodeBehaviour(); initialNode.setBehaviour(initialRoute); initialNode.setPreviousNeeded(true);