@Override
    public List<TaskModel> getMappedTasks(TaskMapperContext taskMapperContext) {

        LOGGER.debug("TaskMapperContext {} in InlineTaskMapper", taskMapperContext);

        WorkflowTask workflowTask = taskMapperContext.getWorkflowTask();
        WorkflowModel workflowModel = taskMapperContext.getWorkflowModel();
        String taskId = taskMapperContext.getTaskId();

        TaskDef taskDefinition =
                Optional.ofNullable(taskMapperContext.getTaskDefinition())
                        .orElseGet(() -> metadataDAO.getTaskDef(workflowTask.getName()));

        Map<String, Object> taskInput =
                parametersUtils.getTaskInputV2(
                        taskMapperContext.getWorkflowTask().getInputParameters(),
                        workflowModel,
                        taskId,
                        taskDefinition);

        TaskModel inlineTask = taskMapperContext.createTaskModel();
        inlineTask.setTaskType(TaskType.TASK_TYPE_INLINE);
        inlineTask.setStartTime(System.currentTimeMillis());
        inlineTask.setInputData(taskInput);
        inlineTask.setStatus(TaskModel.Status.IN_PROGRESS);

        return List.of(inlineTask);
    }
An implementation of {@link TaskMapper} to map a {@link WorkflowTask} of type {@link
TaskType#INLINE} to a List {@link TaskModel} starting with Task of type {@link TaskType#INLINE}
which is marked as IN_PROGRESS, followed by the list of {@link TaskModel} based on the case
expression evaluation in the Inline task.
core/src/main/java/com/netflix/conductor/core/execution/mapper/InlineTaskMapper.java