Interface ProcessDistributor

  • All Superinterfaces:
    java.lang.AutoCloseable
    All Known Implementing Classes:
    ProcessDistributorImpl

    public interface ProcessDistributor
    extends java.lang.AutoCloseable
    interface ProcessDistributor

    improves a availability and scalability
    Various methods Distributor engine
    • Method Detail

      • distribute

        ItemStatus distribute​(WorkerParameters workParams,
                              Step step,
                              java.lang.String operationId,
                              PauseRecover pauseRecover)
        Distribute different steps (execute a workflow actions step by step)
        Parameters:
        workParams - WorkerParameters null not allowed
        step - ProcessStep null not allowed
        operationId - operationId
        pauseRecover - prevent recover from pause action
        Returns:
        CompositeItemStatus : list of action response
      • pause

        boolean pause​(java.lang.String operationId)
        Get the current step of the processWorkflow corresponding to the operationId and update his pauseCancelAction parameter to be PauseOrCancelAction.ACTION_PAUSE WorkerTask check this parameter and can pause the not yet running tasks
        Parameters:
        operationId - concerning operation id
        Returns:
        true if pause applied, false else
      • cancel

        boolean cancel​(java.lang.String operationId)
        Get the current step if the processWorkflow corresponding to the operationId and update his pauseCancelAction parameter to be PauseOrCancelAction.ACTION_CANCEL WorkerTask check this parameter and can cancel the not yet running tasks
        Parameters:
        operationId - concerning operation id
        Returns:
        true if pause applied, false else