Question
Cotiviti
IN
Last activity: 17 Feb 2021 10:12 EST
Manually do Re-Indexing of Work class after case creation from an Activity
Hi Pega Experts,
I want to do re-indexing of the work class after case creation. Right now its taking maximum 20-25 seconds to appear my recently created case in search results. The requirement is to re-index the case class so that my recent case should appear within 10 seconds in the search results.
Solutions I tried
1) Declare Trigger
I tried to call the activity which gets called from Re-Index button on Pega's Search landing page. But it did not work because from the tracer I came to know that Pega stores the indexing part in table after declare trigger.
2) Calling Activity from HTML using JS
I called the same activity mentioned in 1 from HTML Section and added that Section in Review harness. Activity is appearing in tracer if I refresh the harness but still its not helping.
Please give your Ideas to complete the requirement.
Thanks!
***Edited by Moderator: Pallavi to update platform capability tags***
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution
Pegasystems Inc.
IN
I found this in 7.4 help, personally I have not tested this but should work
But Nick has asked for specific business requirement, maybe you can provide those information .He might have a better solution to this problem of yours.
Pegasystems Inc.
IN
Can you please check time when FTSIncrementalIndexer agent runs?
This agent is responsible to index newly created WorkObject
Cotiviti
IN
I changed it to 5 seconds. But didn't help.
Pegasystems Inc.
IN
Hi
You would have to check this rule
But changing this would mean you are running the agent with higher frequency. Would be helpful to consider the impact as well.
Cotiviti
IN
I changed it to 5 seconds. But didn't help.
Pegasystems Inc.
IN
Ok, I tried the same, changed it to 5 SEC in Pega 7.3.1, but in SMA I can see 30 SEC. That's news to me.
Give us sometime I would try to get more info on this.
What is the value you seeing in SMA? and What's your Pega Version ?
Cotiviti
IN
For me also it is showing 30 sec. My version is 7.4.
Accepted Solution
Pegasystems Inc.
IN
I found this in 7.4 help, personally I have not tested this but should work
But Nick has asked for specific business requirement, maybe you can provide those information .He might have a better solution to this problem of yours.
Pegasystems Inc.
US
Out of curiosity, what is the business requirement that is leading you to want to be able to search for a work object 10 seconds after it's created? There may be another solution that is more straight forward.
Cotiviti
IN
Hi Nick,
We are performing some automations on Pega. It involves case creation, opening the case through search control and validate the fields present on the screen. These action are in a sequence. As sometimes search results take time to load, the sequence fails. So, we thought of putting wait in the search step and we don't want to put much wait time.
Hence, we need search results to be loaded within 10 seconds.
Pegasystems Inc.
IN
Hi Ajay,
Did you add below in your prconfig.xml? You would need a restart post this.
<env name="agent/minimumwakeup" value="5" />
Maybe you can try this while Nick comes up with his plan.
Thank you
Cotiviti
IN
Hi Shekhar,
Yes, the above solution works perfectly. But yes, this solution has impacted the performance a little.
Thank you for you help.
Pegasystems Inc.
IN
Yes, that's what I thought. Since the search agent running with such frequency will not be a desired behaviour .
We can check for Nick's input.
Pegasystems Inc.
US
Rather than searching, can you just open the work object if the ID is known to the automation process? Or if the ID is not known, perhaps the work object can be placed in a worklist/workbasket and the automation can work through what is in that?
Cotiviti
IN
Thanks for inputs Nick!
We already applied that alternative. But the most easiest and preferred way to open the case is, use the search control. The alternative solution will require more time to build the automation steps. That is why we wanted the solution around search results.
Pegasystems Inc.
US
As long as you have a solution that works for you, all is good. It just seemed like performing a search was introducing complexity and delay where it wasn't required. Searching requires that you send a query and wait for results, whereas if if the ID was passed or if the work was placed in a queue, there would be no delay.