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 |
Constructor and Description |
---|
Workflow(java.lang.Object id)
Constructs a workflow object
|
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
|
void |
buildFromProperties(java.util.Vector nodeList,
java.util.Vector rels)
Builds the workflow from the node and realtionships expressed as
propertry tables
|
int |
getColumnCount()
Returns the count of the columns in the workflow
|
java.lang.Object |
getDocumentType()
Gets the document type
|
java.lang.Object |
getId()
Gets the workflow ID
|
java.lang.Object |
getNextNodeId()
Gets the next node ID
|
WorkflowNode |
getNode(java.lang.Object nodeID)
Gets a workflow node by id
|
WorkflowNode |
getNodeById(java.lang.Object nodeID)
Gets the node by idID
|
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
|
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<java.util.Hashtable<java.lang.String,java.lang.Object>> |
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.Object 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 Workflow(java.lang.Object id)
id
- The workflow idpublic java.lang.String getTitle()
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.Object getId()
public void setId(java.lang.Object id)
The
- workflow IDpublic void addNode(WorkflowNode node)
node
- The workflow nodepublic void removeAllNodes()
public void removeNode(WorkflowNode node)
node
- The workflow nodepublic WorkflowNode getNode(java.lang.Object nodeID)
nodeID
- The workflow node's idpublic java.util.Vector getNodes()
public void addRelationship(WorkflowRelationship relationship)
node
- The workflow relationshippublic 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 int getRowCount()
public int getColumnCount()
public java.lang.Object getNextNodeId()
public WorkflowNode getNodeById(java.lang.Object nodeID)
nodeID
- The node IDpublic java.lang.String toString()
toString
in class java.lang.Object
public void buildFromProperties(java.util.Vector nodeList, java.util.Vector rels)
nodeList
- The list of nodes as property tablesrels
- The list of relationships as property tablespublic java.util.Vector<java.util.Hashtable<java.lang.String,java.lang.Object>> getRelationshipsAsProperties()
public java.util.Vector getNodesAsProperties()