public class JscriptWorkflowPath extends Object implements Serializable
Constructor and Description |
---|
JscriptWorkflowPath(String id,
WorkflowNode node,
JscriptWorkflowInstance instance,
ServiceRegistry serviceRegistry,
org.mozilla.javascript.Scriptable scope)
Creates a new instance of a workflow path
|
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
|
Modifier and Type | Method and Description |
---|---|
String |
getId()
Gets the value of the
id property |
JscriptWorkflowInstance |
getInstance()
Gets the value of the
instance property |
WorkflowNode |
getNode()
Gets the value of the
node property |
org.mozilla.javascript.Scriptable |
getTasks()
Get all tasks associated with this workflow path
|
boolean |
isActive()
Gets the value of the
active property |
JscriptWorkflowPath |
signal(String transitionId)
Signal a transition to another node in the workflow
|
public JscriptWorkflowPath(String id, WorkflowNode node, JscriptWorkflowInstance instance, ServiceRegistry serviceRegistry, org.mozilla.javascript.Scriptable scope)
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 objectpublic JscriptWorkflowPath(WorkflowPath cmrWorkflowPath, ServiceRegistry serviceRegistry, org.mozilla.javascript.Scriptable scope)
cmrWorkflowPath
- an instance of WorkflowPath from the CMR
workflow object modelserviceRegistry
- Service Registry objectscope
- the root scripting scope for this objectpublic String getId()
id
propertypublic boolean isActive()
active
propertypublic WorkflowNode getNode()
node
propertypublic JscriptWorkflowInstance getInstance()
instance
propertypublic org.mozilla.javascript.Scriptable getTasks()
public JscriptWorkflowPath signal(String transitionId)
transitionId
- ID of the transition to follow (or null, for the default transition)Copyright © 2005–2017 Alfresco Software. All rights reserved.