Interface WorkflowEngine

    • Method Detail

      • setCustomStep

        void setCustomStep​(WorkflowableTask task,
                           WorkflowStep step)
        Sets the specified task to the specified step of the corresponding transition model.
        Parameters:
        task - task
        step - step of the transition model
      • getTransitions

        List<WorkflowTransition> getTransitions​(WorkflowableTask task)
        Returns available transitions for the specified task.
        Parameters:
        task - tasj
        Returns:
        list of available transitions
      • invokeTransition

        TransitionResult invokeTransition​(BcDescription bcDescription,
                                          WorkflowableTask task,
                                          WorkflowTransition transition,
                                          List<String> preInvokeParameters)
        Performing a user-initiated transition for a specific task
        Parameters:
        bcDescription - description of the business component of a task
        task - task
        transition - transition
        preInvokeParameters - the user's confirmation of the transition
        Returns:
        result of the transition
      • invokeAutoTransition

        TransitionResult invokeAutoTransition​(WorkflowableTask task,
                                              WorkflowTransition transition)
        Performing an automatic transition for the specified task.
        Parameters:
        task - task
        transition - transition
        Returns:
        result of the transition
      • forceInvokeAutoTransition

        void forceInvokeAutoTransition​(WorkflowableTask task,
                                       WorkflowTransition transition)
        Performing an automatic transition for a given task without checking its capability.
        Parameters:
        task - task
        transition - transition
      • forceInvokeAutoTransitionToHiddenStep

        void forceInvokeAutoTransitionToHiddenStep​(WorkflowableTask task)
        Performing an automatic transition for a specified task to a step with the HIDDEN status, if it exists in the transition model.
        Parameters:
        task - task
      • isChildBcDisabled

        boolean isChildBcDisabled​(BcIdentifier bcIdentifier,
                                  WorkflowableTask task)
        Checks whether editing of child business components of a specified task is blocked.
        Parameters:
        bcIdentifier - identifier of business component which is mapped to a task
        task - task
        Returns:
        whether editing of child business components is blocked
      • getDisableFields

        List<String> getDisableFields​(WorkflowableTask task)
        Returns a list of fields that are not editable for a specified task.
        Parameters:
        task - task
        Returns:
        list of fields that can't be edited
      • getAssigneeRecommendationSpecification

        org.springframework.data.jpa.domain.Specification<User> getAssigneeRecommendationSpecification​(WorkflowableTask task)
        Returns a specification for searching for recommended performers for a specified task.
        Parameters:
        task - task
        Returns:
        specification for searching for recommended performers
      • checkRequiredFieldsForTransition

        boolean checkRequiredFieldsForTransition​(WorkflowTransition transition)
        Checks whether the required fields must be filled in to complete the specified transition..
        Parameters:
        transition - transition
        Returns:
        whether it is necessary to check filling of mandatory fields
      • forceInvokeAutoTransitionIgnorePostFunctions

        TransitionResult forceInvokeAutoTransitionIgnorePostFunctions​(WorkflowTransition transition,
                                                                      WorkflowableTask task)
        Performing an automatic transition for a specified task without executing post functions and checking its capability.
        Parameters:
        transition - transition to be performed
        task - task
        Returns:
        result of the transition