public String design() throws Exception {
HttpServletRequest request = ServletActionContext.getRequest();
ServletContext context = ServletActionContext.getServletContext();
String sb = request.getParameter("data");
ForJspDesign fjd = new ForJspDesign();
ArrayTwo two = fjd.fenli(sb);// 分离处理字符
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");// 生成图片