日期:2014-05-19  浏览次数:20896 次

jbpm3流程上传问题
public String addProcess() {

ProcessDefinitionActionForm actionForm = (ProcessDefinitionActionForm) form;

try {
ZipInputStream zipInputStream = new ZipInputStream(actionForm
.getResource().getInputStream());

ProcessDefinition pd = ProcessDefinition
.parseParZipInputStream(zipInputStream);

// 部署流程定义
processDefinitionBiz.deploy(pd);

} catch (FileNotFoundException e) {

e.printStackTrace();

} catch (IOException e) {

e.printStackTrace();
}

return "add";

貌似这代码是struts1中的,用struts2该怎么该!

------解决方案--------------------
ProcessDefinitionActionForm actionForm = (ProcessDefinitionActionForm) form; 这句话 上移 两行