public class ProcessEngineImpl extends Object implements ProcessEngine
| Constructor and Description |
|---|
ProcessEngineImpl(WorkerParameters workerParameters,
ProcessDistributor processDistributor) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
cancel(String operationId)
Cancel the execution of the current step
Send message to the distributor to cancel the execution of the current step
|
boolean |
pause(String operationId)
Pause the execution of the current step
Send message to the distributor to cancel the execution of the current step
|
void |
setCallback(IEventsProcessEngine callback)
Set the state machine where the ProcessEngine return response on complete or on error
|
void |
start(ProcessStep step,
WorkerParameters workerParameters,
Map<String,String> params,
PauseRecover pauseRecover)
Start the execution of the given step
|
public ProcessEngineImpl(WorkerParameters workerParameters, ProcessDistributor processDistributor)
public void setCallback(IEventsProcessEngine callback)
ProcessEnginesetCallback in interface ProcessEnginepublic boolean pause(String operationId)
ProcessEnginepause in interface ProcessEngineoperationId - the operation identifierpublic boolean cancel(String operationId)
ProcessEnginecancel in interface ProcessEngineoperationId - the operation identifierpublic void start(ProcessStep step, WorkerParameters workerParameters, Map<String,String> params, PauseRecover pauseRecover) throws ProcessingEngineException
ProcessEnginestart in interface ProcessEnginestep - the ProcessStep objectworkerParameters - the worker parametersparams - other parameterspauseRecover - prevent recover from pause actionProcessingEngineException - thrown if step could not be startedCopyright © 2018 Vitam. All rights reserved.