Question
Evernorth
IN
Last activity: 31 May 2024 3:46 EDT
Finish assignment is not working with when rule in action set
Hi All,
I have a button on section which is firing two events on click
1) Run Data transform - Doing some stuff then setting a property SETFLAG to SUCCESS based on a when condition.
2) Finish Assignment - with a when condition using SETFLAG = SUCCESS
When I click the button first time only Activity runs in Tracer. Even WHEN condition is set to TRUE
Second time when I click the button, the event is taking all the actions (Run DT, Finish Assignment)
I have referred a similar article for this which is now closed.
Finish assignment not working when used with WHEN rule | Support Center (pega.com)
I have tried everything which was mentioned in this article, but nothing worked.
any help would be appriciated.
Kind Regards,
Pratik.
-
Reply
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution
Updated: 31 May 2024 3:46 EDT
Pegasystems Inc.
IN
@PratikA17159775 - Can you try the changes suggested in the below article . The missing action is set value.
https://support.pega.com/question/launching-local-action-when-condition-not-working
Thank you.
Maantic Inc
IN
When rules on actions sets work differently. The conditions will trigger based on the property values present on screen load, not on update of previous logic. So in your case, the when on finish assignment is considering the value of SETFLAG before the data transform ran. All the whens o click will run based on conditions places when the screen was rendered last time. You have to find a logic so that the screen renders again after SETFLAG is set so that the whens after run on the new condition.
Pegasystems Inc.
IN
@PratikA17159775 - Add a hidden control and add the flag property on the section where this button is present. This setting will update the UI side and server side same data when the flag is changed and when condition works as expected.
Thank you.
Updated: 29 May 2024 13:18 EDT
Evernorth
IN
Hi @Priyanka Boga ,
Thanks for your reply.
I have tried this, but it did not work.
Below are the steps that I followed.
Hi @Priyanka Boga ,
Thanks for your reply.
I have tried this, but it did not work.
Below are the steps that I followed.
- Added the required property as hidden text in section
- In Search button added run data transform to set property value to 1
Added refresh this section with disable submit on refresh checkbox checked
- Added Finish assignment with other property as SearchResultsCount=1
Please let me know if I have missed anything.
Thanks,
Pratik.
Pegasystems Inc.
IN
@PratikA17159775 - Can you try calling the data transform within the refresh section action instead of calling standalone data transform. Because the UI is not updated when flag is changing.
Thank you.
Evernorth
IN
@Priyanka Boga I tried this also but it didnt work.
Accepted Solution
Updated: 31 May 2024 3:46 EDT
Pegasystems Inc.
IN
@PratikA17159775 - Can you try the changes suggested in the below article . The missing action is set value.
https://support.pega.com/question/launching-local-action-when-condition-not-working
Thank you.
Evernorth
IN
@Priyanka Boga This change has resolved the issue. Thanks for your help.
Eclatprime Digital Private Limited
IN
Generally Finish assignment won't work I also faced same issue, based on your flow and business requirement use any change stage or resolution stage