Bugfix/FOUR-6507: Interstitial keeps loading and the summary is not displayed when having Send Email task as the final task #1242
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Issue & Reproduction Steps
Create a process with 2 tasks with the option Load Next Assigned task ... checked, and:
For Task 1 set assignment rules to User A
For Task 2 set assignment rules to User B
Run a request
Complete the first task.
Process get stuck in interstitial screen.
Explanation:
When complete the first task and then tries to loadNextAssignedTask for User A, the list of tasks for user A is empty (no pending tasks for user A) so is not redirecting to task list (process is not completed yet because there are another task pending for User B) and process get stuck in interstitial screen.
Expected behavior:
When process still active (maybe because another user have pending tasks and process is not completed), with Load Next Assigned task option active, after complete Task 1, the process should redirect to task list.
Actual behavior:
After complete the first task process get stuck in interstitial screen.
Solution
Working video
Screen.Recording.2022-08-02.at.12.50.54.mov
How to Test
Test the steps above
Related Tickets & Packages
Code Review Checklist