Discussion
PEGA
Pegasystems Inc.
US
PEGA
Posted: Feb 2, 2016
Last activity: Apr 7, 2017
Last activity: 7 Apr 2017 11:38 EDT
Closed
How to access in built Utilities functions from Java code
We use the property value @(Pega-RULES:Utilities).SizeOfPropertyList(.pySteps) to get the count of steps in an activity.
How do I get the same count when writing custom Java code in an activity.
***Updated by moderator: Lochan to add Categories***
Hi,
The following code will help?
int size = pega_rules_utilities.SizeofPropertyList(.pySteps);
pega_rules is ruleset name. if there is - defined in the ruleset it should be specified as "_" here.
utilities is library name.
SizeofPropertyList is function name.
Function name should be prfixed with '.' , rest others are connected by '_' (ruleset and library).
Let me know , if this is not clear.
Thanks,
Gowrishankar.