Class JscriptWorkflowNode
java.lang.Object
org.alfresco.repo.workflow.jscript.JscriptWorkflowNode
- All Implemented Interfaces:
Serializable
Represents a Workflow Node within the Workflow Definition.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionJscriptWorkflowNode(String name, String title, String description, boolean isTaskNode, ArrayList<JscriptWorkflowTransition> transitions, org.mozilla.javascript.Scriptable scope, ServiceRegistry serviceRegistry) Constructor to create a new instance of this classJscriptWorkflowNode(WorkflowNode workflowNode, org.mozilla.javascript.Scriptable scope, ServiceRegistry serviceRegistry) Constructor to create a new instance of this class from an existing instance of WorkflowNode from the CMR workflow object model -
Method Summary
Modifier and TypeMethodDescriptionGets the value of thedescriptionpropertygetName()Gets the value of thenamepropertygetTitle()Gets the value of thetitlepropertyorg.mozilla.javascript.ScriptableGets the value of thetransitionspropertybooleanGets the value of theisTaskNodepropertytoString()
-
Constructor Details
-
JscriptWorkflowNode
public JscriptWorkflowNode(String name, String title, String description, boolean isTaskNode, ArrayList<JscriptWorkflowTransition> transitions, org.mozilla.javascript.Scriptable scope, ServiceRegistry serviceRegistry) Constructor to create a new instance of this class- Parameters:
name- Name of workflow nodetitle- Title of workflow nodedescription- Description of workflow nodeisTaskNode-trueif this node is a task nodetransitions- transitions leaving this node (null if none)scope- root scripting scope for this objectserviceRegistry- service registry object
-
JscriptWorkflowNode
public JscriptWorkflowNode(WorkflowNode workflowNode, org.mozilla.javascript.Scriptable scope, ServiceRegistry serviceRegistry) Constructor to create a new instance of this class from an existing instance of WorkflowNode from the CMR workflow object model- Parameters:
workflowNode- CMR workflow node object to create newJscriptWorkflowNodefromscope- root scripting scope for this newly instantiated objectserviceRegistry- service registry object
-
-
Method Details
-
getName
Gets the value of thenameproperty- Returns:
- the name
-
getTitle
Gets the value of thetitleproperty- Returns:
- the title
-
getDescription
Gets the value of thedescriptionproperty- Returns:
- the description
-
isTaskNode
public boolean isTaskNode()Gets the value of theisTaskNodeproperty- Returns:
- the isTaskNode
-
getTransitions
public org.mozilla.javascript.Scriptable getTransitions()Gets the value of thetransitionsproperty- Returns:
- the transitions
-
toString
-