摘要:
State状态节点 相比 Task 节点的区别为: 主要是没有“操作人员”assignee流程操作方便基本相同。如下:部署流程: repositoryService.createDeployment().addResourceFromClasspath("com/tgb/node/state/state.jpdl.xml").deploy();创建流程实例 ProcessInstance processInstance = executionService.startProcessInstanceByKey("state"); print("流 阅读全文
摘要:
user.java实体类private String kezhang; private String zhuren;/...完善set get 方法.../创建流程实例 //创建流程引擎 ProcessEngine processEngine = Configuration.getProcessEngine(); //获得执行服务 ExecutionService executionService = processEngine.getExecutionService(); //创建流程变量 Map map = new HashMap(); User user = new ... 阅读全文
摘要:
任务变量与流程变量的操作相同,前者帮定任务ID,后者绑定流程ID。添加任务变量 //创建流程引擎 ProcessEngine processEngine = Configuration.getProcessEngine(); //获得任务服务 TaskService taskService = processEngine.getTaskService(); 创建任务变量 Map map = new HashMap(); map.put("taskUserID", "100"); map.put("taskUserName", &quo 阅读全文
摘要:
设置流程实例变量 //创建流程引擎 ProcessEngine processEngine = Configuration.getProcessEngine(); //获得执行服务 ExecutionService executionService = processEngine.getExecutionService(); //新建流程变量 Map variable = new HashMap(); //存储用户ID、用户名 variable.put("userId1", "001"); variable.put("userName1&quo 阅读全文