elsa-workflows / elsa-workflows/elsa-core

trigger event with workflow input failed,the workflow input value is the value of startworkflow.

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

Description

1:create a new workflow with an input named Input1 in designer.
2:add an WriteLine ativity named WriteLine1 , it's property text is a javascript expression:getInput("Input1")
3:add an Event ativity named event001 to pause the workflow.
4:add another WriteLine ativity named WriteLine2, it's property text is also a javascript expression:getInput("Input1")
5:link WriteLine1 to event001 and link event001 to WriteLine2
6:start this workflow with Input1=100
7:trigger event001 with Input1=102
8:WriteLine1 ouput 100 and WriteLine2 also output 100 but not 102,it's not the expected result

![7fe8b34951363c46b1890d4b2568730](https://github.com/elsa-workflows/elsa-core/assets/166272383/247f2a0d-6ddb-4eb9-b6d8-f10945358ff6)
is the flowing code in EventPublisher.cs line 60-63 cause this bug?
![ec1eff20af8df9131a1129c2d97c346](https://github.com/elsa-workflows/elsa-core/assets/166272383/457d01df-9060-4c69-b569-787a7c11d594)
thanks.

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.