Class JscriptWorkflowPath
- java.lang.Object
-
- org.alfresco.repo.workflow.jscript.JscriptWorkflowPath
-
- All Implemented Interfaces:
java.io.Serializable
public class JscriptWorkflowPath extends java.lang.Object implements java.io.SerializableClass 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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description JscriptWorkflowPath(java.lang.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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetId()Gets the value of theidpropertyJscriptWorkflowInstancegetInstance()Gets the value of theinstancepropertyWorkflowNodegetNode()Gets the value of thenodepropertyorg.mozilla.javascript.ScriptablegetTasks()Get all tasks associated with this workflow pathbooleanisActive()Gets the value of theactivepropertyJscriptWorkflowPathsignal(java.lang.String transitionId)Signal a transition to another node in the workflow
-
-
-
Constructor Detail
-
JscriptWorkflowPath
public JscriptWorkflowPath(java.lang.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 Detail
-
getId
public java.lang.String getId()
Gets the value of theidproperty- Returns:
- the id
-
isActive
public boolean isActive()
Gets the value of theactiveproperty- Returns:
- the active
-
getNode
public WorkflowNode getNode()
Gets the value of thenodeproperty- Returns:
- the node
-
getInstance
public JscriptWorkflowInstance 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
public JscriptWorkflowPath signal(java.lang.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
-
-