public class Workflow
extends java.lang.Object
implements java.io.Serializable
This class holds all the data required to display and edit a workflow through the design tool
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NODE_COL |
static java.lang.String |
NODE_ERROR_KEY |
static java.lang.String |
NODE_ID |
static java.lang.String |
NODE_ROW |
static java.lang.String |
NODE_STATE |
static java.lang.String |
NODE_TITLE |
static java.lang.String |
NODE_TYPE |
static java.lang.String |
REL_FROMID |
static java.lang.String |
REL_NEGATIVE |
static java.lang.String |
REL_TOID |
WorkflowEntity |
selected |
Constructor and Description |
---|
Workflow(java.lang.Object id)
Constructs a workflow object
|
Workflow(java.lang.String id,
java.lang.String title,
boolean enabled) |
Modifier and Type | Method and Description |
---|---|
void |
addNode(WorkflowNode node)
Adds a workflow node to the workflow
|
void |
addRelationship(WorkflowRelationship relationship)
Adds a workflow relationship to the workflow
|
WorkflowRelationship |
getAction(int row)
Gets a workflow node by mboRow
|
int |
getColumnCount()
Returns the count of the columns in the workflow
|
java.lang.Object |
getDocumentType()
Gets the document type
|
boolean |
getEnabled()
Get WF Enabled
|
java.lang.String |
getId()
Gets the workflow ID
|
java.lang.Object |
getNextNodeId()
Gets the next node ID
|
WorkflowNode |
getNode(int row)
Gets a workflow node by mboRow
|
WorkflowNode |
getNode(java.lang.Object id)
Gets a workflow node by id
|
WorkflowNode |
getNodeById(java.lang.Object id)
Gets the node by idID
|
java.util.Hashtable |
getNodeIndex() |
java.util.Vector |
getNodes()
Returns all the nodes in the workflow
|
java.util.Vector |
getNodesAsProperties()
Returns the node list as a vector of relationships
expressed as properties
|
WorkflowRelationship |
getRelationship(int index) |
WorkflowRelationship |
getRelationship(int nodeRow,
int actionRow) |
java.util.Vector |
getRelationships()
Returns all the relationships in the workflow
|
java.util.Vector |
getRelationships(WorkflowNode node)
Returns all the relationships in the workflow associated with
the node.
|
java.util.Vector |
getRelationshipsAsProperties()
Returns the relationship list as a vector of relationships
expressed as properties
|
int |
getRowCount()
Returns the count of the rows in the workflow
|
java.lang.String |
getTitle()
Gets the title
|
boolean |
isValidated()
Returns true if the workflow is validated
|
void |
removeAllNodes()
Removes all nodes from the workflow
|
void |
removeAllRelationships()
Removes all relationships from the workflow
|
void |
removeNode(WorkflowNode node)
Removes a workflow node from the workflow
|
void |
removeRelationship(WorkflowRelationship relationship)
Removes a workflow relationship from the workflow
|
void |
setDocumentType(java.lang.Object documentType)
Sets the document type
|
void |
setId(java.lang.String id)
Sets the workflow ID
|
void |
setTitle(java.lang.String title)
Sets the title
|
void |
setValidated(boolean validated)
Sets the workflow validation state
|
java.lang.String |
toString()
Returns the string representation of the workflow
|
public static final java.lang.String NODE_ID
public static final java.lang.String NODE_ROW
public static final java.lang.String NODE_COL
public static final java.lang.String NODE_TITLE
public static final java.lang.String NODE_TYPE
public static final java.lang.String NODE_STATE
public static final java.lang.String NODE_ERROR_KEY
public static final java.lang.String REL_FROMID
public static final java.lang.String REL_TOID
public static final java.lang.String REL_NEGATIVE
public WorkflowEntity selected
public Workflow(java.lang.Object id)
id
- The workflow idid
- The workflow enabledid
- The workflow namepublic Workflow(java.lang.String id, java.lang.String title, boolean enabled)
public java.lang.String getTitle()
public java.util.Hashtable getNodeIndex()
public void setTitle(java.lang.String title)
title
- The titlepublic java.lang.Object getDocumentType()
public void setDocumentType(java.lang.Object documentType)
docuemntType
- The document typepublic boolean isValidated()
public void setValidated(boolean validated)
validated
- The validation statepublic java.lang.String getId()
public void setId(java.lang.String id)
The
- workflow IDpublic boolean getEnabled()
public void addNode(WorkflowNode node)
node
- The workflow nodepublic void removeAllNodes()
public void removeNode(WorkflowNode node)
node
- The workflow nodepublic WorkflowNode getNode(java.lang.Object id)
id
- The workflow node's idpublic WorkflowNode getNode(int row)
id
- The workflow node's mboRowpublic java.util.Vector getNodes()
public void addRelationship(WorkflowRelationship relationship)
node
- The workflow relationshippublic WorkflowRelationship getRelationship(int index)
public WorkflowRelationship getRelationship(int nodeRow, int actionRow)
public void removeAllRelationships()
public void removeRelationship(WorkflowRelationship relationship)
node
- The workflow relationshippublic java.util.Vector getRelationships()
public java.util.Vector getRelationships(WorkflowNode node)
node
- The workflow nodepublic WorkflowRelationship getAction(int row)
id
- The workflow node's mboRowpublic int getRowCount()
public int getColumnCount()
public java.lang.Object getNextNodeId()
public WorkflowNode getNodeById(java.lang.Object id)
id
- The node IDpublic java.lang.String toString()
toString
in class java.lang.Object
public java.util.Vector getRelationshipsAsProperties()
public java.util.Vector getNodesAsProperties()