psdi.workflow

Class WFAssignmentSet

    • Constructor Detail

      • WFAssignmentSet

        public WFAssignmentSet(MboServerInterface ms)
                        throws java.rmi.RemoteException
        Constructor
        Throws:
        java.rmi.RemoteException
    • Method Detail

      • getMboInstance

        protected Mbo getMboInstance(MboSet ms)
                              throws MXException,
                                     java.rmi.RemoteException
        Manufactures a Mbo instance for the set.
        Specified by:
        getMboInstance in class MboSet
        Returns:
        the new Mbo.
        Throws:
        MXException
        java.rmi.RemoteException
      • getAssignment

        public WFAssignment getAssignment(int assignid)
                                   throws java.rmi.RemoteException,
                                          MXException
        Finds an assignment in the set, given the assignment ID.
        Parameters:
        assignid - The assignment ID.
        Returns:
        The WFAssignment Mbo
        Throws:
        MXApplicationException - Thrown with "workflow", "invalid_assignment" if no assignment found with the ID.
        java.rmi.RemoteException
        MXException
      • hasActiveAssignments

        public boolean hasActiveAssignments()
                                     throws java.rmi.RemoteException,
                                            MXException
        Determines whether any of the assignments in the set are active.
        Returns:
        true if there is at least one active assignment in the set.
        Throws:
        java.rmi.RemoteException
        MXException
      • hasActiveAssignments

        public boolean hasActiveAssignments(int groupNum)
                                     throws java.rmi.RemoteException,
                                            MXException
        Determines whether any assignments in the group are active.
        Parameters:
        groupNum - The group to check
        Returns:
        true if there is at least one active assignment in the group.
        Throws:
        java.rmi.RemoteException
        MXException
      • deactivateAssignments

        public void deactivateAssignments()
                                   throws java.rmi.RemoteException,
                                          MXException
        Deactivate all assignments in this set.
        Throws:
        java.rmi.RemoteException
        MXException
      • deactivateAssignments

        public void deactivateAssignments(int groupNum)
                                   throws java.rmi.RemoteException,
                                          MXException
        Deactivate all assignments in a group
        Parameters:
        groupNum - The group to deactivate
        Throws:
        java.rmi.RemoteException
        MXException
      • wfValidate

        public void wfValidate(java.util.Vector errs)
                        throws MXException,
                               java.rmi.RemoteException
        Validate the template assignments of a task node.
        Throws:
        MXException
        java.rmi.RemoteException
      • getNextAssignID

        public int getNextAssignID()
                            throws MXException,
                                   java.rmi.RemoteException
        Determines the number for the next Assignment's AssignID. Returns a value one greater than the existing maximum AssignID number in the set for a node.
        Returns:
        The number to use for the next AssignID.
        Throws:
        MXException
        java.rmi.RemoteException