psdi.workflow

Class WFNotification

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


    public class WFNotification
    extends Mbo
    implements WFNotificationRemote
    WFNotifications relate a Communication Template to a Task Node or any Action of a process. There can be multiple notifications per Task or Action. Each notification specifies one Communication Template to use.

    This is a system level object.

    The key attributes for this object are NotificationId, ProcessName, and ProcessRev.

    The attributes in this object are as follows:

    Attribute NameDescription
    ActionIdThe Action that this notification is related to.
    NodeId The Node for the task node that this notification is related to.
    NotificationIdKey field for the table - auto generated.
    ObjectNameTarget object of the owning Workflow Process.
    ProcessNameThe Process that this notification is in.
    ProcessRev The Process revision this notification is part of.
    TemplateIDThe identifier of the Communication Template to use with this notification.
    • Constructor Detail

      • WFNotification

        public WFNotification(MboSet ms)
                       throws java.rmi.RemoteException
        Construct the WFNotification object
        Throws:
        java.rmi.RemoteException
    • Method Detail

      • init

        public void init()
                  throws MXException
        Initialization routine. Always read-only fields have their READONLY flag set here.
        Overrides:
        init in class Mbo
        Throws:
        MXException
      • add

        public void add()
                 throws MXException,
                        java.rmi.RemoteException
        Called when a new workflow notification is created. Sets new Mbo defaults.
        Specified by:
        add in interface MboRemote
        Overrides:
        add in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • activate

        public void activate()
                      throws java.rmi.RemoteException,
                             MXException
        Causes this WFNotification to activate its CT.
        Throws:
        java.rmi.RemoteException
        MXException
      • createCommTemplate

        public void createCommTemplate()
                                throws java.rmi.RemoteException,
                                       MXException
        Creates a new CommTemplate and, even though it's new, treat it as the related MboSet COMMTEMPLATE.
        Throws:
        java.rmi.RemoteException
        MXException
      • getMboSet

        public MboSetRemote getMboSet(java.lang.String name)
                               throws MXException,
                                      java.rmi.RemoteException
        Overridden to support faux MboSet OWNER.
        Specified by:
        getMboSet in interface MboRemote
        Overrides:
        getMboSet in class Mbo
        Parameters:
        name - The relationship provided to retrieve a related mboSet, usually using foreign keys. For example, "psdi.app.workorder.WOSetRemote.ASSET" is a relationship for the work order object to access the asset Set where "workorder.assetnum=asset.assetnum". The relationship can also be chained. Such as ASSET.ASSETSTATUS.
        Returns:
        The returned related set specified through the relationship.
        Throws:
        MXException - "A relationship called {0} does not exist for the {1} business object" exception will be thrown if the relationship was not found. "Unknown Object" exception will be thrown if the database object can not be found through the relationship.
        java.rmi.RemoteException
        See Also:
        Mbo.getMboSet(String)
      • getValidateOrder

        public java.lang.String[] getValidateOrder()
        Description copied from class: Mbo
        Returns a String[] of field names. The validate and batchValidate() method will test the fields' validations in this order.
        Overrides:
        getValidateOrder in class Mbo