public class WorkflowRelationship extends WorkflowEntity
This class holds a relationship in the workflow
toBeDeleted
Constructor and Description |
---|
WorkflowRelationship(WorkflowNode predecessorNode,
WorkflowNode successorNode)
Constructs a workflow relation
|
Modifier and Type | Method and Description |
---|---|
WorkflowEntity |
copy()
Copies the workflow entity
|
java.lang.Object |
getAction()
Gets the action
|
int |
getHorizontalRelationship()
Gets the horizontal relationship between the ends of the
line
|
java.lang.String |
getId()
Gets the action ID
|
int |
getIndex() |
java.lang.Object |
getInstruction()
Gets the instruction
|
int |
getMboRow() |
WorkflowNode |
getPredecessorNode()
Gets the predecessor workflow node
|
WorkflowNode |
getSuccessorNode()
Gets the successor workflow node
|
int |
getVerticalRelationship()
Gets the vertical relationship between the ends of the
line
|
Workflow |
getWorkflow()
Gets the workflow
|
boolean |
hasProperties()
Returns whether the entity has properties or not
|
boolean |
isNegative()
Gets the negative flag for the relationship
|
void |
restoreFrom(WorkflowEntity entity)
Restores the workflow entity
|
void |
setAction(java.lang.Object action)
Sets the action
|
void |
setId(java.lang.String id)
Sets the action ID
|
void |
setIndex(int index) |
void |
setInstruction(java.lang.Object instruction)
Sets the instruction
|
void |
setMboRow(int row) |
void |
setNegative(boolean isNegative)
Sets the negative flag for the relationship
|
void |
setWorkflow(Workflow workflow)
Sets the workflow
|
java.lang.String |
toString()
Returns the string representation of the relationship
|
getToBeDeleted, setToBeDeleted
public WorkflowRelationship(WorkflowNode predecessorNode, WorkflowNode successorNode)
predecessorNode
- The predecessor nodesuccessorNode
- The successor nodepublic Workflow getWorkflow()
public void setWorkflow(Workflow workflow)
workflow
- The workflowpublic WorkflowNode getPredecessorNode()
public void setIndex(int index)
public int getIndex()
public WorkflowNode getSuccessorNode()
public java.lang.Object getAction()
public java.lang.String getId()
getId
in class WorkflowEntity
public void setId(java.lang.String id)
id
- The action IDpublic void setAction(java.lang.Object action)
action
- The actionpublic java.lang.Object getInstruction()
public void setInstruction(java.lang.Object instruction)
instruction
- The instructionpublic void setMboRow(int row)
public int getMboRow()
public void setNegative(boolean isNegative)
isNegative
- The flag statepublic boolean isNegative()
public int getHorizontalRelationship()
public int getVerticalRelationship()
public WorkflowEntity copy()
copy
in class WorkflowEntity
public void restoreFrom(WorkflowEntity entity)
restoreFrom
in class WorkflowEntity
entity
- The item to restore frompublic java.lang.String toString()
toString
in class java.lang.Object
public boolean hasProperties()
WorkflowEntity
hasProperties
in class WorkflowEntity