use of org.kie.server.api.model.taskassigning.PlanningTask in project droolsjbpm-integration by kiegroup.
the class SolutionBuilderTest method buildAndCheckReservedTaskWithModifiedPlanningTaskNotPublishedWasProcessedCorrect.
@Test
public void buildAndCheckReservedTaskWithModifiedPlanningTaskNotPublishedWasProcessedCorrect() {
PlanningTask planningTask = PlanningTask.builder().taskId(1L).assignedUser(USER1).published(false).index(1).build();
TaskData taskData = mockTaskData(1L, Reserved, USER2);
buildAndCheckTaskWithPlanningTaskWasProcessedCorrect(taskData, planningTask, taskData.getActualOwner(), true);
}
use of org.kie.server.api.model.taskassigning.PlanningTask in project droolsjbpm-integration by kiegroup.
the class SolutionBuilderTest method buildAndCheckSuspendedTaskWithUnChangedPlanningTaskNotPublishedWasProcessedCorrect.
@Test
public void buildAndCheckSuspendedTaskWithUnChangedPlanningTaskNotPublishedWasProcessedCorrect() {
PlanningTask planningTask = PlanningTask.builder().taskId(1L).assignedUser(USER1).published(false).index(1).build();
TaskData taskData = mockTaskData(1L, Suspended, planningTask.getAssignedUser());
buildAndCheckTaskWithPlanningTaskWasProcessedCorrect(taskData, planningTask, planningTask.getAssignedUser(), true);
}
use of org.kie.server.api.model.taskassigning.PlanningTask in project droolsjbpm-integration by kiegroup.
the class SolutionBuilderTest method buildAndCheckSuspendedTaskWithUnChangedPlanningTaskPublishedWasProcessedCorrect.
@Test
public void buildAndCheckSuspendedTaskWithUnChangedPlanningTaskPublishedWasProcessedCorrect() {
PlanningTask planningTask = PlanningTask.builder().taskId(1L).assignedUser(USER1).published(true).index(1).build();
TaskData taskData = mockTaskData(1L, Suspended, planningTask.getAssignedUser());
buildAndCheckTaskWithPlanningTaskWasProcessedCorrect(taskData, planningTask, planningTask.getAssignedUser(), true);
}
use of org.kie.server.api.model.taskassigning.PlanningTask in project droolsjbpm-integration by kiegroup.
the class SolutionBuilderTest method buildAndCheckReservedTaskWithUnChangedPlanningTaskNotPublishedWasProcessedCorrect.
@Test
public void buildAndCheckReservedTaskWithUnChangedPlanningTaskNotPublishedWasProcessedCorrect() {
PlanningTask planningTask = PlanningTask.builder().taskId(1L).assignedUser(USER1).published(false).index(1).build();
TaskData taskData = mockTaskData(1L, Reserved, planningTask.getAssignedUser());
buildAndCheckTaskWithPlanningTaskWasProcessedCorrect(taskData, planningTask, planningTask.getAssignedUser(), false);
}
use of org.kie.server.api.model.taskassigning.PlanningTask in project droolsjbpm-integration by kiegroup.
the class SolutionBuilderTest method buildAndCheckSuspendedTaskWithModifiedPlanningTaskPublishedWasProcessedCorrect.
@Test
public void buildAndCheckSuspendedTaskWithModifiedPlanningTaskPublishedWasProcessedCorrect() {
PlanningTask planningTask = PlanningTask.builder().taskId(1L).assignedUser(USER1).published(true).index(1).build();
TaskData taskData = mockTaskData(1L, Suspended, USER2);
buildAndCheckTaskWithPlanningTaskWasProcessedCorrect(taskData, planningTask, taskData.getActualOwner(), true);
}
Aggregations