Open topic with navigation

TIBCO BusinessEvents® Enterprise Edition 6.3.1

# Using the Reevaluate Element

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 reevaluated, then this function is also reevaluated.

    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 reevaluated, the `currentTimeMillis()` is also reevaluated.

- If set to `false`:
  - TIBCO BusinessEvents calls the function during the first evaluation and stores the result that is stored and used for subsequent condition evaluations.
  - TIBCO BusinessEvents Studio reevaluates the condition only if another part of the same condition changes.
  - In the above stock price example, if `<reevaluate>` is set to false, then the condition is reevaluated only when `stock.time` changes.

Did you find this helpful?

YesNo
Great!
Thanks for taking the time to give us some feedback.
Sorry about that

Why wasn't this helpful? (check all that apply)

Could not find what I was looking for
Instructions confusing or unclear
Instructions did not work

Want to tell us more?

Please select at least one option or provide details about the issue!!

Error occurred while submitting feedback.

Error2 occurred while submitting feedback.

TIBCO BusinessEvents® Enterprise Edition

Copyright © 2004-2024. Cloud Software Group, Inc. All Rights Reserved.