psdi.workflow

Class WorkflowRelationship



  • public class WorkflowRelationship
    extends WorkflowEntity

    This class holds a relationship in the workflow

    • Field Detail

      • action

        protected java.lang.Object action
        The action
      • predecessorNode

        protected WorkflowNode predecessorNode
        The predecessor node
      • successorNode

        protected WorkflowNode successorNode
        The successor node
      • instruction

        protected java.lang.Object instruction
        The instruction
      • workflow

        protected Workflow workflow
        The workflow the relationship is in
      • isNegative

        protected boolean isNegative
        The relationship decision - positive/negative
    • Constructor Detail

      • WorkflowRelationship

        public WorkflowRelationship(WorkflowNode predecessorNode,
                                    WorkflowNode successorNode)
        Constructs a workflow relation
        Parameters:
        predecessorNode - The predecessor node
        successorNode - The successor node
    • Method Detail

      • getWorkflow

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

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

        public WorkflowNode getPredecessorNode()
        Gets the predecessor workflow node
        Returns:
        The predecessor node
      • getSuccessorNode

        public WorkflowNode getSuccessorNode()
        Gets the successor workflow node
        Returns:
        The successor node
      • getAction

        public java.lang.Object getAction()
        Gets the action
        Returns:
        The action
      • setAction

        public void setAction(java.lang.Object action)
        Sets the action
        Parameters:
        action - The action
      • getInstruction

        public java.lang.Object getInstruction()
        Gets the instruction
        Returns:
        The instruction
      • setInstruction

        public void setInstruction(java.lang.Object instruction)
        Sets the instruction
        Parameters:
        instruction - The instruction
      • setNegative

        public void setNegative(boolean isNegative)
        Sets the negative flag for the relationship
        Parameters:
        isNegative - The flag state
      • isNegative

        public boolean isNegative()
        Gets the negative flag for the relationship
      • getHorizontalRelationship

        public int getHorizontalRelationship()
        Gets the horizontal relationship between the ends of the line
        Returns:
        < 0 if line goes backwards,0 if goes up and > 0 if goes forward.
      • getVerticalRelationship

        public int getVerticalRelationship()
        Gets the vertical relationship between the ends of the line
        Returns:
        < 0 if line goes up,0 if goes horizontal and > 0 if goes down.
      • toString

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