elsa-workflows / elsa-workflows/elsa-studio

Elsa 3 - Variable name validation

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

Description

We encountered the following situation:
- We defined a variable called CorrelationId
- Then we were setting the correlationId of the workflow using the dedicated activity.
- Then we wanted to retrieve the value of the workflow correlation id (not the variable). You do that by using the following function getCorrelationId(). To retrieve the value of variable CorrelationId you have to call the following method getCorrelationId(), which is the same method used for retrieving the actual correlation id of the workflow. There is a conflict of names.

I think a possible solution is to have validation for the variable names. The validation will make sure that you don't set any forbidden name (CorrelationId, maybe others).

It would be nice to have this kind of validation on either Stencil or Blazor implementation.

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.