elsa-workflows / elsa-workflows/elsa-core

Variable is persisted in activty after deleting it from workflow context

Open
#6,742 0 comments 0 reactions 0 assignees View on GitHub
triaged
Dominant language
C#
Stars
7.9k
Forks
1.5k
Avg merge
15h 22m
Merged PRs (30d)
114

Description

## Steps to Reproduce
see workflow

![Image](https://github.com/user-attachments/assets/c3152dcd-3433-413c-96a0-40414404ef54)

1 create workflow ^ with 2 variables (ie var1 and var2) (see attachment)

![Image](https://github.com/user-attachments/assets/f266f455-7bd6-43b5-8387-3d4ad1b7294c)

2) set 'set variable' activity output to one of those activities (var1 or var2)
3) save publish and run the workflow - see that it works

4) delete the variable from the workflow context, see that in the 'set variable' output/ the variable is no longer selected.

![Image](https://github.com/user-attachments/assets/270c506d-d1a3-4c0b-9a5c-75573a6ba630)

5) save and publish+ run the workflow
6) expect an error when running workflow because 'set variable' no longer has a var( undefined)
8) see that activity still sets value to the deleted variable

![Image](https://github.com/user-attachments/assets/8b7af875-31e6-4707-a055-ad7415ca1b3e)

3. **Attachments**:

[act-branching-3-join.txt](https://github.com/user-attachments/files/20753794/act-branching-3-join.txt)

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

## Expected Behavior
Throw error

## Actual Behavior
values are being written to vars that are no longer existing

## Environment
Elsa 3.5 and 3.2.

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.