Interface DocumentRoutingEngineService

All Known Implementing Classes:
DocumentRoutingEngineServiceImpl

public interface DocumentRoutingEngineService
The DocumentRoutingEngineService is responsible for managing the lifecycle of the DocumentRoute. This is an internal service, you should use method on the DocumentRoutingService to start a route.
  • Method Details

    • start

      void start(DocumentRoute routeInstance, Map<String,Serializable> map, CoreSession session)
      Starts a route.
      Parameters:
      routeInstance - the route instance
      map - the values to pass as initial workflow variables
      session - the session
      Since:
      5.6
    • resume

      void resume(DocumentRoute routeInstance, String nodeId, String taskId, Map<String,Object> data, String status, CoreSession session)
      Resumes a route, optionnally for a given task only.
      Parameters:
      routeInstance - the route instance
      nodeId - the node id to resume on (optional)
      taskId - the task id that resumes (optional)
      data - the data coming from UI form
      status - the name of the button clicked to submit the associated task form
      session - the session
      Since:
      5.6
    • cancel

      void cancel(DocumentRoute routeInstance, CoreSession session)
      Cancels a route using an unrestricted session. (@since 5.7.2 the event 'workflowCanceled' is notified.)
      Parameters:
      routeInstance - the route instance
      session - the session
      Since:
      5.6