02-26-2013 02:30 PM
public class ArchiveTask implements org.activiti.engine.delegate.JavaDelegate
{
public void execute(DelegateExecution execution) throws Exception {
String assigneeName = (String) execution.getVariable("user");
TaskService taskService = execution.getEngineServices()
.getTaskService();
List<Task> tasks = taskService.createTaskQuery()
.taskAssignee(assigneeName).list();
for (Task task : tasks) {
task.setOwner(assigneeName);
}
}
}
02-27-2013 10:53 AM
04-16-2013 03:07 AM
Hi,
I have a simple workflow with custom form.
I figured out a way to set the owner of the task and it seems to work fine..public class ArchiveTask implements org.activiti.engine.delegate.JavaDelegate
{
public void execute(DelegateExecution execution) throws Exception {
String assigneeName = (String) execution.getVariable("user");
TaskService taskService = execution.getEngineServices()
.getTaskService();
List<Task> tasks = taskService.createTaskQuery()
.taskAssignee(assigneeName).list();
for (Task task : tasks) {
task.setOwner(assigneeName);
}
}
}
Can someone let me know if I am right?
Thanks,
Barani
04-16-2013 06:00 AM
04-16-2013 06:48 AM
04-16-2013 07:17 AM
04-17-2013 10:08 AM
04-18-2013 07:48 AM
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.