Question
Bentego
Bentego
TR
Bentego
Posted: Nov 15, 2021
Last activity: Nov 16, 2021
Last activity: 16 Nov 2021 0:47 EST
Closed
How can i call pega when rule inside java code?
I want to result of 'pyIsMobilePhone' when rule of Pega inside Java code. How can i do this? Thanks
@MuratYavuz ,
You can call When rule in java step using the Function "callWhen". you can use below snippet in your code.
boolean a=pega_rules_utilities.callWhen(tools,"pyIsMobilePhone",myStepPage);
tools.putParamValue("output", a);
Let me know if it works.