Connection Request Modal Popup Shows Wrong Workflow Status for Triggered Workflows #5658
Closed
2 tasks done
Labels
Fixed in v16.4
Status: Confirmed
It's clear what the subject of the issue is about, and what the resolution should be.
Type: Bug
Confirmed bugs or reports that are very likely to be bugs.
Description
On the modal pop up window for connection requests from the connections board and list view, when you expand the Workflows panel, the status displayed for workflows that have been triggered may not always contain the right status. Even when the workflow has completed, sometimes it will display "Running" as the status of the workflow.
Actual Behavior
Actual BehaviorIf the workflow action sets the status of the workflow to anything other than "Completed" when the workflow completes, the status displayed on the modal popup window for that workflow will be "Running", even if the workflow is actually complete.
This is what is displayed on the modal popup window.
The workflow Detail page shows that this workflow is actually complete.
The line of code causing the issue:
The fix:
This would allow the status to be based on whether the workflow has actually completed or not and would show any custom status messages Rock users have used in their workflows.
Expected Behavior
I would expect that the code would check for a completed date/time and if that is populated, it would show the actual status that was saved on the workflow.
If the completed date/time is not populated, then "Running" is an acceptable status to show, but even then, if the person who created the workflow writes statuses as the workflow progresses, it would be more helpful to display what that status is, rather than just "Running".
Steps to Reproduce
Create a connection type.
Create a connection opportunity of that type.
Create a workflow that can be triggered (manually is fine) from the connection opportunity or type.
In the workflow, make sure there is an activity with an action that completes the workflow but sets the status to something other than "Completed". We needed 3 different statuses 1) Completed - Internal 2) Completed - External and 3) Completed - No Source.
Trigger the workflow to run.
View the connection request on which the workflow ran. Expand the "Workflows" panel.
Even though the workflow is complete, the screen will show that the workflow is "Running".
Issue Confirmation
Rock Version
13, 14, 15, 16 and 17
Client Culture Setting
en-US
The text was updated successfully, but these errors were encountered: