psdi.app.workorder

Class FldWOConstraintDate

    • Constructor Detail

      • FldWOConstraintDate

        public FldWOConstraintDate(MboValue mbv)
        construct and attach to the MboValue.
        Parameters:
        mbv - the MboValue this field attach to.
    • Method Detail

      • validate

        public void validate()
                      throws MXException,
                             java.rmi.RemoteException
        1) The Start Constraint must be earlier than the Finish Constraint. 2) There's a presumption that Scheduled dates should be inside the Constraint range, but they don't have to be. If a change to the Constraint Dates results in a Scheduled date now being outside the Constraint range, the user is warned. A YesNoCancel exception is thrown and the user must explicitly choose to proceed. The only exception to this is if it's not an interactive session: if an outside agent like Scheduler is writing data to Maximo, no warning is issued (since the user has presumably already decided to have Scheduled Dates outside the Constraint Range).
        Specified by:
        validate in interface MboValueListener
        Overrides:
        validate in class MboValueAdapter
        Throws:
        MXApplicationException - "workorder", "StartConstraintAfterFinishConstraint" when the start constraint date is after finish constraint date.
        MXApplicationYesNoCancelException - "workorder", "SchedDateEarlierThanStConst", when a schedule date is before the Start Constraint.
        MXApplicationYesNoCancelException - "workorder", "SchedDateLaterThanFinConst", when a schedule date is after the Finish Constraint.
        MXException
        java.rmi.RemoteException