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);
}