psdi.workflow

Class WFInteraction

  • All Implemented Interfaces:
    java.rmi.Remote, MboConstants, MboRemote, MaxRemoteProxy, WFInteractionRemote, WFNodeDetailRemote


    public class WFInteraction
    extends WFNodeDetail
    implements WFInteractionRemote
    WFInteraction nodes allow the process to bring up a certain application page and tell the user what to do.

    This is a system level object.

    The key attribute for this object is WFInteractionID.

    The attributes in this object are as follows:

    Attribute NameDescription
    ActionApplication action to perform
    AppApplication to bring up.
    DirectionsTitle of directions for the user from the workflow process.
    Directions_LongDescriptionDirections for the user from the workflow process.
    NodeIDIdentifies the node this is the details for.
    PagePage within the application to display
    ProcessNameName of the owning process.
    ProcessRevProcess Revision
    RelationWhich related record to bring up in the application
    WFInteractionIDUnique Id
    Attributes App, Page, and Relation tell the process where to bring the user and what record to show. Attributes Action tell the process which action page to bring up. The Direction attributes are used to inform the user what to do at that point. 'Directions' is used for the title of the message box while the contents of the longdescription field are put inside the message box.
    • Constructor Detail

      • WFInteraction

        public WFInteraction(MboSet ms)
                      throws java.rmi.RemoteException
        Constructor
        Parameters:
        ms -
        Throws:
        java.rmi.RemoteException
    • Method Detail

      • canTakePositive

        public boolean canTakePositive()
                                throws MXException,
                                       java.rmi.RemoteException
        Determines whether this node can take a positive action. Interaction nodes may have one positive action.
        Specified by:
        canTakePositive in class WFNodeDetail
        Returns:
        Returns true if this node has no positive actions already.
        Throws:
        MXException
        java.rmi.RemoteException
      • canTakeNegative

        public boolean canTakeNegative()
                                throws MXException,
                                       java.rmi.RemoteException
        Interaction nodes can't have a reject action.
        Specified by:
        canTakeNegative in class WFNodeDetail
        Returns:
        false
        Throws:
        MXException
        java.rmi.RemoteException
      • addedAction

        public void addedAction(boolean wasPositive)
                         throws MXException,
                                java.rmi.RemoteException
        An Interaction node can only originate one action, so this method clears the owning node's TakePositive flag.
        Specified by:
        addedAction in class WFNodeDetail
        Parameters:
        wasPositive - Was a positive action added?
        Throws:
        MXException
        java.rmi.RemoteException
      • removedAction

        public void removedAction(boolean wasPositive)
                           throws MXException,
                                  java.rmi.RemoteException
        An Interaction node can only originate one action, so if it loses it, this method sets the owning node's TakePositive flag.
        Specified by:
        removedAction in class WFNodeDetail
        Parameters:
        wasPositive - Was a positive action added?
        Throws:
        MXException
        java.rmi.RemoteException
      • wfValidate

        public void wfValidate(java.util.Vector errs,
                               java.util.Hashtable hinfo)
                        throws MXException,
                               java.rmi.RemoteException
        Interaction node validation. Interactions can only have a single exiting action. Interaction Nodes can't have a Relation and an Action. Interaction Nodes must either do somthing, like a relation, action, tab change, etc.., or have directions.
        Specified by:
        wfValidate in class WFNodeDetail
        Parameters:
        errs - A vector of MXExceptions where there are problems in the process. Any errors found will be added to this list.
        hinfo - A hashtable of information that is passed throughout the validation process
        Throws:
        MXException
        java.rmi.RemoteException
      • getRelatedMbo

        public MboRemote getRelatedMbo()
                                throws MXException,
                                       java.rmi.RemoteException
        During run-time, get the Mbo specified by the Relation attribute of this Interaction node. Only the first Mbo of each related set is used, making the results of this method shaky if sets with multiple members are used.
        Specified by:
        getRelatedMbo in interface WFInteractionRemote
        Returns:
        The related Mbo fetched for the controlled Mbo using the Relation attribute. This will be the currently controlled Mbo if the Relation attribute is null. Returns null if unable to get a related Mbo.
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        WFInteraction.getRelatedMbo()