I need to compare two date time properties in a java step. I know it can be done in regular pega step. however I need to do it in java due to some other logical constraints. I need to know how to read date time property values in clipboard from two different pages and to compare them.
In addition to the normal Java libraries, your Java step can call functions in the Rule-Utility-Functionclass. This class contains functions (Rule-Utility-Function rule type), organized into libraries (Rule-Utility-Library rule type).
Each function rule belongs to a RuleSet. To call a function rule from a Java step, refer to each library by its RuleSet and library name. For example, a standard library named String is defined in the Pega-RULES RuleSet. To reference this library in your Java, use this syntax:
After the dot, enter the name of the String library function using exact case, and any required parameters: