psdi.workflow

Class WFAction

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


    public class WFAction
    extends Mbo
    implements WFActionRemote
    Mbo to represent WFAction. WFActions are the arrows that connect nodes in the workflow diagram.

    This is a system level object.

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

    The attributes in this object are as follows:

    Attribute NameDescription
    ActionThe action to be performed (if any) as part of the processing of this arrow.
    ActionIDUniquely identifies an action in a process. Autogenerated by the design tool for internal use.
    AvailableIs this workflow action available? Evaluated during run time. Conditions and Security of a following interaction node are checked.
    ConditionCondition to check to enable this action
    ConditionClassName of class to instanciate for custom conditional actions
    InstructionText to further clarify what specific action will take place for routing and manual inputs.
    IsPositiveIs this a positive or negative action? Nodes have various rules for the nodes that begin at them.
    MemberNodeIDThe successor Node in the process.
    MemberNodeTitleThe title of the successor node.
    objectnameType of object the owning process supports.
    OwnerNodeIDThe predecessor Node in the process.
    ProcessNameThe name of the Process that this action is related to.
    ProcessRevThe process's revision number that this action is related to.
    SequenceOrdering sequence for manual input actions
    wfactionidUnique Identifier
    WFAction Mbos are owned by the WFProcess during design time, but owned by nodes during validation and runtime.
    • Constructor Detail

      • WFAction

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

      • setCurrentMemo

        public void setCurrentMemo(java.lang.String currentMemo)
      • getCurrentMemo

        public java.lang.String getCurrentMemo()
      • init

        public void init()
                  throws MXException
        Mbo 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 action is created. Sets new Mbo defaults.
        Specified by:
        add in interface MboRemote
        Overrides:
        add in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • applyWorkflowAction

        public void applyWorkflowAction(java.lang.String memo)
                                 throws MXException,
                                        java.rmi.RemoteException
        Does whatever this action says to do.
        Parameters:
        memo -
        actiondate - Date when action taken.
        Throws:
        MXException
        java.rmi.RemoteException
      • delete

        public void delete(long modifier)
                    throws MXException,
                           java.rmi.RemoteException
        When an action is deleted, need to tell the node it has one less action.
        Specified by:
        delete in interface MboRemote
        Overrides:
        delete in class Mbo
        Parameters:
        modifier - The bitwise flag specified to determine if certain normal security checks are to be bypassed for this delete request. For example: if the accessModifer is NOACCESSCHECK, then the check for the object's NODELETE flag and the call to the object's canDelete() method will not be performed. If the accessModifer is NONE, then all the access checks are performed before this object is marked delete.
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        Mbo.delete(long)
      • undelete

        public void undelete()
                      throws MXException,
                             java.rmi.RemoteException
        Description copied from class: Mbo
        Unmark the Mbo for deletion. Can only be called after a delete() and before the save() has been performed. This method will also unmark associated Long Description and Translation Mbos.
        Specified by:
        undelete in interface MboRemote
        Overrides:
        undelete in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • wfValidate

        public void wfValidate(java.util.Vector errs)
                        throws MXException,
                               java.rmi.RemoteException
        Validate the assignment record. Checks the conditionals.
        Parameters:
        errs - The error list to add to.
        Throws:
        MXException
        java.rmi.RemoteException
      • evaluateCondition

        public boolean evaluateCondition(WFAssignmentRemote assignment)
                                  throws java.rmi.RemoteException,
                                         MXException
        IV97001: overload the evaluateCondition
        Parameters:
        assignment -
        Returns:
        Throws:
        java.rmi.RemoteException
        MXException