use of org.kie.server.api.model.taskassigning.PlanningTask in project droolsjbpm-integration by kiegroup.
the class SolutionBuilderTest method buildAndCheckSuspendedTaskWithModifiedPlanningTaskNotPublishedWasProcessedCorrect.
@Test
public void buildAndCheckSuspendedTaskWithModifiedPlanningTaskNotPublishedWasProcessedCorrect() {
PlanningTask planningTask = PlanningTask.builder().taskId(1L).assignedUser(USER1).published(false).index(1).build();
TaskData taskData = mockTaskData(1L, Suspended, 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 buildAndCheckInProgressTaskWithUnChangedPlanningTaskPublishedWasProcessedCorrect.
@Test
public void buildAndCheckInProgressTaskWithUnChangedPlanningTaskPublishedWasProcessedCorrect() {
PlanningTask planningTask = PlanningTask.builder().taskId(1L).assignedUser(USER1).published(true).index(1).build();
TaskData taskData = mockTaskData(1L, InProgress, 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 buildAndCheckReservedTaskWithUnChangedPlanningTaskPublishedWasProcessedCorrect.
@Test
public void buildAndCheckReservedTaskWithUnChangedPlanningTaskPublishedWasProcessedCorrect() {
PlanningTask planningTask = PlanningTask.builder().taskId(1L).assignedUser(USER1).published(true).index(1).build();
TaskData taskData = mockTaskData(1L, Reserved, 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 buildAndCheckReservedForPlanningUserTaskWithModifiedPlanningTaskPublishedWasProcessedCorrect.
@Test
public void buildAndCheckReservedForPlanningUserTaskWithModifiedPlanningTaskPublishedWasProcessedCorrect() {
PlanningTask planningTask = PlanningTask.builder().taskId(1L).assignedUser(USER1).published(true).index(1).build();
TaskData taskData = mockTaskData(1L, Reserved, PLANNING_USER_ID);
buildAndCheckTaskWithPlanningTaskWasProcessedCorrect(taskData, planningTask, taskData.getActualOwner(), false);
}
use of org.kie.server.api.model.taskassigning.PlanningTask in project droolsjbpm-integration by kiegroup.
the class SolutionBuilderTest method buildAndCheckInProgressTaskWithModifiedPlanningTaskPublishedWasProcessedCorrect.
@Test
public void buildAndCheckInProgressTaskWithModifiedPlanningTaskPublishedWasProcessedCorrect() {
PlanningTask planningTask = PlanningTask.builder().taskId(1L).assignedUser(USER1).published(true).index(1).build();
TaskData taskData = mockTaskData(1L, InProgress, USER2);
buildAndCheckTaskWithPlanningTaskWasProcessedCorrect(taskData, planningTask, taskData.getActualOwner(), true);
}
Aggregations