psdi.workflow

Class WaitNodeDetail



  • public class WaitNodeDetail
    extends NodeDetail
    Node Detail class for the Workflow Wait node.
    • Constructor Detail

      • WaitNodeDetail

        public WaitNodeDetail()
    • Method Detail

      • validateNode

        public void validateNode(java.util.Vector errs,
                                 java.util.Hashtable hinfo)
                          throws MXException,
                                 java.rmi.RemoteException
        Validate a Wait node in a process. Makes sure all actions from this node go somewhere. Makes sure there's at least one action pointing to this node. Makes sure there's at least one action exiting this node.
        Specified by:
        validateNode in class NodeDetail
        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 boolean canTakePositive()
                                throws MXException,
                                       java.rmi.RemoteException
        Wait nodes can only have one exit which must be positive.
        Specified by:
        canTakePositive in class NodeDetail
        Returns:
        Returns true if this node can a positive action.
        Throws:
        MXException
        java.rmi.RemoteException
      • canTakeNegative

        public boolean canTakeNegative()
                                throws MXException,
                                       java.rmi.RemoteException
        Wait nodes can't have negative exits.
        Specified by:
        canTakeNegative in class NodeDetail
        Returns:
        Returns true if this node can a negative action.
        Throws:
        MXException
        java.rmi.RemoteException
      • addedAction

        public void addedAction(boolean wasPositive)
                         throws MXException,
                                java.rmi.RemoteException
        Once an action is added, no more can be.
        Specified by:
        addedAction in class NodeDetail
        Parameters:
        wasPositive - Was a positive action added?
        Throws:
        MXException
        java.rmi.RemoteException
      • removedAction

        public void removedAction(boolean wasPositive)
                           throws MXException,
                                  java.rmi.RemoteException
        When the action is removed the node can take another.
        Specified by:
        removedAction in class NodeDetail
        Parameters:
        wasPositive - Was a positive action added?
        Throws:
        MXException
        java.rmi.RemoteException
      • delete

        public void delete(long modifier)
                    throws java.rmi.RemoteException,
                           MXException
        Delete the wait list.
        Specified by:
        delete in class NodeDetail
        Throws:
        java.rmi.RemoteException
        MXException
      • undelete

        public void undelete()
                      throws java.rmi.RemoteException,
                             MXException
        Undo the delete of the wait list.
        Specified by:
        undelete in class NodeDetail
        Throws:
        java.rmi.RemoteException
        MXException
      • add

        public void add()
                 throws java.rmi.RemoteException,
                        MXException
        Set new WFWait defaults - none
        Specified by:
        add in class NodeDetail
        Throws:
        java.rmi.RemoteException
        MXException
      • activate

        public void activate()
                      throws java.rmi.RemoteException,
                             MXException
        Create EventResponse records to monitor events to wait for.
        Throws:
        java.rmi.RemoteException
        MXException
      • deactivate

        public void deactivate()
                        throws java.rmi.RemoteException,
                               MXException
        Remove EventResponse records - one of the waited for events occurred.
        Throws:
        java.rmi.RemoteException
        MXException
      • checkWaitEventCount

        protected void checkWaitEventCount(java.util.Vector errs)
                                    throws java.rmi.RemoteException,
                                           MXException
        Makes sure there's at least one event to wait for on this node
        Parameters:
        errs - This vector is used to collect the error messages.
        Throws:
        java.rmi.RemoteException
        MXException