Interface B2BWorkflowIntegrationService

  • All Known Implementing Classes:
    DefaultB2BWorkflowIntegrationService

    public interface B2BWorkflowIntegrationService
    A integration service for workflow and process engine.
    Spring Bean ID:
    b2bWorkflowIntegrationService
    • Method Detail

      • getWorkflowTemplateForCode

        @Deprecated(since="4.4",
                    forRemoval=true)
        WorkflowTemplateModel getWorkflowTemplateForCode​(java.lang.String code)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Gets the WorkflowTemplateModel based on the code.
        Parameters:
        code - the WorkflowActionType code
        Returns:
        WorkflowTemplateModel
      • createWorkflowTemplate

        WorkflowTemplateModel createWorkflowTemplate​(java.util.List<? extends UserModel> users,
                                                     java.lang.String code,
                                                     java.lang.String description,
                                                     WorkflowTemplateType templateType)
        This will create a WorkflowTemplateModel if one does not exist
        Parameters:
        users - the approvers that a work flow template will be created for
        code - the code of the template
        description - the short description for the template
        templateType - the strategy type of the template
        Returns:
        newly created WorkflowTemplateModel
      • generateWorkflowTemplateCode

        java.lang.String generateWorkflowTemplateCode​(java.lang.String prefix,
                                                      java.util.List<? extends UserModel> users)
        Generates a list of appended prefix_PrincipalModel.UID
        Parameters:
        prefix - the String to which the user id is appended to
        users - the list of users in which the template code will be generated for
        Returns:
        the template code of appended values
      • getWorkflowActionsForActionStatusAndUser

        java.util.Collection<WorkflowActionModel> getWorkflowActionsForActionStatusAndUser​(WorkflowActionStatus status,
                                                                                           java.lang.String qualifier,
                                                                                           UserModel user)
        Gets all WorkflowActions by user, workflowActionStatus (eg IN_PROGRESS) and qualifier (eg APPROVAL)
        Parameters:
        status - the work flow action status
        qualifier - the qualifier (eg APPROVAL)
        user - the user
        Returns:
        WorkflowActionModel the set of work flow actions
      • getOrderFromAction

        OrderModel getOrderFromAction​(WorkflowActionModel workflowActionModel)
        Gets the associated order to the WorkflowActionModel qualifier. The qualifier's attachment of type B2BApprovalProcessModel will have the associated order.
        Parameters:
        workflowActionModel - the work flow action
        Returns:
        the order associated to the attachment
      • getActionByCode

        @Deprecated(since="4.4",
                    forRemoval=true)
        WorkflowActionModel getActionByCode​(java.lang.String code)
        Deprecated, for removal: This API element is subject to removal in a future version.
        As of hybris 4.4, replaced by getActionForCode(String)
        Parameters:
        code - the action code
        Returns:
        the workflow action
      • getActionForCode

        WorkflowActionModel getActionForCode​(java.lang.String code)
        Get WorkflowAction for its code.
        Parameters:
        code - the WorkflowAction's code
        Returns:
        WorkflowActionModel
      • findWorkflowForOrder

        @Deprecated(since="4.4",
                    forRemoval=true)
        WorkflowModel findWorkflowForOrder​(OrderModel order)
        Deprecated, for removal: This API element is subject to removal in a future version.
        As of hybris 4.4, replaced by getWorkflowForOrder(OrderModel)
        Parameters:
        order - the order for which to find the workflow
        Returns:
        the order WorkflowModel
      • getWorkflowForOrder

        WorkflowModel getWorkflowForOrder​(OrderModel order)
        Get the Workflow for an Order.
        Parameters:
        order - the order
        Returns:
        WorkflowModel
      • getWorkflowActionsForUser

        java.util.Collection<WorkflowActionModel> getWorkflowActionsForUser​(UserModel user)
        Gets a collection of workflow actions for a user
        Parameters:
        user - the user
        Returns:
        the Collection of WorkflowActionModel