Question
Pegasystems Inc.
JP
Last activity: 6 Nov 2019 23:27 EST
Call ReloadSection several times on activity
Hi,
I need to call ReloadSection by activity many times.
For example I tried to call ReloadSection three times by one activity.
1. Wait 5 seconds
2. Updated property
3. Call ReloadSection
I looped from step 1 to step 3 for 3 times, but it was only refreshed on the last timing of calling Reload Section.
Is there any way to call ReloadSection several times on activity?
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Pegasystems Inc.
FR
Hello,
I never seen such configuration calling ReloadSection within the same activity multiple times. Can you explain why you think you should do this exactly?
Pegasystems Inc.
JP
The customer's proxy server returns error if there isn't any actin in defined time.(For example 120 seconds.)
But if we refresh every 30 seconds we can avoid the error.
In addition we call API of ex system and it needs 3 to 5 minutes to return the response.
While calling the API , we want refresh the section automatically.
Pegasystems Inc.
US
I am not sure if there is any other way to achieve your requirement.
On paper the approach you have taken should work. Did you trace the activity with the steps to check if you missed anything ?
Pegasystems Inc.
JP
Hi , Krithiga.
Sorry late for reply.
I thought that only the last loop of calling ReloadSection worked correctly before, but it was wrong.
I set refresh action of the button and call the activity, so the section was refreshed only once.
It seems that I couldn't call ReloadSection correctly by activity.
I made simple PoC to call ReloadSection and it seems that not working.
I put my setting as attached file, could you check the file and advise me if there are any wrong?
BPM Company
NL
Coud you try use Branch method instead of Call?
Pegasystems Inc.
JP
Hi
I tried use Branch instead of Call , but nothing has changed.
The section was not refreshed by activity.
BPM Company
NL
Plus, you could assing to the button an action "Reload Section" and trace it to see how Pega does it
Pegasystems Inc.
JP
I assigned both "Run activity" and "Reload Section" to button action and traced them.
It seems that when use "Reload Section" it has AJAXTrackID on Parameter page, on the other hand "Run Activity" doesn't.
Could you check the attached "Diff_Run_Action_BW_Refresh_THIS_Section.xlsx" file?
BPM Company
NL
I reckon the problem is in the StreamClass parameter. You have provided "Rule-HTML-Section" but you must use the section's class, where it belongs to (Work class or Data class fo your application)
Pegasystems Inc.
JP
I tried to set section's class to StreamClass parameter instead of "Rule-HTML-Section" , but it showed "Missing stream key property pyID" error on step 10 of ReloadSection.
So I'm looking for work around for this requirement.
BPM Company
NL
weird.. does your section contain pyID property?
Pegasystems Inc.
JP
Hi vaspoz
Customer withdraw the requirement , so I stopped investigation.
Thank you for your cooperation.