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
|
toBeDeleted
Constructor and Description |
---|
WorkflowNode(java.lang.String id)
Constructs a workflow node
|
Modifier and Type | Method and Description |
---|---|
void |
clearState(int state)
Clears the state of the node
|
WorkflowEntity |
copy()
Copies the workflow entity
|
int |
getColumn() |
java.lang.String |
getErrorKey()
Gets the error key
|
java.lang.String |
getId()
Gets the node ID
|
int |
getMaximumIncoming()
Gets the maximum number of incoming relationships
|
int |
getMaximumOutgoing()
Gets the maximum number of outgoing relationships
|
int |
getMboRow() |
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.String |
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.String id)
Sets the node ID
|
void |
setMboRow(int row) |
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.String type)
Sets the node type
|
void |
setWorkflow(Workflow workflow)
Sets the workflow
|
boolean |
testState(int state)
Tests the state of the node
|
java.lang.String |
toString()
Returns the string representation of the node
|
getToBeDeleted, setToBeDeleted
public static final int NODE_CURRENT
public static final int NODE_ERROR
public WorkflowNode(java.lang.String id)
id
- The node idpublic java.lang.String getTitle()
public void setTitle(java.lang.String title)
title
- The titlepublic java.lang.String getType()
public void setType(java.lang.String 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 void setMboRow(int row)
public int getMboRow()
public int getColumn()
public void setColumn(int column)
column
- The columnpublic java.lang.String getId()
getId
in class WorkflowEntity
public void setId(java.lang.String id)
id
- The node IDpublic void setState(int state)
state
- The node statepublic boolean testState(int state)
state
- The state to testpublic void clearState(int state)
state
- 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