* @see org.fireflow.engine.definition.IDefinitionService#setDefinitionFiles(java.util.List)
*/
public void setDefinitionFiles(List<String> workflowProcessFileNames)
throws IOException, FPDLParserException,EngineException {
if (workflowProcessFileNames != null) {
Dom4JFPDLParser parser = new Dom4JFPDLParser();
for (int i = 0; i < workflowProcessFileNames.size(); i++) {
InputStream inStream = this.getClass().getResourceAsStream(
workflowProcessFileNames.get(i).trim());
if (inStream == null) {
throw new IOException("没有找到名称为" + workflowProcessFileNames.get(i) + "的流程定义文件");
}
WorkflowProcess workflowProcess = parser.parse(inStream);
WorkflowDefinition workflowDef = new WorkflowDefinition();
workflowDef.setVersion(new Integer(1));
workflowDef.setWorkflowProcess(workflowProcess);