Skip to main content
10-Marble
June 26, 2018
Question

Modal dialog

  • June 26, 2018
  • 1 reply
  • 2000 views

Hello Community,

 

I'm looking for a possibility to pop up a modal message dialog when working in a workflow like the dialog that is openend on doing this (also like a Java JDialog.show()):

 

    throw new wt.util.WTException(“message”)

 

but when calling the searched method, the program flow shall continue with the next line, like:

 

boolean showInfo;

...

    showInfo = true;

...

if (showInfo)

{

  notifyUser("info message");

  // go on with code

}

 

...

 

1 reply

16-Pearl
August 9, 2018

What do you mean ? I think we can use  "throw new wt.util.WTException(“message”) " to let workflow task page show a pop up window when completing task. So it doesn't work in your system ?

hbock10-MarbleAuthor
10-Marble
August 9, 2018

Thanks for your answer!

The exception works, but then the program flow will be "back to task".

What I wanted is a possibility to show a message that is not handled as an exception and does not end the program flow.

 

For example have a message within the "Complete" transition of the task:

 

// some code...

if (needMessage1) showMessage("message1");

// more code...

if (needMessage2) showMessage("message2");

// still in Complete transition...

task = "completed";

 

As fas as I learned this might not be possible as the message caused by the exception is a "server exception".