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
}
}
08-29-2013 10:44 AM
09-03-2013 02:22 PM
09-04-2013 05:44 AM
09-04-2013 01:00 PM
09-06-2013 01:46 PM
09-06-2013 02:37 PM
09-13-2013 03:42 AM
09-13-2013 11:28 AM
12-11-2018 11:47 AM
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();sendMessageToUser(delegateTask.getId());
}
}
receive client:
activitiTaskService.createTaskQuery().taskId(new_taskId).singleResult() it null?
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.