psdi.app.workorder

Class FldWMTaskID

  • All Implemented Interfaces:
    MboConstants, MboValueListener


    public class FldWMTaskID
    extends FldTaskID
    Attribute Listener class for TaskID attributes outside of the work management packages. This class is for use on Mbos take have the Wonum + TaskID + RefWO combination of attributes. The combination of Wonum and TaskID identify a work order whose wonum will be found in the RefWO attribute. The RefWO column is a non-interface column which the Mbo should use to find the WO to interact with.

    While TaskIDs aren't Wonums, this classes validates using work order criterias. It's as if the validation is happening for RefWO, but it's done here, before the RefWO column is set.

    See Also:
    FldInterfaceWonum
    • Constructor Detail

      • FldWMTaskID

        public FldWMTaskID(MboValue mbv)
                    throws MXException
        Default parameters constructor. This constructor uses the following defaults to construct the listener:
        wonumName = "WONUM"
        refwoName = "RefWO"
        criteriaName = psdi.app.workorder.WOServiceRemote.critAPPROVED
        Parameters:
        mbv - the current mbo value.
        Throws:
        MXException
    • Method Detail

      • action

        public void action()
                    throws MXException,
                           java.rmi.RemoteException
        The first part is copied from the action() method in the parent class but with all references to EnteredAsTask left out, since it's not part of the WMAssignment (or Assignment) class. It sets the WMAssignment.Wonum field (called "refwoField" here) based on either the WOGroup field (herein called "wonumField") or the WOGroup field plus the TaskID. The usage is that of the parent class.
        Specified by:
        action in interface MboValueListener
        Overrides:
        action in class FldTaskID
        Throws:
        MXException
        java.rmi.RemoteException