Package fr.gouv.vitam.processing.engine.api

# Interface ProcessEngine

All Known Implementing Classes:
  `ProcessEngineImpl`

public interface ProcessEngine
Process Engine Interface Provides access to all the services and to manage a workflow of operations.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `setStateMachineCallback(IEventsProcessEngine stateMachineCallback)`
  Set the state machine where the ProcessEngine return response on complete or on error
  `CompletableFuture<ItemStatus>`
  `start(ProcessStep step, WorkerParameters workerParameters)`
  Start the execution of the given step

- ## Method Details

  - ### setStateMachineCallback

    void setStateMachineCallback(IEventsProcessEngine stateMachineCallback)
    Set the state machine where the ProcessEngine return response on complete or on error
    Parameters:
      `stateMachineCallback` -

  - ### start

    CompletableFuture<ItemStatus> start(ProcessStep step, WorkerParameters workerParameters) throws ProcessingEngineException
    Start the execution of the given step
    Parameters:
      `step` - the ProcessStep object
      `workerParameters` - the worker parameters
    Returns:
    Throws:
      `ProcessingEngineException` - thrown if step could not be started