Using the Reevaluate Element
The the <reevaluate> element of a function catalog is relevant only when a function is used in a condition.
Its effect is as follows:
- If set to
true:
- TIBCO BusinessEvents does not memorize the result of the evaluation of the condition that contains this function.
- If any of the conditions is re-evaluated, then this function is also re-evaluated.
For example, <reevaluate> is set to true for currentTimeMillis(). Given this condition:
stock.price > 10.0; currentTimeMillis() - stock.time > 600000;
If the condition stock.price > 10.0; is re-evaluated, then currentTimeMillis() is also re-evaluated.
- If set to
false:
- TIBCO BusinessEvents calls the function during the first evaluation and stores the result is stored and used for subsequent condition evaluations.
- TIBCO BusinessEvents Studio re-evaluates the condition only if another part of the same condition changes.
- In the above stock price example, if <reevaluate> were set to false, then the condition would be re-evaluated only if stock.time changes.
Copyright © TIBCO Software Inc. All Rights Reserved.