Code Monkey home page Code Monkey logo

Comments (1)

glime-ai avatar glime-ai commented on June 27, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.