psdi.workflow

Class WFCallStack

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


    public class WFCallStack
    extends Mbo
    implements WFCallStackRemote
    The Mbo to represent WFCallStack object.

    This is a system level object.

    The key attributes for this object are WfId and CallSeq.

    The attributes in this object are as follows:

    Attribute NameDescription
    Active Exclude inactive rows from call stack.
    CallSeq Sequence of calls on the stack.
    NodeId Current Node of process instance in call stack.
    ProcessName Reference to Process template.
    ProcessRev The revision number of the process.
    WfId Identifier of WFInstance.
    • Constructor Detail

      • WFCallStack

        public WFCallStack(MboSet ms)
                    throws java.rmi.RemoteException
        Constructor
        Parameters:
        ms - MboSet this mbo will be a member of.
        Throws:
        java.rmi.RemoteException
    • Method Detail

      • getWFInstance

        public WFInstance getWFInstance()
        Return the WFInstance that owns this Mbo. WFCallStacks are always owned by WFInstances.
      • initCurrentNode

        public WFNodeRemote initCurrentNode(WFProcessRemote wfProcess)
                                     throws MXException,
                                            java.rmi.RemoteException
        Initialize a new WFCallStack Mbo for the process it links to. Set to the start node of the given process.
        Parameters:
        The - process to link to.
        Throws:
        MXException
        java.rmi.RemoteException
      • setCurrentNode

        public WFNodeRemote setCurrentNode(int nodeid)
                                    throws MXException,
                                           java.rmi.RemoteException
        Note on the CallStack record where in the current process we are.
        Parameters:
        The - ID of the node that is now current.
        Returns:
        That node.
        Throws:
        MXException
        java.rmi.RemoteException
      • getCurrentNode

        public WFNode getCurrentNode()
                              throws MXException,
                                     java.rmi.RemoteException
        Returns the node associated with this CallStack Mbo.
        Throws:
        MXException
        java.rmi.RemoteException
      • add

        public void add()
                 throws MXException,
                        java.rmi.RemoteException
        New WFCallStack defaults wfid from the owning WFInstance and active to true.
        Specified by:
        add in interface MboRemote
        Overrides:
        add in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • getViewAsGIF

        public byte[] getViewAsGIF()
                            throws java.rmi.RemoteException,
                                   MXException
        Deprecated. Please use getViewAsImage() instead. The GifImageGenerator class, is no longer used.
        Returns view in gif file format of the workflow
        Throws:
        java.rmi.RemoteException
        MXException
        See Also:
        WFCallStack.getViewAsImage()
      • getViewAsImage

        public java.awt.image.BufferedImage getViewAsImage()
                                                    throws java.rmi.RemoteException,
                                                           MXException
        Returns view of the workflow as a BufferedImage. The returned image can be manipulated into any final output format using javax.imageio.ImageIO.write. This method was copied from the deprecated getViewAsGIF(), except it returns the BufferedImage before calling GifImageGenerator.makeGifImage(), which returns a byte[]. This was needed to support writing the wfmap to additional image formats (i.e. cannot display dimensionally large .gif images, but it can display the same image in a .png format)
        Throws:
        java.rmi.RemoteException
        MXException
        See Also:
        WFCallStack.getViewAsGIF()