%@page import="org.jbpm.pvm.internal.id.DbidGenerator"%>
<%@page import="org.jbpm.api.cmd.Environment"%>
<%@page import="org.jbpm.api.ProcessEngine"%>
<%@page import="org.wdk.core.spring.SpringContext"%>
<%@page import="org.jbpm.pvm.internal.cmd.AbstractCommand"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
流程模板管理
<%@include file="/wdk/theme/je/module/public/common.jsp"%>
<%!
public class TestCmd extends AbstractCommand
{
@Override
public Long execute(Environment environment) throws Exception {
// TODO Auto-generated method stub
Long nextId = DbidGenerator.getDbidGenerator().getNextId();
return nextId;
}
}
%>
<%
ProcessEngine pe = (ProcessEngine) SpringContext.getBean("processEngine");
Long nextId = pe.execute(new TestCmd());
out.print(nextId);
%>