when(taskInstance.getSubject()).thenReturn("empty"); when(taskInstance.getPriority()).thenReturn(5); when(taskInstance.getTaskType()).thenReturn(""); when(taskInstance.getTaskData()).thenReturn(taskData);
this.status = source.getTaskData().getStatus().name(); this.subject = source.getSubject(); this.taskType = source.getTaskType(); this.workItemId = source.getTaskData().getWorkItemId();
public void initialize(Task task) { if( task == null ) { return; } this.id = task.getId(); this.priority = task.getPriority(); this.version = task.getVersion(); this.archived = task.isArchived(); this.subTasksStrategy = ((InternalTask) task).getSubTaskStrategy(); this.peopleAssignments = new JaxbPeopleAssignments(task.getPeopleAssignments()); this.names = convertListFromInterfaceToJaxbImpl(task.getNames(), I18NText.class, JaxbI18NText.class); this.name = ((InternalTask)task).getName(); this.subjects = convertListFromInterfaceToJaxbImpl(task.getSubjects(), I18NText.class, JaxbI18NText.class); this.subject = ((InternalTask)task).getSubject(); this.descriptions = convertListFromInterfaceToJaxbImpl(task.getDescriptions(), I18NText.class, JaxbI18NText.class); this.description = ((InternalTask)task).getDescription(); this.taskType = task.getTaskType(); this.formName = ((InternalTask)task).getFormName(); this.taskData = new JaxbTaskData(task.getTaskData()); }
this.status = source.getTaskData().getStatus().name(); this.subject = source.getSubject(); this.taskType = source.getTaskType(); this.workItemId = source.getTaskData().getWorkItemId();
genTask.getSubjects().addAll(genTextList); genTask.setTaskType(task.getTaskType()); TaskData kieTaskData = task.getTaskData(); genTask.setTaskData(convertKieTaskDataToGenTaskData(kieTaskData));
.description(task.getDescription()) .priority(task.getPriority()) .taskType(task.getTaskType()) .formName(((InternalTask) task).getFormName()) .status(task.getTaskData().getStatus().name())