psdi.workflow

Class WorkflowNode

  • All Implemented Interfaces:
    java.io.Serializable


    public class WorkflowNode
    extends WorkflowEntity
    implements java.io.Serializable

    This class holds a node in the workflow

    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      protected int column
      The column on the diagram
      protected java.lang.String errorKey
      Node error key
      protected java.lang.Object id
      The node ID
      static int NODE_CURRENT
      Current node state
      static int NODE_ERROR
      Error state
      protected static java.util.HashMap nodeTypeDataLookup 
      protected int row
      The row on the diagram
      protected int state
      Node state
      protected java.lang.String title
      The title
      protected java.lang.Object type
      The node type
      protected Workflow workflow
      The workflow the node is in
    • Constructor Summary

      Constructors 
      Constructor and Description
      WorkflowNode(java.lang.Object id)
      Constructs a workflow node
    • Field Detail

      • title

        protected java.lang.String title
        The title
      • row

        protected int row
        The row on the diagram
      • column

        protected int column
        The column on the diagram
      • type

        protected java.lang.Object type
        The node type
      • id

        protected java.lang.Object id
        The node ID
      • workflow

        protected Workflow workflow
        The workflow the node is in
      • state

        protected int state
        Node state
      • errorKey

        protected java.lang.String errorKey
        Node error key
      • nodeTypeDataLookup

        protected static java.util.HashMap nodeTypeDataLookup
    • Constructor Detail

      • WorkflowNode

        public WorkflowNode(java.lang.Object id)
        Constructs a workflow node
        Parameters:
        id - The node id
    • Method Detail

      • getTitle

        public java.lang.String getTitle()
        Gets the title
        Returns:
        The title
      • setTitle

        public void setTitle(java.lang.String title)
        Sets the title
        Parameters:
        title - The title
      • getType

        public java.lang.Object getType()
        Gets the node type
        Returns:
        The document type
      • setType

        public void setType(java.lang.Object type)
        Sets the node type
        Parameters:
        type - The node type
      • getWorkflow

        public Workflow getWorkflow()
        Gets the workflow
        Returns:
        The workflow
      • setWorkflow

        public void setWorkflow(Workflow workflow)
        Sets the workflow
        Parameters:
        workflow - The workflow
      • getRow

        public int getRow()
        Gets the row
        Returns:
        The row
      • setRow

        public void setRow(int row)
        Sets the row
        Parameters:
        row - The row
      • getColumn

        public int getColumn()
        Gets the column
        Returns:
        The column
      • setColumn

        public void setColumn(int column)
        Sets the column
        Parameters:
        column - The column
      • getId

        public java.lang.Object getId()
        Gets the node ID
        Returns:
        The node ID
      • setId

        public void setId(java.lang.Object id)
        Sets the node ID
        Parameters:
        id - The node ID
      • setState

        public void setState(int state)
        Sets the state of the node
        Parameters:
        state - The node state
      • testState

        public boolean testState(int whichState)
        Tests the state of the node
        Parameters:
        whichState - The state to test
        Returns:
        true if node has the state and false otherwise
      • clearState

        public void clearState(int whichState)
        Clears the state of the node
        Parameters:
        whichState - The state to clear
      • toString

        public java.lang.String toString()
        Returns the string representation of the node
        Overrides:
        toString in class java.lang.Object
        Returns:
        The string representation
      • getMaximumIncoming

        public int getMaximumIncoming()
        Gets the maximum number of incoming relationships
        Returns:
        The maximum count
      • getMaximumOutgoing

        public int getMaximumOutgoing()
        Gets the maximum number of outgoing relationships
        Returns:
        The maximum count
      • getMinimumIncoming

        public int getMinimumIncoming()
        Gets the minimum number of incoming relationships
        Returns:
        The minimum count
      • getMinimumOutgoing

        public int getMinimumOutgoing()
        Gets the minimum number of outgoing relationships
        Returns:
        The minimum count
      • setErrorKey

        public void setErrorKey(java.lang.String errorKey)
        Sets the error key
        Parameters:
        errorKey - the error key
      • getErrorKey

        public java.lang.String getErrorKey()
        Gets the error key
        Returns:
        The error key
      • hasProperties

        public boolean hasProperties()
        Returns whether the node has properties or not
        Overrides:
        hasProperties in class WorkflowEntity
        Returns:
        True if node has properties and false otherwise