• 大小: 27KB
    文件类型: .rar
    金币: 2
    下载: 1 次
    发布日期: 2021-06-17
  • 语言: Java
  • 标签: jbpm  工作流  

资源简介

需要加载jbpm的包,数据库驱动,jaxen.jar

资源截图

代码片段和文件信息

/**
 * 
 */
package com.yuyanshan.service;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.jbpm.JbpmConfiguration;
import org.jbpm.JbpmContext;

/**
 * @author sybuild2312
 * 
 */
public class JbpmContextFactory extends HttpServlet {

public JbpmConfiguration jbpmConfiguration = JbpmConfiguration.getInstance();

protected void processRequest(HttpServletRequest request
HttpServletResponse response) throws ServletException IOException{
response.setContentType(“text/html;charset=UTF-8“);

JbpmContext jbpmContext=jbpmConfiguration.getCurrentJbpmContext();
if(jbpmContext==null)
{
jbpmContext=jbpmConfiguration.createJbpmContext();
}
String taskid = request.getParameter(“taskid“);

String showpage = “opmanager/process-img.jsp?taskid=“+taskid;

response.sendRedirect(showpage);

return;
}


/**
 * Handles the HTTP GET method.
 * 
 * @param request
 *            servlet request
 * @param response
 *            servlet response
 * @throws IOException 
 */
@Override
protected void doGet(HttpServletRequest request
HttpServletResponse response) throws ServletException IOException {
processRequest(request response);
}

/**
 * Handles the HTTP POST method.
 * 
 * @param request
 *            servlet request
 * @param response
 *            servlet response
 * @throws IOException 
 */
@Override
protected void doPost(HttpServletRequest request
HttpServletResponse response) throws ServletException IOException {
processRequest(request response);
}
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       2206  2008-11-24 13:23  testimg\.classpath

     文件        294  2008-11-24 11:14  testimg\.mymetadata

     文件       1225  2008-11-24 11:16  testimg\.project

     文件       1790  2008-11-24 15:23  testimg\src\com\yuyanshan\service\JbpmContextFactory.java

     文件       6657  2008-11-24 16:32  testimg\src\com\yuyanshan\service\JbpmTestFilter.java

     文件       2375  2008-09-05 16:38  testimg\src\com\yuyanshan\service\ProcessImageServlet.java

     文件       9474  2008-09-08 09:58  testimg\src\com\yuyanshan\tag\ProcessImageTag.java

     文件      11074  2008-11-23 21:20  testimg\src\hibernate.cfg.xml

     文件        427  2008-08-13 17:45  testimg\src\jbpm.cfg.xml

     文件        735  2008-08-13 17:45  testimg\src\jbpm.mail.templates.xml

     文件       1542  2008-08-28 10:53  testimg\src\log4j.properties

     文件        834  2008-11-24 11:14  testimg\WebRoot\index.jsp

     文件         39  2008-11-24 11:14  testimg\WebRoot\meta-INF\MANIFEST.MF

     文件       1013  2008-11-24 13:27  testimg\WebRoot\opmanager\process-img.jsp

     文件       1013  2008-11-24 13:27  testimg\WebRoot\process-img.jsp

     文件       1906  2008-11-24 20:08  testimg\WebRoot\WEB-INF\classes\com\yuyanshan\service\JbpmContextFactory.class

     文件       4576  2008-11-24 20:08  testimg\WebRoot\WEB-INF\classes\com\yuyanshan\service\JbpmTestFilter.class

     文件       1916  2008-11-24 20:08  testimg\WebRoot\WEB-INF\classes\com\yuyanshan\service\ProcessImageServlet.class

     文件       8929  2008-11-24 20:08  testimg\WebRoot\WEB-INF\classes\com\yuyanshan\tag\ProcessImageTag.class

     文件      11074  2008-11-23 21:20  testimg\WebRoot\WEB-INF\classes\hibernate.cfg.xml

     文件        427  2008-08-13 17:45  testimg\WebRoot\WEB-INF\classes\jbpm.cfg.xml

     文件        735  2008-08-13 17:45  testimg\WebRoot\WEB-INF\classes\jbpm.mail.templates.xml

     文件       1542  2008-08-28 10:53  testimg\WebRoot\WEB-INF\classes\log4j.properties

     文件        941  2008-09-08 09:58  testimg\WebRoot\WEB-INF\jbpm.tld

     文件       1538  2008-11-24 17:05  testimg\WebRoot\WEB-INF\web.xml

     目录          0  2008-11-24 20:08  testimg\WebRoot\WEB-INF\classes\com\yuyanshan\service

     目录          0  2008-11-24 20:08  testimg\WebRoot\WEB-INF\classes\com\yuyanshan\tag

     目录          0  2008-11-24 20:08  testimg\WebRoot\WEB-INF\classes\com\yuyanshan

     目录          0  2008-11-24 16:28  testimg\src\com\yuyanshan\service

     目录          0  2008-11-24 11:14  testimg\src\com\yuyanshan\tag

............此处省略15个文件信息

评论

共有 条评论