public void assign(java.util.Set<java.lang.String> candidates, String assignUserId) { if (LOG.isLoggable(Level.FINE)) { LOG.fine("assigning task : " + taskUUID + " on activity " + activityId); } final Recorder recorder = EnvTool.getRecorder(); this.userId = assignUserId; this.candidates = candidates; recorder.recordTaskAssigned(this, EnvTool.getUserId(), candidates, assignUserId); }
public void resume(String resumeUserId, boolean taskAssign) { if (LOG.isLoggable(Level.FINE)) { LOG.fine("Resuming task : " + taskUUID + " on activity " + activityId); } final Recorder recorder = EnvTool.getRecorder(); if (taskAssign) { this.userId = resumeUserId; recorder.recordTaskAssigned(this, resumeUserId, candidates, resumeUserId); } this.state = this.stateBeforeSuspend; recorder.recordTaskResumed(this, resumeUserId); HookExecutor.executeHooks(activityDef.getJavaHooks(), xpdlExecution, activityId, JavaHook.Type.taskOnResume); }
public void suspend(String userId, boolean assignTask) { if (LOG.isLoggable(Level.FINE)) { LOG.fine("Suspending task : " + taskUUID + " on activity " + activityId); } final Recorder recorder = EnvTool.getRecorder(); if (assignTask) { this.userId = userId; recorder.recordTaskAssigned(this, userId, candidates, userId); } this.stateBeforeSuspend = this.state; this.state = TaskState.SUSPENDED; recorder.recordTaskSuspended(this, userId); HookExecutor.executeHooks(activityDef.getJavaHooks(), xpdlExecution, activityId, JavaHook.Type.taskOnSuspend); }
private static void assign(final ActivityInstance task, final java.util.Set<java.lang.String> candidates, final String userId) { final ActivityInstanceUUID taskUUID = task.getUUID(); if (LOG.isLoggable(Level.FINE)) { LOG.fine("assigning task : " + taskUUID + " on activity " + task.getActivityName()); } final Recorder recorder = EnvTool.getRecorder(); recorder.recordTaskAssigned(taskUUID, task.getState(), EnvTool.getUserId(), candidates, userId); }
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); }
public void finish(String userId, boolean assignTask) { if (LOG.isLoggable(Level.FINE)) { LOG.fine("Finishing task : " + taskUUID + " on activity " + activityId); } final Recorder recorder = EnvTool.getRecorder(); if (assignTask) { this.userId = userId; recorder.recordTaskAssigned(this, userId, candidates, userId); } this.state = TaskState.FINISHED; recorder.recordTaskFinished(this, EnvTool.getUserId()); HookExecutor.executeHooks(activityDef.getJavaHooks(), xpdlExecution, activityId, JavaHook.Type.taskOnFinish); activityDef.signal(xpdlExecution, AbstractActivity.BODY_FINISHED, null); this.xpdlExecution = null; }
public void assign(final java.util.Set<java.lang.String> candidates, final String assignUserId) { if (LOG.isLoggable(Level.FINE)) { LOG.fine("assigning task : " + this.taskUUID + " on activity " + this.activityId); } final Recorder recorder = EngineEnvTool.getRecorder(); this.userId = assignUserId; this.candidates = candidates; recorder.recordTaskAssigned( new TaskCurrentInfo( this.getUUID(), this.getUserId(), this.getCandidates(), this.getDueDate(), EngineEnvTool.getUserId(), this.getState()) ); }
public void resume(final String resumeUserId, final boolean taskAssign) { if (LOG.isLoggable(Level.FINE)) { LOG.fine("Resuming task : " + this.taskUUID + " on activity " + this.activityId); } final Recorder recorder = EngineEnvTool.getRecorder(); if (taskAssign) { this.userId = resumeUserId; recorder.recordTaskAssigned(new TaskCurrentInfo( this.getUUID(), this.getUserId(), this.getCandidates(), this.getDueDate(), EngineEnvTool.getUserId(), this.getState() ) ); } this.state = this.stateBeforeSuspend; recorder.recordTaskResumed( new TaskCurrentInfo( this.getUUID(), this.getUserId(), this.getCandidates(), this.getDueDate(), EngineEnvTool.getUserId(), this.getState()) ); EngineEnvTool.getHookExecutor().executeHooks(this.activityDef.getJavaHooks(), this.xpdlExecution, this.activityId, JavaHook.Type.taskOnResume); }
if (assignTask) { this.userId = userId; recorder.recordTaskAssigned( new TaskCurrentInfo( this.getUUID(),
if (assignTask) { this.userId = userId; recorder.recordTaskAssigned( new TaskCurrentInfo( this.getUUID(),
if (assignTask) { this.userId = userId; recorder.recordTaskAssigned( new TaskCurrentInfo( this.getUUID(),