Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

should have the ability to access environment / session variables in compute expressions #115

Open
aeberhart opened this issue Aug 12, 2021 · 1 comment

Comments

@aeberhart
Copy link
Contributor

We currently evaluate computed expressions are follows:

this.value[field] = jsonata(expression).evaluate(this.value);

where the expression (from the schema def) is applied on the object. However, a typical case is to write the current user in a "lastChangedBy" field. This is not possible at the moment.

We could introduce a $context() jsonata function and provide the parent component the ability to provide a context object.

@aeberhart
Copy link
Contributor Author

should also be applied to choice handler jsonata

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant