Class ProcessEngineImpl

  • All Implemented Interfaces:
    ProcessEngine

    public class ProcessEngineImpl
    extends java.lang.Object
    implements ProcessEngine
    ProcessEngineImpl class manages the context and call a process distributor
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String DETAILS  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean cancel​(java.lang.String operationId)
      Cancel the execution of the current step Send message to the distributor to cancel the execution of the current step
      boolean pause​(java.lang.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, PauseRecover pauseRecover)
      Start the execution of the given step
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • pause

        public boolean pause​(java.lang.String operationId)
        Description copied from interface: ProcessEngine
        Pause the execution of the current step Send message to the distributor to cancel the execution of the current step
        Specified by:
        pause in interface ProcessEngine
        Parameters:
        operationId - the operation identifier
        Returns:
        true if pause applied, false else
      • cancel

        public boolean cancel​(java.lang.String operationId)
        Description copied from interface: ProcessEngine
        Cancel the execution of the current step Send message to the distributor to cancel the execution of the current step
        Specified by:
        cancel in interface ProcessEngine
        Parameters:
        operationId - the operation identifier
        Returns:
        true if pause applied, false else