-
Notifications
You must be signed in to change notification settings - Fork 487
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
Script task FEEL expression
not recognized as typed available FEEL context
#4614
Comments
CC @mschoe (we discussed and detected this issue). |
@marstamm to have a time-boxed look into this, either fix or give implementation hints to be picked up by the team |
Context This turns out to be a deeper problem than anticipated. While it is quite simple to parse result from a script task, I uncovered some deeper problems with our Variable resolving. The "simple but wrong" solution can be found on this branch https://github.com/bpmn-io/variable-resolver/tree/parse-zeebe-script. The Edge cases are:
Problems Assume the following Script task:
The smallest scale for scopes we currently support is Task level. In this case, we would only have 2 Variable assignments. For the local variable, it is unclear if it should evaluate the input mapping or the feel script, an which result to use in the output mapping. Additionally, I found that our current Variable Resolver does not properly scope the result variables. In https://github.com/bpmn-io/extract-process-variables/blob/main/src/zeebe/util/ProcessVariablesUtil.js#L54-L58 , the scope is defined as the parent which has an input mapping with the same name. |
Here’s my understanding of the two main issues:
|
@abdul99ahad is the solution already integrated into the modeler? If not, please move this issue to fixed upstream, and work towards the integration of the fixed upstream library. |
Describe the bug
If I use a
bpmn:ScriptTask
with a FEEL expression the actual expression is not added to editor intelligence, only the fact that an output variable exists:Steps to reproduce
FEEL expression
resultVariable
resultVariable
elsewhere on the diagramExpected behavior
Value (structure) is parsed from the FEEL expression on a best effort basis, and provided, as it is the case for other expressions:
Environment
Additional context
No response
The text was updated successfully, but these errors were encountered: