08-28-2013 06:12 PM
null
for the Task retrieved from the task query in the code below? I have hooked this as a listener for task create event on the concerned user task in the process definition.
import org.activiti.engine.TaskService;
import org.activiti.engine.delegate.DelegateTask;
import org.activiti.engine.delegate.TaskListener;
import org.activiti.engine.task.Task;
public class MyTaskCreateListener implements TaskListener {
@Override
public void notify(DelegateTask delegateTask) {
TaskService activitiTaskService = delegateTask.getExecution().getEngineServices().getTaskService();
Task theActivitiTask = activitiTaskService.createTaskQuery().taskId(delegateTask.getId()).singleResult();
// Do something with theActivitiTask
}
}
12-11-2018 03:53 PM
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.