An implemented error workflow can be tested with a real error by running the following CRON job.
A JavaScript file has to be created on the Windchill server with the following content:
Nashorn:
var WTException = Java.type("wt.util.WTException");
throw new WTException("BOOM");
MVEL:
import wt.util.WTException;
throw new WTException("BOOM");
Now, a JavaScript CRON job has to be configured.
-
Template JAVASCRIPT has to be chosen
-
Expression has to be set to '* * * * *'
-
The number of runs has to be limited to 1
-
Error workflow has to be set for the workflow template to be tested.
-
Path to the Javascript file has to be set as a parameter.
After creating the CRON job, the administrators receive the following e-mail: