Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

Flow Not at task error on screen when refreshing a work object

SA-47825

Summary



In a screen flow, user has two assignments and an utility to capture, review and commit details.

If a page message is set due to a commit failure, the user is not able to Refresh the page using 'Other Actions'.

It gives an error(Flow Not at task). This issue happens only when 'Save on last step' is ticked in the screen flow start shape.


Error Messages



Flow Not at task


Steps to Reproduce



1. Create a screen flow with two assignments.
2. On the Start shape enable
'Save on last step' option.
3. Set a message on the work page while clicking on the Finish button on last assignment.
4. From other actions menu click on Refresh.
5. Now, click on the assignment link available on the review harness.


Root Cause



A defect in Pegasystems’ code or rules:

Issue is with pyAssignmentsLabel control.
Whenever a refresh is performed at Work Object level it will fetch the data from Database.

In this case, data from Database is correctly populated. But, when we click an action from open assignment it is still relaying on the old new assignpage due to which this error is occurring. pyAssignmentsLabel control uses java script method openAssignment.

In Pega 7.1.9, user is passing a single parameter to this function due to which doClose activity is not getting triggered.

Resolution



Perform the following local-change:

pyAssignmentsLabel control is an available rule and openAssignment method must be changed to pass five parameters instead of single parameter.

Comment out code from line 37 to 46. At line 47 add anchor = "<a onclick=\"openAssignment('" +key+"','','','','true')\">"; to resolve the issue. Refer to the code snippet below:



Published March 30, 2018 - Updated October 8, 2020

Was this useful?

0% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us