psdi.workflow

Class WFStart

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


    public class WFStart
    extends WFNodeDetail
    implements WFStartRemote
    Mbo to represent WFStart object. Each process has a single start node that defines the node where workflow processing starts. Starts will have a single postive action and no action can point to a start node.

    This is a system level object.

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

    The attributes in this object are as follows:

    Attribute NameDescription
    NodeIdThe Node that this start information is related to.
    ProcessNameThe Process that this start node is in.
    ProcessRevProcess revision.
    • Constructor Detail

      • WFStart

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

      • wfValidate

        public void wfValidate(java.util.Vector errs,
                               java.util.Hashtable hinfo)
                        throws MXException,
                               java.rmi.RemoteException
        Start validation
        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
      • canTakePositive

        public boolean canTakePositive()
                                throws MXException,
                                       java.rmi.RemoteException
        Determines whether this node can take a positive action. Start 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
        Determines whether this node can take a negative action. Start nodes can't take any negative actions.
        Specified by:
        canTakeNegative in class WFNodeDetail
        Returns:
        Returns false.
        Throws:
        MXException
        java.rmi.RemoteException
      • addedAction

        public void addedAction(boolean wasPositive)
                         throws MXException,
                                java.rmi.RemoteException
        A start 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
        A start 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