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

I can fail an evaluation #888

Open
saig0 opened this issue Aug 21, 2024 · 0 comments
Open

I can fail an evaluation #888

saig0 opened this issue Aug 21, 2024 · 0 comments

Comments

@saig0
Copy link
Member

saig0 commented Aug 21, 2024

Is your feature request related to a problem? Please describe.
In the context of BPMN, I want to write a FEEL expression that contains some form of validation logic. Similar to throwing a BPMN error in a connector's expression: example.

If the validation fails then I want to fail the expression evaluation and create an incident in BPMN. Currently, I could use the assert() function. However, the function feels cumbersome and could lead to nested expressions.

if x < 0
then error("should be positive")
else x + y

Describe the solution you'd like
Add a new function that fails the evaluation.

// function signature
error(failureMessage: string): Failure

// example
error("should be positive")

Related issues

  • Camunda Autormation Platform 7:
  • Zeebe broker:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant