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 theFlowchartcomponent.- 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 booleanequals(Object obj)List<NodeModel>getChildren()StringgetType()UUIDgetUuid()inthashCode()booleanisActive()voidsetActive(boolean active)voidsetChildren(List<NodeModel> children)voidsetType(String type)voidsetUuid(UUID uuid)StringtoString()
-
-
-
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:
getTypein 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:
getUuidin interfaceIUuidProviding- Returns:
- The UUID that identifies this instance.
-
isActive
public boolean isActive()
- Specified by:
isActivein 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.
-
-