当前页面: 开发资料首页 → J2EE 专题 → jBPM 载入定义的流程的方法
摘要:
ProcessDefinition processDefinition = ProcessDefinition
.parseXmlString("" + " ");" "
+ " <transition to='s' />" + "
+ "" + " <transition to='end' />" " + "
+ ""
+ "
File zipFile = new File("./Flows/MyTest_1.zip");
FileInputStream fIn = new FileInputStream(zipFile);
ZipInputStream zipIn = new ZipInputStream(fIn);
ProcessDefinition processDefinition = ProcessDefinition
.parseParZipInputStream(zipIn);