Search in sources :

Example 1 with GetTasksPayloadBuilder

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);
}
Also used : Task(org.activiti.api.task.model.Task) GetTasksPayload(org.activiti.api.task.model.payloads.GetTasksPayload) GetTasksPayloadBuilder(org.activiti.api.task.model.builders.GetTasksPayloadBuilder)

Aggregations

Task (org.activiti.api.task.model.Task)1 GetTasksPayloadBuilder (org.activiti.api.task.model.builders.GetTasksPayloadBuilder)1 GetTasksPayload (org.activiti.api.task.model.payloads.GetTasksPayload)1