Hi pchoe
workflow have tasks and task have reviewer info
1. you got workflow
2. find tasks in workflow
3. you got reviewer in task
I used javabacked webscript
WorkflowTask task = registry.getWorkflowService().getTaskById(taskId);
WorkflowTaskQuery query = new WorkflowTaskQuery();
query.setProcessId(task.getPath().getInstance().getId());
query.setTaskState(WorkflowTaskState.COMPLETED);
query.setActive(false);
query.setOrderBy(new WorkflowTaskQuery.OrderBy[] {
WorkflowTaskQuery.OrderBy.TaskCreated_Desc,
WorkflowTaskQuery.OrderBy.TaskActor_Asc });
List<WorkflowTask> completedTasks1 = registry.getWorkflowService().queryTasks(query, true);
query.setActive(true);
List<WorkflowTask> completedTasks2 = registry.getWorkflowService().queryTasks(query, true);
query.setTaskState(WorkflowTaskState.IN_PROGRESS);
query.setActive(true);
List<WorkflowTask> inProgressTasks1 = registry.getWorkflowService().queryTasks(query, true);
query.setActive(false);
List<WorkflowTask> inProgressTasks2 = registry.getWorkflowService().queryTasks(query, true);
List<WorkflowTask> tasks = new ArrayList<WorkflowTask>();
tasks.addAll(completedTasks1);
tasks.addAll(completedTasks2);
tasks.addAll(inProgressTasks1);
tasks.addAll(inProgressTasks2);
// workflow history
List<Map<String, Object>> historyDatas = new ArrayList<Map<String, Object>>();
for (WorkflowTask htask : tasks) {
Map<String, Object> data = WebScriptUtil.transDataMap(htask.getProperties());
historyDatas.add(data);
}
I wish you solve the problem.
good day