Hello, can you explain, why errorCode of the throwing error is treated as a String and not as an expression? See screenshot and bpmn file
errorCode.bpmn (5.1 KB)
Hello, can you explain, why errorCode of the throwing error is treated as a String and not as an expression? See screenshot and bpmn file
Hello @Mikhail.Savelov ,
this is because the error code is always related to the process directly.
What are you trying to do by using an expression as error code?
Jonathan
I want to catch random error and re-throw it with the same code, for example
Hello @Mikhail.Savelov ,
for catching any error, you can just leave the error code empty.
Then, you could handle the error inside a service task and rethrow it from there.
The error code can be mapped to a variable when catching. By this, you can rethrow the error from inside the service task.
I hope this helps
Jonathan
thanks for the awesome information.