Question
1
Replies
342
Views
CTS
Posted: April 17, 2018
Last activity: April 19, 2018
Closed
Declare Index When rule is not taking Source class context in Pega 7.1.9
Hi ,
We have created a declare index rule in our workobject class and we want the when rule of the declare index rule to be referred from Source context class.
Currently we are not able to select the when rule from source context class. We have tried defining the pages and indexes in declare index rule but no use.
How to refer the when rule from source context class--is there any way ?
Thanks In Advance
The rule is designed to use the Applies To class of the index for the When rule.
https://pdn.pega.com/sites/pdn.pega.com/files/help_v731/procomhelpmain.htm#rule-/rule-declare-/rule-declare-index/indexes.htm
When
Optional. Enter the second key part of a when condition rule to further qualify which indexes are created by this rule, or an expression resulting in a Boolean value.The system uses the Applies To key part of this Declare Index rule as the Applies To key part of the when condition.
The system evaluates this rule or expression each time an instance of the Applies To class is saved by any requestor. Both outcomes — true and false — may create or remove indexes:
•If the condition or expression is false, no Index- instances (from that Applies To instance) must be present. None are added. Any existing Index- instances are deleted.
•If the condition or expression evaluates to true, Index- instances appropriate to this Declare Index rule are added. Previously created Index- instances may be deleted.