Class JscriptWorkflowPath

java.lang.Object
org.alfresco.repo.workflow.jscript.JscriptWorkflowPath
All Implemented Interfaces:
Serializable

public class JscriptWorkflowPath extends Object implements Serializable
Class that represents a path of execution through a workflow. A simple workflow consists of only one root path of execution. That path may branch at some subsequent transition, so that execution follows multiple paths through the workflow.
Author:
glenj
See Also:
  • Constructor Details

    • JscriptWorkflowPath

      public JscriptWorkflowPath(String id, WorkflowNode node, JscriptWorkflowInstance instance, ServiceRegistry serviceRegistry, org.mozilla.javascript.Scriptable scope)
      Creates a new instance of a workflow path
      Parameters:
      id - workflow path ID
      node - workflow node the path has reached
      instance - instance to which the workflow path belongs
      serviceRegistry - Service Registry object
      scope - the root scripting scope for this object
    • JscriptWorkflowPath

      public JscriptWorkflowPath(WorkflowPath cmrWorkflowPath, ServiceRegistry serviceRegistry, org.mozilla.javascript.Scriptable scope)
      Creates a new instance of WorkflowPath from an instance of the WorkflowPath class provided by the CMR workflow model
      Parameters:
      cmrWorkflowPath - an instance of WorkflowPath from the CMR workflow object model
      serviceRegistry - Service Registry object
      scope - the root scripting scope for this object
  • Method Details

    • getId

      public String getId()
      Gets the value of the id property
      Returns:
      the id
    • isActive

      public boolean isActive()
      Gets the value of the active property
      Returns:
      the active
    • getNode

      public WorkflowNode getNode()
      Gets the value of the node property
      Returns:
      the node
    • getInstance

      public JscriptWorkflowInstance getInstance()
      Gets the value of the instance property
      Returns:
      the instance
    • getTasks

      public org.mozilla.javascript.Scriptable getTasks()
      Get all tasks associated with this workflow path
      Returns:
      all the tasks associated with this workflow path instance
    • signal

      public JscriptWorkflowPath signal(String transitionId)
      Signal a transition to another node in the workflow
      Parameters:
      transitionId - ID of the transition to follow (or null, for the default transition)
      Returns:
      the updated workflow path