activiti工作流05-完成任务
2016-08-18 16:15
441 查看
完成任务需要用到TaskService.
常用的方法有:
1,
void complete(String taskId)
Called when the task is successfully executed.
2,
void complete(String taskId, Map<String,Object> variables)
Called when the task is successfully executed, and the required task parameters are given by the end-user.
3,
void complete(String taskId, Map<String,Object> variables, boolean localScope)
Called when the task is successfully executed, and the required task paramaters are given by the end-user.
另外,获取特定用户的所有待办任务的方法为:
taskService.createTaskQuery().taskCandidateOrAssigned(user.getId()).active();
排序:
taskService.createTaskQuery().taskCandidateOrAssigned(user.getId()).active().orderByTaskId().desc().list();
常用的方法有:
1,
void complete(String taskId)
Called when the task is successfully executed.
2,
void complete(String taskId, Map<String,Object> variables)
Called when the task is successfully executed, and the required task parameters are given by the end-user.
3,
void complete(String taskId, Map<String,Object> variables, boolean localScope)
Called when the task is successfully executed, and the required task paramaters are given by the end-user.
另外,获取特定用户的所有待办任务的方法为:
taskService.createTaskQuery().taskCandidateOrAssigned(user.getId()).active();
排序:
taskService.createTaskQuery().taskCandidateOrAssigned(user.getId()).active().orderByTaskId().desc().list();
相关文章推荐
- activiti学习--05流程实例:部署流程定义+部署流程定义+查询当前人的个人任务+完成我的任务
- 工作流学习笔记——Activiti流程实例、任务管理四步曲
- 工作流activiti-03数据查询(流程定义 流程实例 代办任务) 以及个人小练习
- 工作流学习——Activiti流程实例、任务管理四步曲
- 工作流学习——Activiti流程实例、任务管理四步曲
- Activiti工作流框架学习(二)——使用Activiti提供的API完成流程操作
- 工作流Activiti5流程变量 任务变量 setVariables 跟 setVariablesLocal区别
- 组任务(group)activiti工作流的角色
- 工作流学习——Activiti流程实例、任务管理四步曲
- Activiti工作流框架学习(二)——使用Activiti提供的API完成流程操作
- Num57 boss11(boss项目中使用activiti完成一个工作流)
- SharePoint 2007工作流开发点滴(7) – 用代码完成任务
- 工作流学习——Activiti流程实例、任务管理四步曲
- Activiti工作流之用户任务分配
- Activiti 5.18启动流程到完成所有任务之间的数据库变化(转)
- Activiti——工作流之流程实例、任务的执行(五)
- Activiti工作流框架学习(二)——使用Activiti提供的API完成流程操作
- Activiti工作流框架学习(二)——使用Activiti提供的API完成流程操作
- activiti之奇淫技巧一(自动完成首个任务)
- 【入门篇】Activiti完成指定流程定义下任务