psdi.workflow

Class WFNodeSet

    • Constructor Detail

      • WFNodeSet

        public WFNodeSet(MboServerInterface ms)
                  throws java.rmi.RemoteException
        Construct the set
        Throws:
        java.rmi.RemoteException
    • Method Detail

      • getStartNode

        public WFNode getStartNode()
                            throws MXException,
                                   java.rmi.RemoteException
        Searches the node set for the start node.
        Returns:
        Thestart node or null if no start node in the process.
        Throws:
        MXException
        java.rmi.RemoteException
      • getNode

        public WFNode getNode(int nodeid)
                       throws MXException,
                              java.rmi.RemoteException
        Return the WFNode row with the NODEID passed in.
        Throws:
        MXException
        java.rmi.RemoteException
      • buildSubProcessList

        public void buildSubProcessList(java.util.Hashtable h,
                                        java.lang.String processName,
                                        java.lang.String processrev)
                                 throws java.rmi.RemoteException,
                                        MXException
        Find all subprocesses in a process specified by the ID & Rev# and adds them to the list. Also validates that the process has action exiting that matches the action exiting the sub-process node.
        Parameters:
        h - The list to add process id (key) and revision (value) info to.
        processName - The name of the process for which to get subprocess information.
        processrev - The Revision of the process for which to get subprocess information.
        Throws:
        MXApplicationException - Thrown with "workflow" and either "SubProcNeedsPosOut" or "SubProcNeedsNegOut" and parameters of the node's title, the name and revision of the process containing the subprocess node.
        java.rmi.RemoteException
        MXException
      • wfValidate

        public void wfValidate(java.util.Vector v,
                               java.util.Hashtable hinfo)
                        throws MXException,
                               java.rmi.RemoteException
        Validates the nodes of a work flow process.
        Parameters:
        v - A vector of MXExceptions where there are problems in the process. Any errors found are added to this vector.
        hinfo - A hashtable of information that is passed throughout the validation process
        Throws:
        MXException
        java.rmi.RemoteException
      • hasPositiveStop

        public boolean hasPositiveStop(java.lang.String processName,
                                       java.lang.String processrev)
                                throws java.rmi.RemoteException,
                                       MXException
        Determines whether this set of nodes has a postive arrow pointing to a stop. Resets this set.
        Returns:
        true if there exists a stop node pointed to by a positive action.
        Throws:
        java.rmi.RemoteException
        MXException
      • hasNegativeStop

        public boolean hasNegativeStop(java.lang.String processName,
                                       java.lang.String processrev)
                                throws java.rmi.RemoteException,
                                       MXException
        Determines whether this set of nodes has a negative arrow pointing to a stop. Resets this set.
        Returns:
        true if there exists a stop node pointed to by a negative action.
        Throws:
        java.rmi.RemoteException
        MXException
      • getNextNodeNum

        public int getNextNodeNum()
                           throws MXException,
                                  java.rmi.RemoteException
        Determines the number for the next node's NodeID. Returns a value one greater than the existing maximum node number in the process.
        Returns:
        The number to use for the next node ID.
        Throws:
        MXException
        java.rmi.RemoteException
      • duplicateNodes

        public void duplicateNodes(WFNodeSet originalNodes)
                            throws java.rmi.RemoteException,
                                   MXException
        Copy the nodes from the set given.
        Parameters:
        originalNodes - The set of original nodes.
        Throws:
        java.rmi.RemoteException
        MXException