Class DefaultOmsWorkflowFacade

    • Constructor Detail

      • DefaultOmsWorkflowFacade

        public DefaultOmsWorkflowFacade()
    • Method Detail

      • startErrorRecoveryWorkflow

        public WorkflowData startErrorRecoveryWorkflow​(ItemModel item,
                                                       java.lang.String workflowName,
                                                       java.lang.String workflowTemplateCode,
                                                       java.lang.String userGroupUid,
                                                       java.lang.String errorType,
                                                       java.lang.String errorDescription)
        Description copied from interface: OmsWorkflowFacade
        Creates and starts an error recovery workflow with the given template for the given ItemModel.
        Specified by:
        startErrorRecoveryWorkflow in interface OmsWorkflowFacade
        Parameters:
        item - the ItemModel for which to start the workflow
        workflowName - name given to the workflow at creation time
        workflowTemplateCode - template code of the workflow to be started
        userGroupUid - the uid of the group to be assigned to the workflow actions
        errorType - the type of the error. This String will be persisted inside of the created workflow
        errorDescription - the description of the error. This String will be persisted inside of the created workflow
        Returns:
        instance of created WorkflowData
      • startWorkflow

        public WorkflowData startWorkflow​(ItemModel item,
                                          java.lang.String workflowName,
                                          java.lang.String workflowTemplateCode,
                                          java.lang.String userGroupUid)
        Description copied from interface: OmsWorkflowFacade
        Creates and starts a workflow with the given template for the given ItemModel.
        Specified by:
        startWorkflow in interface OmsWorkflowFacade
        Parameters:
        item - the ItemModel for which to start the workflow
        workflowName - name given to the workflow at creation time
        workflowTemplateCode - template code of the workflow to be started
        userGroupUid - the uid of the group to be assigned to the workflow actions
        Returns:
        instance of created WorkflowData
      • decideActions

        public void decideActions​(WorkflowCodesDataList workflowCodes,
                                  java.lang.String workflowDecisionCode)
        Description copied from interface: OmsWorkflowFacade
        Decides a list of workflows containing actions with the provided workflow decision name
        Specified by:
        decideActions in interface OmsWorkflowFacade
        Parameters:
        workflowCodes - the WorkflowCodesDataList containing a list of workflow codes which the actions belong to
        workflowDecisionCode - the decision to take on the actions
      • createAndStartWorkflow

        protected WorkflowModel createAndStartWorkflow​(ItemModel item,
                                                       java.lang.String workflowName,
                                                       java.lang.String workflowTemplateCode,
                                                       java.lang.String userGroupUid)
        Creates and starts a workflow with the given template for the given ItemModel.
        Parameters:
        item - the ItemModel for which to start the workflow
        workflowName - name given to the workflow at creation time
        workflowTemplateCode - template code of the workflow to be started
        userGroupUid - the uid of the group to be assigned to the workflow actions
        Returns:
        instance of created WorkflowModel
      • getUserGroupModel

        protected UserGroupModel getUserGroupModel​(java.lang.String userGroupUid)
        Resolves the given group's uid to the UserGroupModel
        Parameters:
        userGroupUid - the group's uid. If empty or null the method will return admin user group
        Returns:
        instance of UserGroupModel
      • getModelService

        protected ModelService getModelService()
      • setModelService

        public void setModelService​(ModelService modelService)
      • setWorkflowService

        public void setWorkflowService​(WorkflowService workflowService)
      • setWorkflowTemplateService

        public void setWorkflowTemplateService​(WorkflowTemplateService workflowTemplateService)
      • setWorkflowProcessingService

        public void setWorkflowProcessingService​(WorkflowProcessingService workflowProcessingService)
      • setWorkflowActionService

        public void setWorkflowActionService​(WorkflowActionService workflowActionService)
      • getUserService

        protected UserService getUserService()
      • setUserService

        public void setUserService​(UserService userService)