psdi.workflow

Class NodeDetail

  • java.lang.Object
    • psdi.workflow.NodeDetail
    • Constructor Summary

      Constructors 
      Constructor and Description
      NodeDetail() 
    • Method Summary

      All Methods Static Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method and Description
      abstract void add()
      Setup a new record and any subrecords.
      abstract void addedAction(boolean wasPositive)
      This method tells the node that an action now originates from it.
      abstract boolean canTakeNegative()
      Determines whether this node can take a negative action.
      abstract boolean canTakePositive()
      Determines whether this node can take a positive action.
      protected void checkActionConnections(java.util.Vector errs)
      Validation helper method makes sure all actions from the node go somewhere.
      protected void checkActionReturn(java.util.Vector errs)
      Makes sure there's at least one action exiting this node
      protected void checkProcessInclusion(java.util.Vector errs)
      Make sure there's an action pointing to this action.
      abstract void delete(long modifier)
      Delete any extra records associated with the node.
      WFNode getNode()
      Get the node the details are for.
      static NodeDetail getNodeDetail(WFNode node)
      Factory returns the NodeDetail for the node type
      boolean isInput()
      Is this an manual input node?
      boolean isInteractive()
      Is this a interactive node?
      boolean isStart()
      Is this a start node?
      boolean isStop()
      Is this a stop node?
      boolean isTask()
      Is this a task node?
      boolean isWait()
      Is this a wait node?
      abstract void removedAction(boolean wasPositive)
      This method tells the node that an action no longer originates from it.
      protected void setNode(WFNode node)
      Set the node the details will work from
      abstract void undelete()
      Undo the affect of delete
      abstract void validateNode(java.util.Vector errs, java.util.Hashtable hinfo)
      Validates a node within a work flow process.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • NodeDetail

        public NodeDetail()
    • Method Detail

      • getNodeDetail

        public static NodeDetail getNodeDetail(WFNode node)
                                        throws java.rmi.RemoteException,
                                               MXException
        Factory returns the NodeDetail for the node type
        Parameters:
        node - The node to get details for.
        Returns:
        The node details
        Throws:
        java.rmi.RemoteException
        MXException
      • validateNode

        public abstract void validateNode(java.util.Vector errs,
                                          java.util.Hashtable hinfo)
                                   throws MXException,
                                          java.rmi.RemoteException
        Validates a node within a work flow process.
        Parameters:
        errs - A vector of MXExceptions where there are problems in the process. Any errors found will be added to this list.
        hinfo - A hashtable of information that is passed throughout the validation process
        Throws:
        MXException
        java.rmi.RemoteException
      • canTakePositive

        public abstract boolean canTakePositive()
                                         throws MXException,
                                                java.rmi.RemoteException
        Determines whether this node can take a positive action. This is a design time method.
        Returns:
        Returns true if this node can a positive action.
        Throws:
        MXException
        java.rmi.RemoteException
      • canTakeNegative

        public abstract boolean canTakeNegative()
                                         throws MXException,
                                                java.rmi.RemoteException
        Determines whether this node can take a negative action. This is a design time method.
        Returns:
        Returns true if this node can a negative action.
        Throws:
        MXException
        java.rmi.RemoteException
      • addedAction

        public abstract void addedAction(boolean wasPositive)
                                  throws MXException,
                                         java.rmi.RemoteException
        This method tells the node that an action now originates from it. Typically if this method is overridden to do anything, the owning node's TakePositive and/or TakeNegative attributes are updated.
        The base class default is do nothing.
        Parameters:
        wasPositive - Was a positive action added?
        Throws:
        MXException
        java.rmi.RemoteException
      • removedAction

        public abstract void removedAction(boolean wasPositive)
                                    throws MXException,
                                           java.rmi.RemoteException
        This method tells the node that an action no longer originates from it. Typically if this method is overridden to do anything, the owning node's TakePositive and/or TakeNegative attributes are updated.
        The base class default is do nothing.
        Parameters:
        wasPositive - Was a positive action added?
        Throws:
        MXException
        java.rmi.RemoteException
      • getNode

        public WFNode getNode()
        Get the node the details are for.
        Returns:
        The node.
      • setNode

        protected void setNode(WFNode node)
        Set the node the details will work from
        Parameters:
        node - The node.
      • checkActionConnections

        protected void checkActionConnections(java.util.Vector errs)
                                       throws java.rmi.RemoteException,
                                              MXException
        Validation helper method makes sure all actions from the node go somewhere.
        Throws:
        java.rmi.RemoteException
        MXException
      • checkProcessInclusion

        protected void checkProcessInclusion(java.util.Vector errs)
                                      throws java.rmi.RemoteException,
                                             MXException
        Make sure there's an action pointing to this action.
        Parameters:
        errs - This vector is used to collect the error messages.
        Throws:
        java.rmi.RemoteException
        MXException
      • checkActionReturn

        protected void checkActionReturn(java.util.Vector errs)
                                  throws java.rmi.RemoteException,
                                         MXException
        Makes sure there's at least one action exiting this node
        Parameters:
        errs - This vector is used to collect the error messages.
        Throws:
        java.rmi.RemoteException
        MXException
      • delete

        public abstract void delete(long modifier)
                             throws java.rmi.RemoteException,
                                    MXException
        Delete any extra records associated with the node.
        Throws:
        java.rmi.RemoteException
        MXException
      • undelete

        public abstract void undelete()
                               throws java.rmi.RemoteException,
                                      MXException
        Undo the affect of delete
        Throws:
        java.rmi.RemoteException
        MXException
      • add

        public abstract void add()
                          throws java.rmi.RemoteException,
                                 MXException
        Setup a new record and any subrecords.
        Throws:
        java.rmi.RemoteException
        MXException
      • isTask

        public boolean isTask()
                       throws java.rmi.RemoteException,
                              MXException
        Is this a task node?
        Throws:
        java.rmi.RemoteException
        MXException
      • isStop

        public boolean isStop()
                       throws java.rmi.RemoteException,
                              MXException
        Is this a stop node?
        Throws:
        java.rmi.RemoteException
        MXException
      • isStart

        public boolean isStart()
                        throws java.rmi.RemoteException,
                               MXException
        Is this a start node?
        Throws:
        java.rmi.RemoteException
        MXException
      • isInput

        public boolean isInput()
                        throws java.rmi.RemoteException,
                               MXException
        Is this an manual input node?
        Throws:
        java.rmi.RemoteException
        MXException
      • isInteractive

        public boolean isInteractive()
                              throws java.rmi.RemoteException,
                                     MXException
        Is this a interactive node?
        Throws:
        java.rmi.RemoteException
        MXException
      • isWait

        public boolean isWait()
                       throws java.rmi.RemoteException,
                              MXException
        Is this a wait node?
        Throws:
        java.rmi.RemoteException
        MXException