public boolean containsType(String taskType) {
        return collectTasks().stream().anyMatch(t -> t.getType().equals(taskType));
    }
@param variables the set of global workflow variables to set
common/src/main/java/com/netflix/conductor/common/metadata/workflow/WorkflowDef.java