11-22-2016 05:43 AM
How can we reassign one user task to other user by using java code? I am getting user task through workflowService.getAssignedTasks(assignUserName, WorkflowTaskState.IN_PROGRESS, true); here workflowtasks are coming after that how we will proceed to assign task to other user.
11-28-2016 04:39 AM
List<WorkflowTask> tasks = workflowService.getAssignedTasks(assignUserName, WorkflowTaskState.IN_PROGRESS, true);
logger.debug("tasks:"+tasks+"\n"+tasks.size());
for (WorkflowTask task:tasks)
{
String taskID=task.getId();
taskService.setAssignee(taskID.substring(taskID.lastIndexOf("$")+1),delegator);
}
11-28-2016 04:39 AM
List<WorkflowTask> tasks = workflowService.getAssignedTasks(assignUserName, WorkflowTaskState.IN_PROGRESS, true);
logger.debug("tasks:"+tasks+"\n"+tasks.size());
for (WorkflowTask task:tasks)
{
String taskID=task.getId();
taskService.setAssignee(taskID.substring(taskID.lastIndexOf("$")+1),delegator);
}
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.