cancel
Showing results for 
Search instead for 
Did you mean: 

My custom message error or validation

chicco0386
Champ on-the-rise
Champ on-the-rise
Hi,
I ask me if there is a method for display custom error message into a my workflow task…

For example I want to display an error if the user don't add a new document to the workflow, so the custom messgge will be display into the standard view error message like this:
[img]http://img223.imageshack.us/img223/144/errorm.png[/img]

Can you help me?
I hope that this request can solved with javascript into the jPDL-jBPM workflow code.

THANKS
4 REPLIES 4

stevegreenbaum
Champ in-the-making
Champ in-the-making
I am wondering the same thing, but not about an attachment, but just concerning any field in the task UI.  Based on what I've seen so far, it is not possible to create a message that appears in the same place as an Alfresco generated message using only javascript.  One idea to investigate, since I don't know if this is possible, is to create a custom constraint on bpm_package and validate that it contains content and report the error that way.

decla
Champ in-the-making
Champ in-the-making
Hello,
Is it possible to force an error or info message (like shown in screenshot) out of a custom dialog bean using java, without throwing an exception?

fooblahblah
Champ in-the-making
Champ in-the-making
Just saw this thread looking for an answer to the same question.

org.alfresco.web.ui.common.Utils.addErrorMessage seems to add errors to the form.  I haven't figured out how to squelch the default workflow transition error message, but it's a start!

-Jeff
Zia Consulting, Inc

stevegreenbaum
Champ in-the-making
Champ in-the-making
I was under the impression that if you write a custom constraint in java, that you can display the generated error message to the UI.