private boolean executeBody(XpdlExecution execution) { if (bodyStartAutomatically()) { EnvTool.getRecorder().recordBodyStarted(this, execution); } return executeBusinessLogic(execution); }
public void start(String userId, boolean assignTask) { if (LOG.isLoggable(Level.FINE)) { LOG.fine("Task : " + taskUUID + " on activity " + activityId + " is ready"); } final Recorder recorder = EnvTool.getRecorder(); if (assignTask) { this.userId = userId; recorder.recordTaskAssigned(this, userId, candidates, userId); } this.state = TaskState.EXECUTING; recorder.recordTaskStarted(this, userId); recorder.recordBodyStarted(activityDef, xpdlExecution); HookExecutor.executeHooks(activityDef.getJavaHooks(), xpdlExecution, activityId, JavaHook.Type.taskOnStart); }
private boolean executeBody(final Execution internalExecution) { if (bodyStartAutomatically()) { EnvTool.getRecorder().recordBodyStarted(internalExecution.getActivityInstance()); } return executeBusinessLogic(internalExecution); }
@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); }
recorder.recordBodyStarted(task); recorder.recordTaskStarted(taskUUID, EnvTool.getUserId()); final InternalActivityDefinition activityDef = internalExecution.getNode();
private boolean executeBody(final XpdlExecution xpdlExecution) { if (this.bodyStartAutomatically()) { final ActivityInstanceCurrentInfo activityInstanceCurrentInfo = new ActivityInstanceCurrentInfo( xpdlExecution.getXpdlInstance().getPackageDefinitionUUID(), xpdlExecution.getXpdlInstance().getProcessDefinitionUUID(), xpdlExecution.getXpdlInstance().getUUID(), xpdlExecution.getCurrentActivityInstanceUUID(), this.getActivityType(), this.getActivityId(), xpdlExecution.getIterationId(), xpdlExecution.getActivityInstanceId(), xpdlExecution.getScopeVariables()); ServiceEnvTool.getRecorder().recordBodyStarted(activityInstanceCurrentInfo); } return this.executeBusinessLogic(xpdlExecution); }
this.xpdlExecution.getScopeVariables()); recorder.recordBodyStarted(activityInstanceCurrentInfo); recorder.recordTaskStarted( new TaskCurrentInfo(
@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); }