Package de.xima.fc.workflow.taglib.model
Class NodeModel
- java.lang.Object
-
- de.xima.fc.workflow.taglib.model.NodeModel
-
- All Implemented Interfaces:
IActiveFlagProviding
,IUuidProviding
,IWorkflowElementTypeProviding
,IWorkflowNodeTypeProviding
,Serializable
public final class NodeModel extends Object implements IUuidProviding, IWorkflowNodeTypeProviding, IActiveFlagProviding, Serializable
View model corresponding to the WorkflowNode entity, used by theFlowchart
component.- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NodeModel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
List<NodeModel>
getChildren()
String
getType()
UUID
getUuid()
int
hashCode()
boolean
isActive()
void
setActive(boolean active)
void
setChildren(List<NodeModel> children)
void
setType(String type)
void
setUuid(UUID uuid)
String
toString()
-
-
-
Method Detail
-
getChildren
public List<NodeModel> getChildren()
- Returns:
- The children of this node, such as the consequent and alternate for a condition node. A node such as an action node may not have any children.
-
getType
public String getType()
- Specified by:
getType
in interfaceIWorkflowElementTypeProviding
- Returns:
- The type of the workflow element that determines how the workflow element behaves. Usually there is a registered handler for each type.
-
getUuid
public UUID getUuid()
- Specified by:
getUuid
in interfaceIUuidProviding
- Returns:
- The UUID that identifies this instance.
-
isActive
public boolean isActive()
- Specified by:
isActive
in interfaceIActiveFlagProviding
- Returns:
- {code true} if this instance is considered active, enabled etc. The exact meaning depends on the type.
-
setActive
public void setActive(boolean active)
- Parameters:
active
- Whether this node is active. Inactive nodes are not executed.
-
setChildren
public void setChildren(List<NodeModel> children)
- Parameters:
children
- The children of this node, such as the consequent and alternate for a condition node. A node such as an action node may not have any children.
-
setType
public void setType(String type)
- Parameters:
type
- The type of the workflow element that determines how the workflow element behaves. Usually there is a registered handler for each type.
-
setUuid
public void setUuid(UUID uuid)
- Parameters:
uuid
- The UUID of this node, unique within the task of this node.
-
-