Question
Create Work condition not working
We have a button in a section that has 2 actions on the Click event:
1. Run an activity to validate some data and set a flag on a property
2. Create Work to start a new work object but with a condition on the property being set in #1.
For some reason it seems like #2 is being fired even though #1 set the property used on the condition to a value that should prevent it.
If I click a second time, then the condition works. It seems like the condition is being evaluated before the first action completes.
Did you experience that and do you have an idea on how to get around this issue?
I tried to move the Create Work into the activity called in #1, but this is causing some other issues do to conflicting pyWorkPage pages...
Hello,
Could you please let us know which version of Pega are you using? Also please let us know why can't we use declare expression to set a flag on a property instead of activity rule.
If we use Declare expression rule, based on the value entered in the form, the flag will be set instantly, through which we can overcome this issue.
Please let me know if this helps.
Thanks,
Gowrishankar.