Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

Hi Team, I need to call system property having integer value in business rule.

Deepshi1
Tera Contributor

Can anyone help me with the same.

I have an integer property having some value and need to call that in BR and if the value is greater then 2 the task should get created in the required table.

3 ACCEPTED SOLUTIONS

piyushsain
Tera Guru

Hi,

You can call the property by gs.getProperty('Property_name') and save it in a variable

If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.
Regards,
Piyush Sain

View solution in original post

Sandeep Rajput
Tera Patron

@Deepshi1 please use gs.getProperty('property name'); to fetch the value of a system property in business rule.

 

 

View solution in original post

var systemProp = parseInt(gs.getProperty('some property name'));

if(systemProp>2){
//do something
}
else{
//Do something else.
}

View solution in original post

5 REPLIES 5

piyushsain
Tera Guru

Hi,

You can call the property by gs.getProperty('Property_name') and save it in a variable

If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.
Regards,
Piyush Sain

Also need to check for property integer value. 

var systemProp = parseInt(gs.getProperty('some property name'));

if(systemProp>2){
//do something
}
else{
//Do something else.
}

Sandeep Rajput
Tera Patron

@Deepshi1 please use gs.getProperty('property name'); to fetch the value of a system property in business rule.