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

Conditions should support more than JUEL expressions #3884

Open
rasmusfaber opened this issue May 7, 2024 · 0 comments · May be fixed by #3889
Open

Conditions should support more than JUEL expressions #3884

rasmusfaber opened this issue May 7, 2024 · 0 comments · May be fixed by #3889

Comments

@rasmusfaber
Copy link

Is your feature request related to a problem? Please describe.

Conditions (and other places with FormalExpressions) currenly ignores the language attribute and always assumes that the content is JUEL. Some conditions are hard or impossible to write in JUEL (i.e. "is the country of one of the addresses in the US?"), so it would be great to be able to use i.e. Groovy instead.

Describe the solution you'd like

SequenceFlows (and BoundaryEvents etc.) should parse the language attribute of the bpmn:condition. ExpressionManager.createExpression() should use the language to load the ScriptEngine using javax.script.ScriptEngineManager, probably only accepting languages from a configurable whitelist.

It looks like a fairly straightforward task, and I will be happy to supply a PR, if I can get an indication that it is likely to be merged.

rasmusfaber added a commit to rasmusfaber/flowable-engine that referenced this issue May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant