JBPM4接口介绍
来源:互联网 发布:软件开发费用评估 编辑:程序博客网 时间:2024/06/06 17:13
1:启动JBPM引擎 ProcessEngine
ProcessEngine processEngine;
processEngine = Configuration.getProcessEngine();
2:发布流程
processEngine.getRepositoryService();
respositoryService.createDeployment().addResourceFromClasspath
("helloworld.jpdl.xml").deploy();//创建流程发布包,并发布
------------------------------------
(2)查看流程定义
respositoryService.createProcessDefinitionQ
for( ProcessDefinition pd : list){
}
-------------------------------------
(3)删除流程定义
String processDefinitionId = responsitoryService.createDeployment
().addResourceFromClasspath
responsitoryService.deleteDeploymentCascade(processDefinitionId);
//级联删除流程定义下的所以流程定义及流程定义的实例
-------------------------------------------------------
(4)获得流程实例
ExecutionService executeService = processEngine.getExcuteServie();
//ExcecutionService是用来专门控制流程实例的
ProcessInstance pi = executionService.startProcessInstanceByKe
("helloworld");
pi= executionService.signalExecutionById(pi.getId());
System.out.println(pi.isEnded());
(5)终结流程
pi = exectionService.endProcessInstance(pi.getId(),"cancel");
(6)删除流程
pi = exectionService.deleteProcessInstanceCas
(7)查看流程实例
executionService.createProcessInstanceQue
- JBPM4接口介绍
- jBPM4.3数据库表介绍
- JBPM4.4常用类介绍
- JBPM4.4-依赖包介绍
- jbpm4
- jbpm4
- Jbpm4
- jBPM4
- jBPM4.3数据库中表的简单介绍
- JBPM4工作流之在myecplsie中安装jBPM4.0开发插件以及JBPM4的简单介绍和入门
- jbpm4.4学习总结(三)常用接口使用说明
- jbpm4.4学习总结(三)常用接口使用说明
- 接口介绍
- 接口介绍
- 接口 介绍
- 对jBPM4.4数据库的几张表简单介绍
- 对jBPM4.4数据库的几张表简单介绍
- JBPM4入门——1.jbpm简要介绍
- Struts2+spring3+mybatis3整合
- 禁用启动设备
- POJ3687--Labeling Balls
- 拿电子技术比喻人生
- jQuery树形菜单jquery.treeview
- JBPM4接口介绍
- mysql 中文首写字母排序
- C++ 从零单排(1)-基础知识一
- 把json对象串转换成map对象
- CIRCOS教程翻译 3.7——Focusing on a genome region
- 二叉树的遍历: 前序,中序,后序----非递归算法
- java.io.EOFException: Chunk stream does not exist at page: 0
- C++学习经典书籍
- iPhone/iPad全屏截图与区域截图的几种方法