psdi.workflow.virtual

Class ReassignWFSet

  • All Implemented Interfaces:
    java.rmi.Remote, MboAccessInterface, MboConstants, MboSetRemote, NonPersistentMboSetRemote, MaxRemoteProxy, Transactable, FixedLoggerNames, FixedLoggers


    public class ReassignWFSet
    extends NonPersistentMboSet
    implements NonPersistentMboSetRemote
    This set is used to reassign a workflow assignment with support for adding notifications linked by the NOTIFICATIONS relationship. Meant for use with the "reassignwf" page. On this page the Assignee, Memo and TaskDesc fields should be displayed, along with a checkbox for SendEmail and the ok and cancel buttons. This set expects to be owned by the workflow assignment to be reassigned.

    Unlike most virtual sets, this set's execute doesn't call a Mbo method to do it's action, but rather the reassignment is done in this object's execute method itself.

    • Constructor Detail

      • ReassignWFSet

        public ReassignWFSet(MboServerInterface ms)
                      throws MXException,
                             java.rmi.RemoteException
        Construct the set of Custom Mbos.
        Parameters:
        ms - The MboServerInterface CustomMboSet uses to access internals of the MXServer.
        Throws:
        MXException
        java.rmi.RemoteException
    • Method Detail

      • getMboInstance

        protected Mbo getMboInstance(MboSet ms)
                              throws MXException,
                                     java.rmi.RemoteException
        Factory method to create an ReassignWF object.
        Specified by:
        getMboInstance in class MboSet
        Parameters:
        ms - The ReassignWFSet.
        Returns:
        an ReassignWF object.
        Throws:
        MXException
        java.rmi.RemoteException
      • execute

        public void execute()
                     throws MXException,
                            java.rmi.RemoteException
        After the attributes are set, call this method to reassign the workflow assignment. The notification set is also executed, creating workflow notifications.
        Specified by:
        execute in interface NonPersistentMboSetRemote
        Overrides:
        execute in class NonPersistentMboSet
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        Used to send emails if the SendEmail flag is set.