Business rule

Abintimothy
Tera Contributor

Need help with testing after business rule 

1 ACCEPTED SOLUTION

Community Alums
Not applicable

Hi,

what exactly do you want to test - if it is triggered or what does it do?

In either way use following methods:
gs.log(); for global,
gs.info(); for scoped app (but global too).

And put there any string to know it is definitely your BR, so for example gs.info("YourName@@@"); this will create a record in Syslog table and you can filter it for the string "YourName@@@", put the above code to the beginning of the BR and you will see if it is triggered, eventually you can create "checkpoints" to see what is triggered or not:
gs.info("YourName@@@ 1");
gs.info("YourName@@@ 2");
gs.info("YourName@@@ 3");
etc.

If you want to see output of your BR you can adjust it as you need, for example:
gs.info("YourName@@@ BR“s Name is: " + current.name.getDisplayValue());

View solution in original post

1 REPLY 1

Community Alums
Not applicable

Hi,

what exactly do you want to test - if it is triggered or what does it do?

In either way use following methods:
gs.log(); for global,
gs.info(); for scoped app (but global too).

And put there any string to know it is definitely your BR, so for example gs.info("YourName@@@"); this will create a record in Syslog table and you can filter it for the string "YourName@@@", put the above code to the beginning of the BR and you will see if it is triggered, eventually you can create "checkpoints" to see what is triggered or not:
gs.info("YourName@@@ 1");
gs.info("YourName@@@ 2");
gs.info("YourName@@@ 3");
etc.

If you want to see output of your BR you can adjust it as you need, for example:
gs.info("YourName@@@ BR“s Name is: " + current.name.getDisplayValue());