Skip to content

FOUR-30113: Interstitial screen keeps loading with scripts between form tasks with self service and group assignment#1906

Open
eiresendez wants to merge 3 commits intodevelopfrom
defect/FOUR-30113
Open

FOUR-30113: Interstitial screen keeps loading with scripts between form tasks with self service and group assignment#1906
eiresendez wants to merge 3 commits intodevelopfrom
defect/FOUR-30113

Conversation

@eiresendez
Copy link
Copy Markdown
Contributor

@eiresendez eiresendez commented Mar 27, 2026

Issue & Reproduction Steps

Expected behavior:
When the interstitial cannot find a next active task for the current user, but there is still an active task in the request for another user/group, it should stop waiting and take the user back to the request instead of staying in the interstitial forever.

Actual behavior:
With a flow like Start Event -> FT-A (self service / Requesters) -> Script Task -> FT-B, the start-event interstitial keeps showing "We're getting the next task for you..." forever for admin, even though the request already has an active self-service task that exists in the background and is not claimable by the current user.

Solution

  • Add a second active-task lookup in the interstitial flow when the user-filtered lookup returns no tasks.
  • If another active task exists in the same request for a different user/group, redirect to /requests/{requestId} instead of waiting forever.
  • Keep the existing behavior when a task is available for the current user, and keep waiting when no active task exists yet.
  • Add e2e coverage for the new fallback and for the legitimate wait case.
  • Add regression coverage showing that claimable self-service tasks still resolve through the existing user-filtered lookup and redirectToTask + userCanClaim paths.

Scope note:
This PR is intentionally scoped to the reproduced interstitial fallback issue above. It does not attempt to infer claimability from the second unfiltered lookup. If FOUR-30113 needs that broader behavior, it should be handled in a follow-up with explicit backend/API support.

How to Test

Test the steps above

Manual validation used for this proposed fix:

  1. Use a process like Start Event -> FT-A -> Script Task -> FT-B.
  2. Configure FT-A as self-service for a group the current user does not belong to.
  3. Start a new case as that current user.
  4. Confirm the app redirects to the request instead of staying forever in the interstitial.
  5. Confirm the request shows the active self-service task in the task list.

Related Tickets & Packages

Code Review Checklist

  • I have pulled this code locally and tested it on my instance, along with any associated packages.
  • This code adheres to ProcessMaker Coding Guidelines.
  • This code includes a unit test or an E2E test that tests its functionality, or is covered by an existing test.
  • This solution fixes the bug reported in the original ticket.
  • This solution does not alter the expected output of a component in a way that would break existing Processes.
  • This solution does not implement any breaking changes that would invalidate documentation or cause existing Processes to fail.
  • This solution has been tested with enterprise packages that rely on its functionality and does not introduce bugs in those packages.
  • This code does not duplicate functionality that already exists in the framework or in ProcessMaker.
  • This ticket conforms to the PRD associated with this part of ProcessMaker.

ci:deploy

@eiresendez eiresendez changed the title FOUR-30113 proposed fix for interstitial fallback FOUR-30113: Interstitial screen keeps loading with scripts between form tasks with self service and group assignment Mar 27, 2026
@cypress
Copy link
Copy Markdown

cypress bot commented Mar 27, 2026

screen-builder    Run #2224

Run Properties:  status check passed Passed #2224  •  git commit 45fd7be5e1: FOUR-30113: Interstitial screen keeps loading with scripts between form tasks wi...
Project screen-builder
Branch Review defect/FOUR-30113
Run status status check passed Passed #2224
Run duration 09m 44s
Commit git commit 45fd7be5e1: FOUR-30113: Interstitial screen keeps loading with scripts between form tasks wi...
Committer Eleazar Resendez
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 19
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 393
View all changes introduced in this branch ↗︎

@eiresendez eiresendez marked this pull request as draft March 27, 2026 19:54
@processmaker-sonarqube
Copy link
Copy Markdown

@Kookster310
Copy link
Copy Markdown

QA server K8S was successfully deployed https://ci-40377ccf4c.engk8s.processmaker.net

@eiresendez eiresendez marked this pull request as ready for review March 27, 2026 22:36
@sanjacornelius sanjacornelius requested a review from gproly March 27, 2026 22:50
@eiresendez
Copy link
Copy Markdown
Contributor Author

solution.mov

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants