Hi @Anmol_Gupta
You can use an exclusive gateway following the script task. (In the case of simple FEEL expression, there is no need to have a script task. You can define the condition on the outgoing flow itself)
Thanks @hassang for responding. I get there can be alternate options to do it. My expression was bit complex so for a cleaner representation i just posted a sample.
To reframe the question, does feel expression in camunda script supports the ability to throw BPMN exceptions ?
I believe the bpmnError function is specifically designed to work with the error expression of out-of-the-box connectors. In my opinion, its value is limited when used in a script task, as you have complete control over the script’s execution. In contrast, it is more useful with connectors like a REST connector, which handle calls to external services where you have no control over the service’s implementation.
Hate to be that guy to my friend Niall but @hassang is correct - the bpmnError() FEEL function is only available in the Connectors runtime currently (and therefore only available in the error expression field of a Connector).
Can you share a bit more about your particular use case @Anmol_Gupta? I can take this feedback to our product team for consideration.
Thanks @Niall and @hassang for replying. I tested and was not able to use bpmnError in script task.
Hi @nathan.loding as @Webcyberrob mentioned, when it comes to things like things like complex data manipulation and validations its preferable to write the logic in in-built script as its low code and second we don’t have overhead to manage another job worker.
would be helpful if this can be part of product. Also is there any way we can open some jira or something to provide suggestions for features ?