From my Expression if certain condition fail then I need to throw Error End Event and that will be caught in a Error Start event to log the error and proceed further. Error Start event is common across the project. Now I want to pass a message with Error End Event so, the error can be logged for different error. So, how Error End Event can pass ‘Message Variable’ while throwing the error.
Can you provide bit more details on this? When I put a string in message for Error End Event then the same message is shown in Error Start Event but I want it to be dynamic for different error end event.
if I am not completely mistaken, the message can be an expression as well. So you could create a variable that holds the error message.
For better visibility, you could also define multiple error end events that are caught in one error start event. Your process will then not hide the information which error occured.
In that case we need to set the variable in some script task and then can pass it as an ‘expression’ right? But then can you define it directly in error end event?
Hi @jonathan.lukas - Can we make error code also dynamic? I have requirement to pass different error codes. Can we set it to variable and use it as expression?
Can you please share an example. Because when I try to set “Code” under Error end event as variable in modeler it doesn’t set the value rather it takes that variable as value only.