Discussion

8
Replies
548
Views
cortj Member since 2014 7 posts
PEGA
Posted: 5 years ago
Last activity: 5 years 3 months ago
Closed

Quiz question on Enforcing Data Relationships with Declarative Rules lesson - Property Dependencies

Hi,

This is the quizz question:

Which of the declarative rules do not establish a dependency on specific properties? (Choose All That Apply) 

  • Declare Expressions (False)
  • Constraints (False)
  • Declare OnChange (False)
  • Declare Trigger (True)
  • Declare Index (False)
  • Data Page (True)

I'm having some difficulties trying to understand why a Declare Index rule does necessarily have to establish a dependency with one or more properties.

Please note that by dependency I'm referring to a relationship in PRPC's Declarative Network via Forward and Backward Chaining.

My understanding is that a Declare Index rule is necessary in order to optimize properties for reporting. According to the documentation (https://pdn.pega.com/reporting/how-to-create-a-declare-index-rule-for-an-embedded-property-with-the-property-optimization-tool), a Declare Index rule is created every time a property is optimized for reporting.

I understand that in some cases it might be desirable to automatically create an index based on some condition (e.g. When rule), but in general it seems to me that most of indexes will be established at design time.

Based on this my understanding it that a Declare Index subscription to a property value change should be optional and not mandatory 

So my question is: Is that not the case? Does it always evaluate when the property changes?

I checked on PRPC and found that some properties referenced by Declare Index rules posses no relations in the PRPC's Declarative Network (Property, Advanced, Explore & Declarative Network)

I get the feeling that I'm not really understanding the full meaning and purpose of this Declare Index rules and the documentation does not really help much.

I'd really appreciate if somebody could explain it on detail.

Thanks,

Juan Cortines

Pega Academy
Moderation Team has archived post
Share this page LinkedIn