You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

38 lines
1.0 KiB

<%@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"%>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<title>流程模板管理</title>
<%@include file="/wdk/theme/je/module/public/common.jsp"%>
<script type="text/javascript">
//页面初始化
$(function() {
});
</script>
</head>
<%!
public class TestCmd extends AbstractCommand<Long>
{
@Override
public Long execute(Environment environment) throws Exception {
// TODO Auto-generated method stub
Long nextId = DbidGenerator.getDbidGenerator().getNextId();
return nextId;
}
}
%>
<body>
<%
ProcessEngine pe = (ProcessEngine) SpringContext.getBean("processEngine");
Long nextId = pe.execute(new TestCmd());
out.print(nextId);
%>
</body>
</html>