Skip to main content
19-Tanzanite
May 31, 2018
Solved

Workflow popup based on variable

  • May 31, 2018
  • 1 reply
  • 2673 views

I have a workflow for a document.  I want to check for a variable and if it reports back "N" to open a popup window telling the user what needs to be done.  Is this possible inside of the workflow under the "Complete" transition?  If it is, does anyone have any code for opening the popup?  Or do I have to write code outside of Windchill and reference it from the transition area?

Best answer by imendiola
The fastest way to do this is to throw a WTException with your message:
throw new wt.util.WTException(“your message”)

Windchill will disallow the task conpletion and it will show your message with an alert dialog

1 reply

imendiola13-AquamarineAnswer
13-Aquamarine
June 1, 2018
The fastest way to do this is to throw a WTException with your message:
throw new wt.util.WTException(“your message”)

Windchill will disallow the task conpletion and it will show your message with an alert dialog