public class JscriptWorkflowPath
extends java.lang.Object
implements java.io.Serializable
| Constructor and Description |
|---|
JscriptWorkflowPath(java.lang.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 |
|---|---|
java.lang.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(java.lang.String transitionId)
Signal a transition to another node in the workflow
|
public JscriptWorkflowPath(java.lang.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 java.lang.String getId()
id propertypublic boolean isActive()
active propertypublic WorkflowNode getNode()
node propertypublic JscriptWorkflowInstance getInstance()
instance propertypublic org.mozilla.javascript.Scriptable getTasks()
public JscriptWorkflowPath signal(java.lang.String transitionId)
transitionId - ID of the transition to follow (or null, for the default transition)Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.