Support Article
Assignments work incorrectly on using flow in modal dialog
SA-85218
Summary
Assignment works incorrectly on using a flow in the modal dialog feature post action of a User Interface (UI) element.
Error Messages
Not Applicable
Steps to Reproduce
- Configure two sub processes in a flow
- Add a flow to a User Interface (UI) element in the modal dialog action in the first process
- Close the modal
- Submit the assignment. It is sent to Performed assignments
Root Cause
The flow in the modal dialogue is handled by a different thread. Commits or changes to the flow launched in the modal dialog make the work object inconsistent as the pxFlow of the completed flow and the Assign-Worklist entry of the previously completed assignment are not removed.
Resolution
Perform the following local-change:
- Set .pyTemporaryObject to True before launching the flow in the modal dialog
- Set .pyTemporaryObject to False after launching the flow in the modal dialog
Published December 2, 2021
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.