Class JscriptWorkflowNode
- java.lang.Object
-
- org.alfresco.repo.workflow.jscript.JscriptWorkflowNode
-
- All Implemented Interfaces:
java.io.Serializable
public class JscriptWorkflowNode extends java.lang.Object implements java.io.SerializableRepresents a Workflow Node within the Workflow Definition.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description JscriptWorkflowNode(java.lang.String name, java.lang.String title, java.lang.String description, boolean isTaskNode, java.util.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 java.lang.StringgetDescription()Gets the value of thedescriptionpropertyjava.lang.StringgetName()Gets the value of thenamepropertyjava.lang.StringgetTitle()Gets the value of thetitlepropertyorg.mozilla.javascript.ScriptablegetTransitions()Gets the value of thetransitionspropertybooleanisTaskNode()Gets the value of theisTaskNodepropertyjava.lang.StringtoString()
-
-
-
Constructor Detail
-
JscriptWorkflowNode
public JscriptWorkflowNode(java.lang.String name, java.lang.String title, java.lang.String description, boolean isTaskNode, java.util.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 java.lang.String getName()
Gets the value of thenameproperty- Returns:
- the name
-
getTitle
public java.lang.String getTitle()
Gets the value of thetitleproperty- Returns:
- the title
-
getDescription
public java.lang.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
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-