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)
ProcessEngine
setCallback
in interface ProcessEngine
public boolean pause(String operationId)
ProcessEngine
pause
in interface ProcessEngine
operationId
- the operation identifierpublic boolean cancel(String operationId)
ProcessEngine
cancel
in interface ProcessEngine
operationId
- the operation identifierpublic void start(ProcessStep step, WorkerParameters workerParameters, Map<String,String> params, PauseRecover pauseRecover) throws ProcessingEngineException
ProcessEngine
start
in interface ProcessEngine
step
- 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.