摘要: 示例代码:1 ProcessEngine processEngine = Configuration.getProcessEngine();2 TaskService taskService = processEngine.getTaskService();3 taskService.completeTask("20001");1、获取流程引擎2、获得任务服务3、根据任务ID 完成任务。/*** 下面方法参数为,要完成的任务ID,下一个节点的transition名称。 请参考API。*/taskService.completeTask(tas... 阅读全文
posted @ 2014-02-28 13:52 濤叔 阅读(408) 评论(0) 推荐(0) 编辑
摘要: 示例代码:1 ProcessEngine processEngine = Configuration.getProcessEngine();2 ExecutionService executionService = processEngine.getExecutionService();3 String activityName = executionService.createProcessInstanceQuery().processInstanceId("test.10001").uniqueResult().findActiveActi... 阅读全文
posted @ 2014-02-28 13:40 濤叔 阅读(4233) 评论(0) 推荐(0) 编辑
摘要: 示例代码: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 ProcessEngine processEngine = Configuration.getProcessEngine();2 TaskService taskService = processEngine.getTaskService();3 List tasks = taskService.findPersonalTasks("李四");4 Syst... 阅读全文
posted @ 2014-02-28 11:16 濤叔 阅读(1166) 评论(0) 推荐(0) 编辑
摘要: 示例代码:1 ProcessEngine processEngine = Configuration.getProcessEngine();2 ExecutionService executionService = processEngine.getExecutionService();3 ProcessInstance processInstance = executionService.startProcessInstanceByKey("test");4 System.out.println("流程实例ID=======... 阅读全文
posted @ 2014-02-28 11:10 濤叔 阅读(454) 评论(0) 推荐(0) 编辑
摘要: 示例代码:1 ProcessEngine processEngine = Configuration.getProcessEngine();2 RepositoryService repositoryService = processEngine.getRepositoryService();3 repositoryService.createDeployment().addResourceFromClasspath("test.jpdl.xml").deploy();1、获取流程引擎2、获取流程部署仓库服务Service3、创建流程部署 阅读全文
posted @ 2014-02-28 11:04 濤叔 阅读(393) 评论(0) 推荐(0) 编辑