Class JscriptWorkflowNode
- java.lang.Object
-
- org.alfresco.repo.workflow.jscript.JscriptWorkflowNode
-
- All Implemented Interfaces:
Serializable
public class JscriptWorkflowNode extends Object implements Serializable
Represents a Workflow Node within the Workflow Definition.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description 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 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDescription()Gets the value of thedescriptionpropertyStringgetName()Gets the value of thenamepropertyStringgetTitle()Gets the value of thetitlepropertyorg.mozilla.javascript.ScriptablegetTransitions()Gets the value of thetransitionspropertybooleanisTaskNode()Gets the value of theisTaskNodepropertyStringtoString()
-
-
-
Constructor Detail
-
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 Detail
-
getName
public String getName()
Gets the value of thenameproperty- Returns:
- the name
-
getTitle
public String getTitle()
Gets the value of thetitleproperty- Returns:
- the title
-
getDescription
public String 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
-
-