Class PBETestCondition

Object
  |
  +--PBEAction
        |
        +--PBECondition
              |
              +--PBETestCondition

public class PBETestCondition
extends PBECondition


Description:
PBETestCondition causes a boolean expression to be evaluated.

PBETestCondition can be used in object and attribute events.


Event String Action Name:
test


Syntax:

test( bool_expr )


Parameters
bool_expr - The value to be converted to and returned as boolean.


Examples:
 PBE:objectEvent(
   "order",
   "numberOfItems",
   "after:new:if test(""PBE:objects['order']:attributes['numberOfItems']:getValue() > 10"") set(10)");
 
This event tests if the value in the attribute "numberOfItems" of the object "order" is greater than 10. If so, "numberOfItems" is set to 10.


Fields inherited from class PBEAction
iParameters, iType, name, procName
 
Constructor Summary
PBETestCondition()
           
 
Method Summary
 varchar parameters()
           
 
Methods inherited from class PBECondition
checkEvent, tracePerform
 
Methods inherited from class PBEAction
actionArguments, actionCall, actionParameters, attributeReference, callString, getObject, methodReference, nestedInput, objectReference, parameter, perform, performParameterCount, printPerform
 

Constructor Detail

PBETestCondition

public PBETestCondition()
Method Detail

parameters

public varchar parameters()
Overrides:
parameters in class PBEAction