}
else if (xpdlFileBase.startsWith("file:"))
{
xpdlFileBase = xpdlFileBase.substring(5);
}
WorkflowPackage workflowPackage;
try
{
workflowPackage = xpdlParser.parse(new File(xpdlFileBase));
}
catch (IOException e)
{
throw new WorkflowException(e);
}
//------------------------------------------------------------
// VERY IMPORTANT CODE SECTION BY ZOSATAPO 2004-10-30
//
// TO Initialize WorkflowProcess and WorkflowActivity Listeners
//------------------------------------------------------------
XPDLParserTools.externalFormat(workflowPackage, context.getLoader().getClassLoader());
String threadName = "EventMonitorThread[" + toString() + " - "+workflowPackage.getName()+"]";
EventMonitorThread eventMonitorThread = new EventMonitorThread(threadName);
eventMonitorThread.setDaemon(true);
context.putEventMonitorThread(workflowPackage,eventMonitorThread);
context.addWorkflowPackage(workflowPackage);