Hi everybody,
I use embedded forms, Camunda 7.17.
Is there any way to show an error form with a custom error message when for example data loading has gone wrong?
My process calls an external application for user data. I do this in an execution listener in the start event of my process.
If the data that I get from the external application is not available or incomplete I want to show a custom eerror message oder error page in the tasklist.
How can I implement this?
Thanks a lot,
Niocle
hassang
January 18, 2023, 11:11am
2
Hi @NickiMueller
The below post might be of help to you
Hi @MarioH ,
One way to override error message returned on form submission failures could be as follow.
Where you can construct the errMsg based on the returned error res[0] (In below snip the same returned error is displayed)
camForm.on('submit-failed', function (evt, res) {
var errMsg;
errMsg = res[0];
$timeout(function() {
Notifications.clearAll();
Notifications.addError({
status: 'Error',
message: errMsg,
scope: $scope
})
});
});