Class JscriptWorkflowPath
java.lang.Object
org.alfresco.repo.workflow.jscript.JscriptWorkflowPath
- All Implemented Interfaces:
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 Summary
ConstructorsConstructorDescriptionJscriptWorkflowPath(String id, WorkflowNode node, JscriptWorkflowInstance instance, ServiceRegistry serviceRegistry, org.mozilla.javascript.Scriptable scope) Creates a new instance of a workflow pathJscriptWorkflowPath(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 -
Method Summary
Modifier and TypeMethodDescriptiongetId()Gets the value of theidpropertyGets the value of theinstancepropertygetNode()Gets the value of thenodepropertyorg.mozilla.javascript.ScriptablegetTasks()Get all tasks associated with this workflow pathbooleanisActive()Gets the value of theactivepropertySignal a transition to another node in the workflow
-
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 IDnode- workflow node the path has reachedinstance- instance to which the workflow path belongsserviceRegistry- Service Registry objectscope- 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 modelserviceRegistry- Service Registry objectscope- the root scripting scope for this object
-
-
Method Details
-
getId
Gets the value of theidproperty- Returns:
- the id
-
isActive
public boolean isActive()Gets the value of theactiveproperty- Returns:
- the active
-
getNode
Gets the value of thenodeproperty- Returns:
- the node
-
getInstance
Gets the value of theinstanceproperty- 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
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
-