Class WorkflowUtil

  • Direct Known Subclasses:
    SourcingUtil

    public class WorkflowUtil
    extends ProcessUtil
    This class is used for workflow interactions
    • Field Detail

      • PICKING_TEMPLATE_CODE

        public static final java.lang.String PICKING_TEMPLATE_CODE
        See Also:
        Constant Field Values
      • PACKING_TEMPLATE_CODE

        public static final java.lang.String PACKING_TEMPLATE_CODE
        See Also:
        Constant Field Values
      • SHIPPING_TEMPLATE_CODE

        public static final java.lang.String SHIPPING_TEMPLATE_CODE
        See Also:
        Constant Field Values
      • PICKUP_TEMPLATE_CODE

        public static final java.lang.String PICKUP_TEMPLATE_CODE
        See Also:
        Constant Field Values
    • Constructor Detail

      • WorkflowUtil

        public WorkflowUtil()
    • Method Detail

      • moveConsignmentWorkflow

        public void moveConsignmentWorkflow​(OrderProcessModel orderProcessModel,
                                            ConsignmentModel consignment,
                                            java.lang.String templateCode)
        Moves the task assignment workflow to its next planned task
        Parameters:
        orderProcessModel - the associated OrderProcessModel
        consignment - the targeted ConsignmentModel for which we want to move the workflow forward
        templateCode - the JobModel.CODE to be moved
      • waitUntilWorkflowProcessIsNotRunning

        public void waitUntilWorkflowProcessIsNotRunning​(WorkflowModel workflow,
                                                         int timeOut)
        Wait until the workflow process is not running
        Parameters:
        workflow -
        timeOut -
        Throws:
        java.lang.InterruptedException
      • setupRelations

        public void setupRelations()
        Setup links between actions and decisions
      • setImpersonationService

        public void setImpersonationService​(ImpersonationService impersonationService)