/*
 * Created on 2004-5-4
 *
 * To change the template for this generated file go to
 * Window - Preferences - Java - Code Generation - Code and Comments
 */
package org.huihoo.workflow.samples;

import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;

import org.huihoo.workflow.WorkflowException;
import org.huihoo.workflow.coreImpl.xpdl.parser.XPDLParserFactoryImpl;
import org.huihoo.workflow.xpdl.WorkflowPackage;
import org.huihoo.workflow.xpdl.parser.XPDLParserFactory;

public class XPDLParserIOTest
{
  public static void main(String args[]) 
  throws WorkflowException, IOException
  {
		File xpIn = new File("D:\\project\\huihoo\\huihoo-samples\\examples-willow\\WEB-INF\\xpdl\\willow-xor-join.xpdl");

		System.err.println("XPDL IN FILE : " + xpIn.getAbsolutePath());

		FileInputStream fis = new FileInputStream(xpIn);
		XPDLParserFactory xpdlParserFactory = new XPDLParserFactoryImpl();
		WorkflowPackage workflowPackage = xpdlParserFactory.newXPDLParser().parse(fis);
		System.err.println("XPDLParser : "+workflowPackage);
  }
}
