Question
Infosys
IN
Last activity: 29 Apr 2016 15:34 EDT
Declare Index Working
I created a declare index rule and given a page as a source page context. A table was then created and mapped to the index class.
Now when I query the table I do not see any values in the table for PRs which were already created prior to creation of the declare index rule.
Any thoughts on how I can get the values for the older objects also in the declare index table.
We are using prpc v 6.3. sp1
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Pegasystems
US
A declare-index rule says that when work page property A is written, an index entry should be created.
For your older work pages, since property A was written before the declare-index rule existed, no index entry is created.
One way you could fill in the missing entries is to create an activity that opens the old work objects (with locking), does a property-set on property A, and then does an obj-save (with "write now" and "release lock"). /Eric
Pegasystems Inc.
US
Hi Gaurav,
You could also use the prpcUtils tool to perform a reindex. See the "Reindexing with the expose option of the prpcUtils command line facility" section in the Help article below.
https://community.pega.com/sites/default/files/help_v63sp1/Default.htm
Carissa
Infosys
IN
Thanks Carissa and Eric for the responses.
Eric, w.r.t your approach one thing I noticed that the declare index is working only for newly created cases. For cases which are being updated, the declare index does not execute.
Hence, even when I open, set property and commit the work object, the changes to the properties are not reflected as index in the index table.
Pegasystems
US
What version of Pega are you on ?
Please post snapshots both of your declare-index rule plus the property-sets that are supposed to generate index entries but aren't.
/Eric
Infosys
IN
Hi Eric,
I am using v6.3sp1. PFA the screenshots
Thanks,
Gaurav
Infosys
IN
Pegasystems
US
Sorry, the declare-index rule image isn't very clear or large. /Eric
Infosys
IN
Pegasystems
US
Thanks for the larger image. Your declare-index rule shows parentheses on the source page context, but your property-set doesn't show any. I would think they should match up better. If it's just an embedded page, then no parentheses anywhere, but if it's an embedded page list, then your property-set would want parentheses to indicate which element of the list is being modified. /Eric
Tech Mahindra
IN
Source page context CMTypeDtls()
source page context class Please Specify classname of the property CMTypeDtls() belongs to.
Index class to write Index-dataFile.
Try This and let Know.