use of com.walmartlabs.concord.project.yaml.model.YamlTrigger in project concord by walmartlabs.
the class YamlTriggersConverter method convert.
public static List<Trigger> convert(List<YamlTrigger> triggers) {
if (triggers == null || triggers.isEmpty()) {
return null;
}
List<Trigger> result = new ArrayList<>();
for (YamlTrigger t : triggers) {
TriggerConverter converter = converters.getOrDefault(t.getEventSource(), defaultConverter);
result.add(converter.convert(t));
}
return result;
}
Aggregations