elsa-workflows / elsa-studio

A modular, extensible dashboard application framework
MIT License
173 stars 81 forks source link

Workflow Instance Viewer State Update Issue #140

Open sfmskywalker opened 7 months ago

sfmskywalker commented 7 months ago

The Workflow Instance Viewer's state does not update in real-time as the workflow progresses. This real-time update feature, previously functioning via SignalR, appears to be malfunctioning specifically for the design surface. Notably, the Journal view still updates as expected, indicating that the issue is isolated to the design surface.

Expected Behavior: The design surface of the Workflow Instance Viewer should dynamically update to reflect the current state of the workflow as it progresses, similar to the functionality observed in the Journal view.

Current Behavior:

Steps to Reproduce:

  1. Start a workflow instance that is observable via the Workflow Instance Viewer.
  2. Note the lack of real-time updates on the design surface as the workflow progresses.
  3. Observe that the Journal view does update in real-time, highlighting the discrepancy.
glime-ai[bot] commented 7 months ago

Based on the context provided, it seems that there is a known issue with the Workflow Instance Viewer in Elsa where the design surface is not updating in real-time as the workflow progresses, although the Journal view does update as expected. This suggests that the real-time update feature, which may have been functioning via SignalR, is malfunctioning specifically for the design surface.

To address this issue, it would be advisable to check the following:

  1. Ensure that the SignalR hub is correctly configured and that the client-side SignalR JavaScript is properly connected to the hub.
  2. Verify that there are no errors in the browser console that could indicate a problem with the SignalR connection or other JavaScript issues.
  3. Check the Elsa GitHub issues and discussions to see if this is a known problem that has been reported by other users or acknowledged by the Elsa team.
  4. If this is a new issue, consider reporting it on the Elsa GitHub repository to bring it to the attention of the developers.

Since the Journal view is updating correctly, it is likely that the backend is functioning as expected, and the issue may be isolated to the client-side update mechanism for the design surface.

Unfortunately, the context provided does not include specific details about the version of Elsa being used or any recent changes that might have caused this issue. If this problem started occurring after an update or change to the Elsa setup, it would be helpful to review those changes for potential causes.

If you are experiencing this issue and need further assistance, please provide additional details such as the version of Elsa you are using, any recent changes made to your Elsa setup, and any error messages or logs that could help diagnose the problem.