Class NodeModel

    • Constructor Detail

      • NodeModel

        public NodeModel()
    • 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 interface IWorkflowElementTypeProviding
        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 interface IUuidProviding
        Returns:
        The UUID that identifies this instance.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • isActive

        public boolean isActive()
        Specified by:
        isActive in interface IActiveFlagProviding
        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.