Calling System Property in a Business Rule Script Condition

ccorscadden
Kilo Contributor

Hello

I'm currently working on a business rule to generate a record within my application once a followup threshold has been met. I've already setup a system property to hold the value of that threshold but I'm having issue applying this threshold on the condition field that evaluates before it decides to run the business rule script.

Currently the condition is current.overall<javascript:gs.getProperty("x_16205_pulsecheck.followup_theshold"); but the syntax check isn't liking how I currently have it setup. I was wondering if I have made a mistake, is gs.getProperty not callable within the condition field?

1 ACCEPTED SOLUTION

Gurpreet07
Mega Sage

There is no need to use javascript: in here   . Following should work in BR Condition


current.overall<gs.getProperty("x_16205_pulsecheck.followup_theshold")




Also make sure that property is of integer type.


View solution in original post

2 REPLIES 2

Gurpreet07
Mega Sage

There is no need to use javascript: in here   . Following should work in BR Condition


current.overall<gs.getProperty("x_16205_pulsecheck.followup_theshold")




Also make sure that property is of integer type.


Thank you Singh,



I tried it like that earlier but my mistake is I have the property as a string.