8000 Question: Is it possible to access the ExpressionContext inside a custom function? · Issue #106 · mparlak/Flee · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Question: Is it possible to access the ExpressionContext inside a custom function? #106
Open
@raphaelcr93

Description

@raphaelcr93

Hello,

I have a very specific requirement where I evaluate an expression inside another expression, and would like to know if it possible to leverage the context of the first one inside the second one.

Basically I have on my case I have an expression like this:

ForEach(" ['Item1','Item2','Item3'] ", "CurrentListValue = 'Item2' " )

ForEach() is a custom function that receive 2 strings, one being a list and another being an expression.
And then it tries to evaluate the new expression for each item in the list.

The problem is that the new expression can contain variables that are passed to the ForEach function in the first place.
And as I need to create a new context, inside the ForEach function, to evaluate the new expression the variables are lost.

Is there any way to do it in the current implementation?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0