Comments (1)
Based on the context provided, it seems that you are trying to access a workflow variable named text
in a WriteLine
activity using two different methods: a JavaScript expression and a C# lambda expression. The JavaScript expression is working fine, but the C# lambda expression is not retrieving the variable as expected.
To troubleshoot this issue, please ensure that the variable text
is properly defined and registered in the workflow's variables collection. If the variable is not defined, the context.GetVariable<string>("text")
call will not be able to retrieve it.
If the variable is indeed defined and you are still facing issues, it could be related to the scope of the variable or the timing of when the variable is being set versus when it is being accessed. Variables in Elsa workflows have a specific scope, and if the WriteLine
activity is executed before the variable is set, it will not be able to retrieve the value.
Additionally, ensure that the version of Elsa you are using does not have a known issue related to variable access. You can check the Elsa GitHub issues page for any reported bugs that match your scenario.
If you continue to experience issues, consider reaching out to the Elsa community or support channels with a detailed description of your workflow and the steps you have taken to define and access the variable.
This comment was generated by Glime.
from elsa-core.
Related Issues (20)
- [BUG] Issues with POST and GET Execute APIs HOT 1
- [ENH] MongoDB storage for alterations HOT 4
- [FEAT] Postgresql adapter for Hangfire
- [ENH] Optimize Workflow Import by Storing Raw JSON to Avoid Unnecessary Serialization
- [ENH] Enable and Disable MassTransit Consumers HOT 1
- Third-Party Integration Activities HOT 1
- [CHORE] Configure CI/CD with Renovate Bot HOT 1
- Make `Newtonsoft.Json` private? HOT 1
- What is the best place to implement clean-up logic for ActivityExecutionContext HOT 1
- ELSA 3.1.3 Getting Error when i call get /workflow-definitions endpoint HOT 2
- [BUG] MassTransit DisableConsumers Fails to Properly Disable Consumers and Disables Necessary Consumers HOT 1
- [CHORE] Elsa 3.0 设计器中 Fork的属性Branches如何设置? HOT 1
- [ENH] Enable External Interaction with Publish Event and Event Activities HOT 1
- [BUG] FailedToConnect activity in SendHttpRequest is not executed HOT 3
- [BUG] Race condition in Bookmark Management HOT 3
- [BUG] Mixed Content block after deployed to kubernetes HOT 2
- [BUG] Duplicate executions when using the default scheduling provider in single-node environment HOT 1
- [ENH] Add File Download Capability to SendHttpRequest Activity HOT 1
- [BUG]An unhandled error has occurred. Reload HOT 2
- [BUG] ELSA 3.2 rc1 with latest studio. Null reference exception when editing JavaScript expressions HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from elsa-core.