@Test public void calculateStatusForACancelledTaskShouldReturnCancelled() { assertThat(taskConverter.from(taskEntityBuilder().withCancelled(true).build())) .isNotNull() .extracting(Task::getStatus) .isEqualTo(CANCELLED); }
@Override public Task from(org.activiti.engine.task.Task internalTask) { return from(internalTask, calculateStatus(internalTask)); }
APITaskConverter extends ListConverter<org.activiti.engine.task.Task, Task> implements ModelConverter<org.activiti.engine.task.Task, Task> { @Override public Task from(org.activiti.engine.task.Task internalTask) { return from(internalTask, calculateStatus(internalTask)); } }
APITaskConverter extends ListConverter<org.activiti.engine.task.Task, Task> implements ModelConverter<org.activiti.engine.task.Task, Task> { @Override public Task from(org.activiti.engine.task.Task internalTask) { return from(internalTask, calculateStatus(internalTask)); } @Autowired  APITaskConverter(TaskService taskService); }
APITaskConverter extends ListConverter<org.activiti.engine.task.Task, Task> implements ModelConverter<org.activiti.engine.task.Task, Task> { @Override public Task from(org.activiti.engine.task.Task internalTask) { return from(internalTask, calculateStatus(internalTask)); } @Autowired  APITaskConverter(TaskService taskService); @Override Task from(org.activiti.engine.task.Task internalTask); Task fromWithCandidates(org.activiti.engine.task.Task internalTask); Task from(org.activiti.engine.task.Task internalTask,
        Task.TaskStatus status); Task fromWithCompletedBy(org.activiti.engine.task.Task internalTask,
        Task.TaskStatus status, String completedBy); }
APITaskConverter extends ListConverter<org.activiti.engine.task.Task, Task> implements ModelConverter<org.activiti.engine.task.Task, Task> { @Override public Task from(org.activiti.engine.task.Task internalTask) { return from(internalTask, calculateStatus(internalTask)); } @Autowired  APITaskConverter(TaskService taskService); @Override Task from(org.activiti.engine.task.Task internalTask); Task fromWithCandidates(org.activiti.engine.task.Task internalTask); Task from(org.activiti.engine.task.Task internalTask,
        Task.TaskStatus status); Task fromWithCompletedBy(org.activiti.engine.task.Task internalTask,
        Task.TaskStatus status, String completedBy);  }