How do you evaluate the condition_string type field?

michaelrodway
Tera Contributor

I currently have a config type form and on this form I have created a condition string field that I wish to evaluate in a Business Rule for a different form.

The behavior would be very similar to a Business Rules condition field.

        ie. Condition = gs.hasRoles('admin')

I have tried both GlideFilter and GlideScopedEvaluator, but neither seem to be correct.

I have also tried bringing the condition string that i am trying to evaluate right into my Business Rules Condition field:

ie. Condition = current.u_config.getRefRecord().getValue('u_conditions')

Ultimately, I am trying to put the condition of the BR as a configuration

So the following condition should work:

find_real_file.png

the same as:

find_real_file.png

5 REPLIES 5

belal
Kilo Contributor

Hi Michael,

Try GlideRhinoHelper.evaluateAsBoolean(advanced_condition), this function returns boolean value.

Hope this helped!