cancel
Showing results for 
Search instead for 
Did you mean: 

showing error-messages in explorer

pajo
Champ in-the-making
Champ in-the-making
If a mandatory input field in a user task has been left blank when a user tries to complete the task a little red symbol appears on the complete-button, and when mouse is over the button a nice little message is shown to the user. I like this behavior and have the following question:

Let's say that I have a process containing two tasks, one user task and one script-task. After the user task is completed the script task will be executed. Is there any way I can generate anything in my script task that will result in the same kind of red-symbol behavior in the user task? I mean, if an exception is being thrown in my script the red-symbol will appear, but when mouse is over complete-button a giant stack-trace will be shown instead of nice little  message. I want the nice little message…what to do/throw?
2 REPLIES 2

frederikherema1
Star Contributor
Star Contributor
Currently, there is no such thing built in. The stack trace that is visible is the default Vaadin-behaviour, when an action on a control (in this case, the complete button) throws an exception. This can be altered, when modifying the code that creates that button…

pajo
Champ in-the-making
Champ in-the-making
Thanks for a quick reply buddy!