use of org.kie.server.api.model.instance.TaskSummary in project droolsjbpm-integration by kiegroup.
the class TaskSearchServiceIntegrationTest method testFindTaskWithDescriptionEqualsToFilter.
@Test
public void testFindTaskWithDescriptionEqualsToFilter() throws Exception {
Long processInstanceId = processClient.startProcess(CONTAINER_ID, PROCESS_ID_USERTASK);
Assertions.assertThat(processInstanceId).isNotNull();
List<TaskSummary> tasks = taskClient.findTasksAssignedAsPotentialOwner(USER_YODA, 0, 10);
Assertions.assertThat(tasks).isNotEmpty();
TaskSummary task = tasks.get(0);
testFindTaskInstanceWithSearchService(createQueryFilterEqualsTo(TaskField.DESCRIPTION, task.getDescription()), task.getId());
}
use of org.kie.server.api.model.instance.TaskSummary in project droolsjbpm-integration by kiegroup.
the class TaskSearchServiceIntegrationTest method testFindTaskWithActualOwnerEqualsToFilter.
@Test
public void testFindTaskWithActualOwnerEqualsToFilter() throws Exception {
Long processInstanceId = processClient.startProcess(CONTAINER_ID, PROCESS_ID_USERTASK);
Assertions.assertThat(processInstanceId).isNotNull();
List<TaskSummary> tasks = taskClient.findTasksAssignedAsPotentialOwner(USER_YODA, 0, 10);
Assertions.assertThat(tasks).isNotEmpty();
TaskSummary task = tasks.get(0);
testFindTaskInstanceWithSearchService(createQueryFilterEqualsTo(TaskField.ACTUALOWNER, USER_YODA), task.getId());
}
use of org.kie.server.api.model.instance.TaskSummary in project droolsjbpm-integration by kiegroup.
the class TaskSearchServiceIntegrationTest method testFindTaskWithActivationTimeGreaterThanEqualsToFilter.
@Test
public void testFindTaskWithActivationTimeGreaterThanEqualsToFilter() throws Exception {
Long processInstanceId = processClient.startProcess(CONTAINER_ID, PROCESS_ID_USERTASK);
Assertions.assertThat(processInstanceId).isNotNull();
List<TaskSummary> tasks = taskClient.findTasksAssignedAsPotentialOwner(USER_YODA, 0, 10);
Assertions.assertThat(tasks).isNotEmpty();
TaskSummary task = tasks.get(0);
testFindTaskInstanceWithSearchService(createQueryFilterGreaterThanOrEqualsTo(TaskField.ACTIVATIONTIME, subtractOneMinuteFromDate(task.getActivationTime())), task.getId());
}
use of org.kie.server.api.model.instance.TaskSummary in project droolsjbpm-integration by kiegroup.
the class TaskSearchServiceIntegrationTest method testFindTaskWithProcessInstanceIdEqualsToFilter.
@Test
public void testFindTaskWithProcessInstanceIdEqualsToFilter() throws Exception {
Long processInstanceId = processClient.startProcess(CONTAINER_ID, PROCESS_ID_USERTASK);
Assertions.assertThat(processInstanceId).isNotNull();
List<TaskSummary> tasks = taskClient.findTasksAssignedAsPotentialOwner(USER_YODA, 0, 10);
Assertions.assertThat(tasks).isNotEmpty();
TaskSummary task = tasks.get(0);
testFindTaskInstanceWithSearchService(createQueryFilterEqualsTo(TaskField.PROCESSINSTANCEID, processInstanceId), task.getId());
}
use of org.kie.server.api.model.instance.TaskSummary in project droolsjbpm-integration by kiegroup.
the class TaskSearchServiceIntegrationTest method testFindTaskWithProcessIdEqualsToFilter.
@Test
public void testFindTaskWithProcessIdEqualsToFilter() throws Exception {
Long processInstanceId = processClient.startProcess(CONTAINER_ID, PROCESS_ID_USERTASK);
Assertions.assertThat(processInstanceId).isNotNull();
List<TaskSummary> tasks = taskClient.findTasksAssignedAsPotentialOwner(USER_YODA, 0, 10);
Assertions.assertThat(tasks).isNotEmpty();
TaskSummary task = tasks.get(0);
testFindTaskInstanceWithSearchService(createQueryFilterEqualsTo(TaskField.PROCESSID, PROCESS_ID_USERTASK), task.getId());
}
Aggregations