Class MWFNextCondition

All Implemented Interfaces:
Serializable, Cloneable, Comparator<Object>, I_AD_WF_NextCondition, I_Persistent, Evaluatee, ImmutablePOSupport

public class MWFNextCondition extends X_AD_WF_NextCondition implements ImmutablePOSupport
Extended Workflow Transition Condition model for AD_WF_NextCondition
Version:
$Id: MWFNextCondition.java,v 1.3 2006/07/30 00:51:05 jjanke Exp $
Author:
Jorg Janke, Teo Sarca, SC ARHIPAC SERVICE SRL
  • BF [ 1943720 ] WF Next Condition: handling boolean values is poor
  • See Also:
    • Constructor Details

      • MWFNextCondition

        public MWFNextCondition(Properties ctx, String AD_WF_NextCondition_UU, String trxName)
        UUID based Constructor
        Parameters:
        ctx - Context
        AD_WF_NextCondition_UU - UUID key
        trxName - Transaction
      • MWFNextCondition

        public MWFNextCondition(Properties ctx, int id, String trxName)
        Default Constructor
        Parameters:
        ctx - context
        id - id
        trxName - transaction
      • MWFNextCondition

        public MWFNextCondition(Properties ctx, ResultSet rs, String trxName)
        Load Constructor
        Parameters:
        ctx - context
        rs - result set
        trxName - transaction
      • MWFNextCondition

        public MWFNextCondition(MWFNextCondition copy)
        Copy constructor
        Parameters:
        copy -
      • MWFNextCondition

        public MWFNextCondition(Properties ctx, MWFNextCondition copy)
        Copy constructor
        Parameters:
        ctx -
        copy -
      • MWFNextCondition

        public MWFNextCondition(Properties ctx, MWFNextCondition copy, String trxName)
        Copy constructor
        Parameters:
        ctx -
        copy -
        trxName -
    • Method Details

      • isOr

        public boolean isOr()
        Is Or Condition
        Returns:
        true if OR
      • evaluate

        public boolean evaluate(MWFActivity activity)
        Evaluate Condition
        Parameters:
        activity - activity
        Returns:
        true if true
      • evaluate

        protected boolean evaluate(PO po)
        Evaluate Condition
        Parameters:
        po - PO
        Returns:
        true if true
      • getDecodedValue

        protected String getDecodedValue(String sValue, PO po)
        Decode value string.
        If sValue start with @COL=, remaining text is interpreted as a column of the associated record.
        Otherwise, parse sValue for context and PO variable (i.e resolve @tag@ variables).
        Parameters:
        sValue - value to be decoded
        po - PO model object bound to the activity
        Returns:
        decoded value
      • toString

        public String toString()
        String Representation
        Overrides:
        toString in class X_AD_WF_NextCondition
        Returns:
        info
      • markImmutable

        public MWFNextCondition markImmutable()
        Description copied from interface: ImmutablePOSupport
        mark PO as immutable
        Specified by:
        markImmutable in interface ImmutablePOSupport
        Returns:
        PO
      • beforeSave

        protected boolean beforeSave(boolean newRecord)
        Description copied from class: PO
        Called before Save for Pre-Save Operation.
        Default implementation is nop, to be implemented in sub-classes that needed it.
        Overrides:
        beforeSave in class PO
        Parameters:
        newRecord - true if it is a new record
        Returns:
        true if record can be saved