How do you evaluate the condition_string type field?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2017 03:15 PM
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:
the same as:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2018 05:17 PM
Hi Michael,
Try GlideRhinoHelper.evaluateAsBoolean(advanced_condition), this function returns boolean value.
Hope this helped!