elsa-workflows / elsa-workflows/elsa-core

Workflow instance viewer activity badges don't update after resuming workflow for a suspended HttpEndpoint activity

Open
#5,335 1 comment 0 reactions 0 assignees View on GitHub
bug triaged
Dominant language
C#
Stars
7.9k
Forks
1.5k
Avg merge
15h 22m
Merged PRs (30d)
114

Description

## Description
When I run a workflow definition from the designer that contains an HttpEndpoint activity, and that endpoint gets called, the badge icons on the upper right of the activities do not show execution even though the journal does.

## Steps to Reproduce
To help us identify the issue more quickly, please follow these guidelines:

1. **Detailed Steps**: Provide a step-by-step description of what leads to the bug. Be as specific as possible.

- Import the attached JSON
[http-endpoint-test.json](https://github.com/elsa-workflows/elsa-core/files/15194757/http-endpoint-test.json)

- Run the workflow in the designer
- Using Postman, make a PUT request to the HttpEndpoint activity (substituting your run's workflow instance ID):
```https://localhost:57070/api/workflows/httptest?workflowInstanceId=6e60e98c700cd45f```
and the request body containing this JSON:
```{"HelloProperty": "Hi there!"}```
- Note that the HttpEndpoint activity does not show a completed execution, nor do subsequent activities even though the journal shows that they were executed.

3. **Code Snippets**: If the issue involves code (e.g., JavaScript error, server request failure), include the relevant snippets where the issue occurs.

4. **Attachments**:
[http-endpoint-test.json](https://github.com/elsa-workflows/elsa-core/files/15194757/http-endpoint-test.json)

5. **Reproduction Rate**: Indicate how often the bug occurs when following these steps (e.g., "every time", "intermittently: about 50% of the time").

6. **Video/Screenshots**: Sometimes, complex behaviors are better shown than described. If you think a video or screenshots would help clarify the issue, please include them.
image

7. **Additional Configuration**:
- Mention any specific settings, features, or configurations that need to be enabled or present to reproduce the issue.

Providing a comprehensive and clear description will greatly assist in diagnosing the problem quickly and accurately. If you're unable to share some of the requested information publicly, please note that, and we can arrange for secure information transfer.

## Expected Behavior
Describe what you expected to happen.
I expect that each activity executed will show execution counts when they have been executed.

## Actual Behavior
Describe what actually happened. Include screenshots, if applicable.
The HttpEndpoint activity shows suspended and subsequent activities show no execution count badge.
## Screenshots
If possible, add screenshots or screen recordings to help explain the problem.

## Environment
- **Elsa Package Version**: Specify the version. If you've cloned the repo, mention if you are using the latest source code from the main branch.
- **Operating System**: Include your OS version (e.g., Windows 10, macOS Big Sur, Ubuntu 18.04).
- **Browser and Version**: If applicable, include your browser and version (e.g., Chrome 92).

## Log Output
Include any relevant log output or error messages that might help diagnose the issue.

## Troubleshooting Attempts
Describe any steps you have taken to troubleshoot or resolve the issue yourself.

## Additional Context
Add any other context about the problem here. This could include the frequency of the issue (e.g., intermittent, every time), conditions under which the issue appears, etc.

## Related Issues
Link to any related issues here.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.