Interface WorkflowProcessingService

All Known Implementing Classes:
DefaultWorkflowProcessingService

public interface WorkflowProcessingService
Service to process workflows
  • Method Details

    • activate

      boolean activate(WorkflowActionModel action) throws ActivationWorkflowActionException
      Activates an action and saves the activation
      Parameters:
      action - to be activated
      Returns:
      true if action was activated
      Throws:
      ActivationWorkflowActionException
    • decideAction

      void decideAction(WorkflowActionModel action, WorkflowDecisionModel decision)
      Decides an action and assign a decision
      Parameters:
      action - to be decided
      decision - made
    • terminateWorkflow

      boolean terminateWorkflow(WorkflowModel workflow)
      Terminates workflow
      Parameters:
      workflow - to be terminated
      Returns:
      if terminated
    • endWorkflow

      boolean endWorkflow(WorkflowModel workflow)
      Ends workflow
      Parameters:
      workflow - to be ended
      Returns:
      if ended
    • startWorkflow

      boolean startWorkflow(WorkflowModel workflow)
      Starts workflow
      Parameters:
      workflow - to be started
      Returns:
      if started
    • setAndConnectionBetweenActionAndDecision

      void setAndConnectionBetweenActionAndDecision(WorkflowDecisionModel decision, WorkflowActionModel workflowAction)
      Sets "andconnection" attribute for links.
    • setOrConnectionBetweenActionAndDecision

      void setOrConnectionBetweenActionAndDecision(WorkflowDecisionModel decision, WorkflowActionModel workflowAction)
      Sets "orconnection" attribute for links.
    • toggleActions

      boolean toggleActions(WorkflowModel workflow)
      Toggle all actions assigned to workflow
      Parameters:
      workflow -
      Returns:
      true if toggled