psdi.workflow

Class WFCallStackSet

    • Constructor Detail

      • WFCallStackSet

        public WFCallStackSet(MboServerInterface ms)
                       throws java.rmi.RemoteException
        Constructor.
        Throws:
        java.rmi.RemoteException
    • Method Detail

      • pushWFCallStack

        public WFCallStackRemote pushWFCallStack(WFProcessRemote wfProcess)
                                          throws MXException,
                                                 java.rmi.RemoteException
        Adds a new call stack Mbo to the top of the stack. The new WFCallStack is assigned a call sequence number one greater than the current top.
        Throws:
        MXException
        java.rmi.RemoteException
      • popWFCallStack

        public WFCallStackRemote popWFCallStack()
                                         throws MXException,
                                                java.rmi.RemoteException
        Deactives the current top of the call stack and returns the new top of the call stack.
        Returns:
        The new top of the call stack or null if the call stack is done.
        Throws:
        MXException
        java.rmi.RemoteException
      • getWFCallStack

        public WFCallStack getWFCallStack()
                                   throws MXException,
                                          java.rmi.RemoteException
        Searches the call stack set for the active member with the highest sequence number.
        Returns:
        The current top call stack, or null if the stack in not active.
        Throws:
        MXException
        java.rmi.RemoteException
      • initiateWorkflow

        public WFActionSetRemote initiateWorkflow(java.lang.String memo,
                                                  WFProcess wfProcess)
                                           throws java.rmi.RemoteException,
                                                  MXException
        Sets up the callstack for a newly initiated workflow on a Mbo.
        Parameters:
        memo - Memo for workflow start.
        wfProcess - link to process definition
        Returns:
        The set of user actions, if any.
        Throws:
        java.rmi.RemoteException
        MXException
      • stopWorkflow

        public void stopWorkflow(java.lang.String memo)
                          throws java.rmi.RemoteException,
                                 MXException
        Tell the current node to stop and clear out the stack.
        Parameters:
        memo - For the transaction log.
        Throws:
        java.rmi.RemoteException
        MXException
      • isStopNodeReached

        public boolean isStopNodeReached()
      • setStopNodeReached

        public void setStopNodeReached(boolean stopNodeReached)
      • applyWorkflowAction

        public WFActionSetRemote applyWorkflowAction(WFAction action,
                                                     java.lang.String memo)
                                              throws java.rmi.RemoteException,
                                                     MXException
        Apply the chosen action.
        Parameters:
        action - The action to take.
        memo - Memo
        Returns:
        The new set of actions, if any.
        Throws:
        java.rmi.RemoteException
        MXException
      • getWFDiagramInfo

        public WFViewInfo getWFDiagramInfo(int requestedCallSeq)
                                    throws java.rmi.RemoteException,
                                           MXException
        Get the gifs for the processes which make of this instance.
        Throws:
        java.rmi.RemoteException
        MXException
      • canAdd

        public void canAdd()
                    throws MXException
        Determines if a Mbo can be added to the set.
        Overrides:
        canAdd in class MboSet
        Throws:
        MXAccessException - Thrown with "access","addWrongOwner" if this set isn't owned by a WFInstance. Parameter is this Mbo's Name.
        MXException