@Override
    public boolean execute(
            WorkflowModel workflow, TaskModel task, WorkflowExecutor workflowExecutor) {
        task.setStatus(TaskModel.Status.COMPLETED);
        return true;
    }
{@link Switch} task is a replacement for now deprecated {@link Decision} task.
core/src/main/java/com/netflix/conductor/core/execution/tasks/Switch.java