elsa-workflows / elsa-workflows/elsa-studio

[BUG] Input in context not updated when user doesn't leave input and directly clicks run.

Open
#645 0 comments 0 reactions 0 assignees View on GitHub
bug triaged
Dominant language
C#
Stars
301
Forks
181
Avg merge
17h 12m
Merged PRs (30d)
42

Description

## Description
If I enter a value into a input and click on run without leaving the input, the value in the ActivityExecutionContext isn't updated.
The workflow then uses the old value. On the other hand, the instance view shows the updated value.

## Steps to Reproduce
To help us identify the issue more quickly, please follow these guidelines:
1. **Detailed Steps**:
1. Create a workflow
3. Add the Delay activity
4. Set the TimeSpan to "00:00:10"
5. Leave the textbox by clicking somewhere in the canvas
6. Execute the workflow
7. Workflow is suspended for 10 seconds
8. Reopen the workflow
9. Set TimeSpan to "00:00:05", DO NOT LEAVE THE TEXTBOX
10. Directly click on run
11. Workflow is suspended for 10 seconds
12. The instance view shows a configured TimeSpan of 5 seconds

Nuget Versions:
```

```

2. **Reproduction Rate**: every time

3. **Additional Configuration**: I am using the elsa components inside my own blazor project.

## Expected Behavior
The value inside the ActivityExecutionContext is updated immediately.
The instance view reflects the real state of the activity during execution.

## Actual Behavior
The value inside the ActivityExecutionContext is updated when leaving the activity?
The instance view shows a different value then the value that was used during execution.

## Environment
- **Elsa Package Version**: 3.1.3
- **Operating System**: Windows 11
- **Browser and Version**: Firefox 129.0

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.