public class WorkflowNode extends WorkflowEntity implements java.io.Serializable
This class holds a node in the workflow
Modifier and Type | Field and Description |
---|---|
static int |
NODE_CURRENT
Current node state
|
static int |
NODE_ERROR
Error state
|
Constructor and Description |
---|
WorkflowNode(java.lang.Object id)
Constructs a workflow node
|
Modifier and Type | Method and Description |
---|---|
void |
clearState(int whichState)
Clears the state of the node
|
WorkflowEntity |
copy()
Copies the workflow entity
|
int |
getColumn()
Gets the column
|
java.lang.String |
getErrorKey()
Gets the error key
|
java.lang.Object |
getId()
Gets the node ID
|
int |
getMaximumIncoming()
Gets the maximum number of incoming relationships
|
int |
getMaximumOutgoing()
Gets the maximum number of outgoing relationships
|
int |
getMinimumIncoming()
Gets the minimum number of incoming relationships
|
int |
getMinimumOutgoing()
Gets the minimum number of outgoing relationships
|
int |
getRow()
Gets the row
|
java.lang.String |
getTitle()
Gets the title
|
java.lang.Object |
getType()
Gets the node type
|
Workflow |
getWorkflow()
Gets the workflow
|
boolean |
hasProperties()
Returns whether the node has properties or not
|
void |
restoreFrom(WorkflowEntity entity)
Restores the workflow entity
|
void |
setColumn(int column)
Sets the column
|
void |
setErrorKey(java.lang.String errorKey)
Sets the error key
|
void |
setId(java.lang.Object id)
Sets the node ID
|
void |
setRow(int row)
Sets the row
|
void |
setState(int state)
Sets the state of the node
|
void |
setTitle(java.lang.String title)
Sets the title
|
void |
setType(java.lang.Object type)
Sets the node type
|
void |
setWorkflow(Workflow workflow)
Sets the workflow
|
boolean |
testState(int whichState)
Tests the state of the node
|
java.lang.String |
toString()
Returns the string representation of the node
|
public static final int NODE_CURRENT
public static final int NODE_ERROR
public WorkflowNode(java.lang.Object id)
id
- The node idpublic java.lang.String getTitle()
public void setTitle(java.lang.String title)
title
- The titlepublic java.lang.Object getType()
public void setType(java.lang.Object type)
type
- The node typepublic Workflow getWorkflow()
public void setWorkflow(Workflow workflow)
workflow
- The workflowpublic int getRow()
public void setRow(int row)
row
- The rowpublic int getColumn()
public void setColumn(int column)
column
- The columnpublic java.lang.Object getId()
public void setId(java.lang.Object id)
id
- The node IDpublic void setState(int state)
state
- The node statepublic boolean testState(int whichState)
whichState
- The state to testpublic void clearState(int whichState)
whichState
- The state to clearpublic java.lang.String toString()
toString
in class java.lang.Object
public WorkflowEntity copy()
copy
in class WorkflowEntity
public void restoreFrom(WorkflowEntity entity)
restoreFrom
in class WorkflowEntity
entity
- The item to restore frompublic int getMaximumIncoming()
public int getMaximumOutgoing()
public int getMinimumIncoming()
public int getMinimumOutgoing()
public void setErrorKey(java.lang.String errorKey)
errorKey
- the error keypublic java.lang.String getErrorKey()
public boolean hasProperties()
hasProperties
in class WorkflowEntity