CreateJbpmXml.geneXmlByDom(two.getState(), two.getPath());// 创建XML
Date date = new Date();
Drawpng.createPng(context.getRealPath("/") + "/jbpm/jbpm"
+ date.getYear() + date.getMonth() + date.getDate()
+ ".jpdl.xml");// 生成图片
ZipUtil z = new ZipUtil();
z.compress(
context.getRealPath("/") + "/jbpm",
context.getRealPath("/") + "/jbpm/jbpm" + date.getYear()
+ date.getMonth() + date.getDate() + ".zip", "", false);// 压缩成zip文件
request.getSession().setAttribute("zip", context.getRealPath("/") + "/jbpm/jbpm"
+ date.getYear() + date.getMonth() + date.getDate() + ".zip");