public Switch switchCase(String caseValue, String... workerTasks) {
        List<Task<?>> tasks = new ArrayList<>(workerTasks.length);
        int i = 0;
        for (String workerTask : workerTasks) {
            tasks.add(new SimpleTask(workerTask, workerTask));
        }
        branches.put(caseValue, tasks);
        return this;
    }
Switch case (similar to if...then...else or switch in java language)

@param taskReferenceName
@param caseExpression
java-sdk/src/main/java/com/netflix/conductor/sdk/workflow/def/tasks/Switch.java