elsa-workflows / elsa-workflows/elsa-core

error when rendering conditions made with js in designer

Open
#1,120 2 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

![imagen](https://user-images.githubusercontent.com/54601468/121605674-7371ec00-ca12-11eb-9958-83e483412f9c.png)

I created the condition of a switch with a variable that I created in an activity previously, the backend works although when I see the instance of the workflow it does not load the activities normally and I get this error

![imagen](https://user-images.githubusercontent.com/54601468/121605708-7ff64480-ca12-11eb-8735-47e0797370b6.png)

is it possible that some configuration is missing?

My configuration

```sh
services
.AddElsa(elsa => elsa
.UseMongoDbPersistence(options => options.ConnectionString = mongoDbConnectionString)
.AddConsoleActivities()
.AddHttpActivities(elsaSection.GetSection("Http").Bind)
.AddJavaScriptActivities()
.AddEmailActivities(elsaSection.GetSection("Smtp").Bind)
.AddQuartzTemporalActivities()
.AddActivity()
.AddActivity()
.AddActivity()
.AddActivity()
.AddActivity()
.AddActivity()
);
```

Contributor guide

Open the contributing guide

Research direction

The issue names no source files or tests. Reproduce the problem with a switch condition using a variable created by an earlier activity, then inspect the workflow instance designer rendering and the JavaScript activity configuration. Done means the workflow activities load normally without the reported rendering error.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.