Class MWFNode

    • Constructor Detail

      • MWFNode

        public MWFNode​(Properties ctx,
                       int AD_WF_Node_ID,
                       String trxName)
        Standard Constructor - save to cache
        Parameters:
        ctx - context
        AD_WF_Node_ID - id
        trxName - transaction
      • MWFNode

        public MWFNode​(MWorkflow wf,
                       String Value,
                       String Name)
        Parent Constructor
        Parameters:
        wf - workflow (parent)
        Value - value
        Name - name
      • MWFNode

        public MWFNode​(Properties ctx,
                       ResultSet rs,
                       String trxName)
        Load Constructor - save to cache
        Parameters:
        ctx - context
        rs - result set to load info from
        trxName - transaction
      • MWFNode

        public MWFNode​(MWFNode copy)
        Parameters:
        copy -
      • MWFNode

        public MWFNode​(Properties ctx,
                       MWFNode copy)
        Parameters:
        ctx -
        copy -
    • Method Detail

      • get

        public static MWFNode get​(int AD_WF_Node_ID)
        Get WF Node from Cache
        Parameters:
        AD_WF_Node_ID - id
        Returns:
        MWFNode
      • get

        public static MWFNode get​(Properties ctx,
                                  int AD_WF_Node_ID)
        Get WF Node from Cache
        Parameters:
        ctx - context
        AD_WF_Node_ID - id
        Returns:
        MWFNode
      • getCopy

        public static MWFNode getCopy​(Properties ctx,
                                      int AD_WF_Node_ID,
                                      String trxName)
        Get updateable copy of MWFNode from cache
        Parameters:
        ctx -
        AD_WF_Node_ID -
        trxName -
        Returns:
        MWFNode
      • setClientOrg

        public void setClientOrg​(int AD_Client_ID,
                                 int AD_Org_ID)
        Set Client Org
        Overrides:
        setClientOrg in class PO
        Parameters:
        AD_Client_ID - client
        AD_Org_ID - org
      • getNextNodeCount

        public int getNextNodeCount()
        Get Number of Next Nodes
        Returns:
        number of next nodes
      • getTransitions

        public MWFNodeNext[] getTransitions​(int AD_Client_ID)
        Get the transitions
        Parameters:
        AD_Client_ID - for client
        Returns:
        array of next nodes
      • getName

        public String getName​(boolean translated)
        Get Name
        Parameters:
        translated - translated
        Returns:
        Name
      • getDescription

        public String getDescription​(boolean translated)
        Get Description
        Parameters:
        translated - translated
        Returns:
        Description
      • getHelp

        public String getHelp​(boolean translated)
        Get Help
        Parameters:
        translated - translated
        Returns:
        Name
      • setPosition

        public void setPosition​(Point position)
        Set Position
        Parameters:
        position - point
      • setPosition

        public void setPosition​(int x,
                                int y)
        Set Position
        Parameters:
        x - x
        y - y
      • getPosition

        public Point getPosition()
        Get Position
        Returns:
        position point
      • getActionInfo

        public String getActionInfo()
        Get Action Info
        Returns:
        info
      • getColumn

        public MColumn getColumn()
        Get Column
        Returns:
        column if valid
      • isUserApproval

        public boolean isUserApproval()
        Is this an Approval setp?
        Returns:
        true if User Approval
      • isUserChoice

        public boolean isUserChoice()
        Is this a User Choice step?
        Returns:
        true if User Choice
      • isUserManual

        public boolean isUserManual()
        Is this a Manual user step?
        Returns:
        true if Window/Form/Workbench
      • getDurationMS

        public long getDurationMS()
        Get Duration in ms
        Returns:
        duration in ms
      • getLimitMS

        public long getLimitMS()
        Get Duration Limit in ms
        Returns:
        duration limit in ms
      • getDurationCalendarField

        public int getDurationCalendarField()
        Get Duration CalendarField
        Returns:
        Calendar.MINUTE, etc.
      • calculateDynamicPriority

        public int calculateDynamicPriority​(int seconds)
        Calculate Dynamic Priority
        Parameters:
        seconds - second after created
        Returns:
        dyn prio
      • getParameters

        public MWFNodePara[] getParameters()
        Get Parameters
        Returns:
        array of parameters
      • toStringX

        public String toStringX()
        User String Representation
        Returns:
        info
      • beforeSave

        protected boolean beforeSave​(boolean newRecord)
        Before Save
        Overrides:
        beforeSave in class PO
        Parameters:
        newRecord - new
        Returns:
        true if can be saved
      • afterSave

        protected boolean afterSave​(boolean newRecord,
                                    boolean success)
        After Save
        Overrides:
        afterSave in class PO
        Parameters:
        newRecord - new
        success - success
        Returns:
        saved
      • afterDelete

        protected boolean afterDelete​(boolean success)
        After Delete
        Overrides:
        afterDelete in class PO
        Parameters:
        success - success
        Returns:
        deleted
      • isValidFromTo

        public boolean isValidFromTo​(Timestamp date)
        Check if the workflow node is valid for given date
        Parameters:
        date -
        Returns:
        true if valid