cancel
Showing results for 
Search instead for 
Did you mean: 

How can i send face message to user interface from operation created on IDE?

00000001_
Confirmed Champ
Confirmed Champ

Hello!

I have create an operation on IDE and in some case it should send to user interface warning, message as in case of validation forms, i didn't find any way to do that?

Thanks!

1 REPLY 1

Steven_Huwig1
Star Contributor
Star Contributor

I had to do this recently as well -- what I did was to use (in Nuxeo Studio) the "User Interface -> Add Message" instruction in the automation chain, checking the response of my custom operation in the expression language to set the severity/message text. E.g.

message:

Packaging request @{Context.input != "" ? "succeeded" : "failed"}. 

severity:

@{Context.input != "" ? "INFO" : "ERROR"}

My operation returns a nonempty string on success, but the above worked for simple booleans too with the correct expression.

If you're not using Nuxeo Studio there's surely a way to do this involving editing XML.

Getting started

Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.