use of org.activiti.api.task.model.builders.GetTasksPayloadBuilder in project Activiti by Activiti.
the class ProcessRuntimeBPMNErrorReceivedIT method checkTask.
private void checkTask(String processInstanceId, String taskName) {
GetTasksPayload getTasksPayload = new GetTasksPayloadBuilder().withProcessInstanceId(processInstanceId).build();
Page<Task> tasks = taskRuntime.tasks(Pageable.of(0, 50), getTasksPayload);
assertThat(tasks.getContent()).hasSize(1);
assertThat(tasks.getContent().get(0).getName()).isEqualTo(taskName);
}
Aggregations