Question
Eviden
NL
Last activity: 23 Jul 2021 4:54 EDT
Pega Issue Report -- Concerns "EditCaseDetailsInCasePreviewPostActivity" (Rs:Theme-Cosmos:01-01-01)
Context
Activity: "EditCaseDetailsInCasePreviewPostActivity"
Ruleset: "Theme-Cosmos"
Version: "01-01-01"
This rule has been introduced by addressing "BUG-241386 - clear out pyFields if it exists".
Issue
After using the "Edit details" option, we submit out form.
A declare trigger has been configured to "Committed Save".
We found that our declare trigger, was triggered twice.
Solution
Rule "EditCaseDetailsInCasePreviewPostActivity" introduces
Step 1: Property-Remove (with when condition)
Step 2: Obj-Save on step page "Primary"
Step 3: Commit.
Steps 2 and 3 are ALWAYS executed.
This save/commit triggers the configurated declare trigger AGAIN, submitting are changed to the Edit Details form.
Thus, we have added an empty step -- Step 4, Label: EXIT.
If when condition in Step 1 is false, it jumpt to the last step with label EXIT.
Thus, solving the unnecessary save/commit in steps 3 and 4.
@Pega Theme Cosmos Team
Please implement solution.