psdi.app.jobplan

Class JpTaskRelation

  • java.lang.Object
  • All Implemented Interfaces:
    java.rmi.Remote, JpTaskRelationRemote, MboConstants, MboRemote, MaxRemoteProxy


    public class JpTaskRelation
    extends Mbo
    implements JpTaskRelationRemote
    Mbo to represent a JpTaskRelation object.
    This object is used to define a predecessor to successor relationship between two job plan tasks.
    The Jpnum and TaskId define the predecessor task in the relationship.
    The PredJpnum and PredTaskId define the predecessor task in the relationship.

    This Mbo is a system level object.

    The key attributes for this object are jobplanid.

    The attributes in this object are as follows:

    Attribute NameDescription
    JPTASKRELATIONIDThe unique identifier for this mbo
    JOBPLANIDThe unique id of the job plan that owns this mbo
    ORGIDThe orgainzation id of the jobplan that owns this mbo
    SITEIDThe site id of the jobplan that owns this mbo
    JPNUMThe job plan number of the job plan that owns this mbo
    JPTASKThe Task id of the task that owns this mbo
    PREDJPNUMThe predecessors job plan number
    PREDJPTASKThe predecessors task id
    • Constructor Detail

      • JpTaskRelation

        public JpTaskRelation(MboSet ms)
                       throws MXException,
                              java.rmi.RemoteException
        Construct the JpTaskRelation object.
        Parameters:
        ms - The JpTaskRelation MboSet.
        Throws:
        MXException
        java.rmi.RemoteException
    • Method Detail

      • init

        public void init()
                  throws MXException
        Initialize the JpTaskRelation object.
        Set the orgid and siteid READONLY flags to true unconditionally.; users should never change these attributes directly.
        Overrides:
        init in class Mbo
        Throws:
        MXException
      • add

        public void add()
                 throws MXException,
                        java.rmi.RemoteException
        Add a new Task Predessor.
        When a new task predessor is added, the jobplan number, jobplanid, orgid and siteid are copied from the jobplan which owns this object.
        Set the orgid READONLY flag to true if there is an orgid on the jobplan
        Set the siteid READONLY flag to true if there is a siteid on the jobplan
        Notify the owning job plan that a new component is being added
        Specified by:
        add in interface MboRemote
        Overrides:
        add in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        JobPlan.componentAdded()
      • propagateKeyValue

        public void propagateKeyValue(java.lang.String keyName,
                                      java.lang.String keyValue)
                               throws MXException,
                                      java.rmi.RemoteException
        Set value for jpnum.
        Specified by:
        propagateKeyValue in interface MboRemote
        Overrides:
        propagateKeyValue in class Mbo
        Parameters:
        keyName - Should equal "jpnum" or else nothing will be propagated.
        keyValue - The new value of jpnum.
        Throws:
        MXException
        java.rmi.RemoteException