public interface IEventsState
Modifier and Type | Method and Description |
---|---|
void |
cancel()
Cancel as soon as possible the processWorkflow, To do that, the step pauseCancelAction is updated to be
PauseOrCancelAction.ACTION_CANCEL Unlike pause, - The finally step should be executed, -
PauseOrCancelAction.ACTION_CANCEL have no impact on the finally step - The finally step cannot be cancelled
|
String |
getContextId() |
LogbookTypeProcess |
getLogbookTypeProcess() |
int |
getTenant() |
String |
getWorkflowId() |
boolean |
isDone() |
boolean |
isRecover() |
boolean |
isStepByStep() |
void |
next(WorkerParameters workerParameters)
Like a resume but pause at the next step
|
void |
pause()
Pause the processWorkflow, If the last step the just wait the finally step Else pause the processWorkflow as soon
as possible Do not wait all elements of the current step to be executed The step pauseCancelAction will be
updated to PauseOrCancelAction.ACTION_PAUSE If all elements of the current step are executed then stop correctly
and step pauseCancelAction will be updated to PauseOrCancelAction.ACTION_COMPLETE
After next or resume occurs on paused processWorkflow, It will starts from the step pauseCancelAction equals to
PauseOrCancelAction.ACTION_PAUSE if exists and update pauseCancelAction to be PauseOrCancelAction.ACTION_RECOVER
Else starts normally from the next step
|
void |
replay(WorkerParameters workerParameters)
Replay the last executed step, or if it s stated, the step passed as a parameter
|
void |
resume(WorkerParameters workerParameters)
Do an evaluation of the State RUNNING If the state is not permitted a StateNotAllowedException is thrown Else
call doRunning method
|
void |
shutdown()
Should used only when server is shutting down
To prevent deadlock, this method is not synchronized, Because onComplete and onPauseOrCancel are synchronized and
called from ProcessEngine
|
void resume(WorkerParameters workerParameters) throws StateNotAllowedException, ProcessingException
workerParameters
- StateNotAllowedException
ProcessingException
void next(WorkerParameters workerParameters) throws StateNotAllowedException, ProcessingException
workerParameters
- StateNotAllowedException
ProcessingException
void pause() throws StateNotAllowedException
StateNotAllowedException
void replay(WorkerParameters workerParameters) throws StateNotAllowedException, ProcessingException
workerParameters
- StateNotAllowedException
ProcessingException
void shutdown() throws StateNotAllowedException
StateNotAllowedException
void cancel() throws StateNotAllowedException, ProcessingException
boolean isDone()
boolean isRecover()
boolean isStepByStep()
LogbookTypeProcess getLogbookTypeProcess()
int getTenant()
String getWorkflowId()
String getContextId()
Copyright © 2018 Vitam. All rights reserved.