|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.alfresco.repo.workflow.jscript.JscriptWorkflowPath
public class JscriptWorkflowPath
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.
| Constructor Summary | |
|---|---|
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 |
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
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 object
public 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 object| Method Detail |
|---|
public java.lang.String getId()
id property
public boolean isActive()
active property
public WorkflowNode getNode()
node property
public JscriptWorkflowInstance getInstance()
instance property
public 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)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||