All Implemented Interfaces:
Action

public class StartWorkflow extends AbstractProceduralB2BOrderAproveAction
Starts a approval work flow and schedules a EscalationTaskModel which escalates the workflow to next available approver if the order has not been approved within 24 hours.
  • Constructor Details

    • StartWorkflow

      public StartWorkflow()
  • Method Details

    • executeAction

      public void executeAction(B2BApprovalProcessModel aprovalProcess) throws RetryLaterException
      Description copied from class: AbstractProceduralB2BOrderAproveAction
      Execute an action of a B2B approval process
      Specified by:
      executeAction in class AbstractProceduralB2BOrderAproveAction
      Parameters:
      aprovalProcess - the process context to work on
      Throws:
      RetryLaterException - Triggers the action to be processes again.
    • setB2bWorkflowIntegrationService

      public void setB2bWorkflowIntegrationService(B2BWorkflowIntegrationService b2bWorkflowIntegrationService)
      Sets the b2b workflow integration service.
      Parameters:
      b2bWorkflowIntegrationService - the b2bWorkflowIntegrationService to set
    • setB2bEscalationService

      public void setB2bEscalationService(B2BEscalationService b2bEscalationService)
      Sets the b2b escalation service.
      Parameters:
      b2bEscalationService - the b2bEscalationService to set
    • setPermissionResultHelper

      public void setPermissionResultHelper(B2BPermissionResultHelperImpl permissionResultHelper)
      Parameters:
      permissionResultHelper - the permissionResultHelper to set
    • setWorkflowProcessingService

      public void setWorkflowProcessingService(WorkflowProcessingService workflowProcessingService)
    • setWorkflowService

      public void setWorkflowService(WorkflowService workflowService)
    • isEscalate

      public boolean isEscalate()
      Returns:
      the escalate
    • setEscalate

      public void setEscalate(boolean escalate)
      Parameters:
      escalate - the escalate to set