Search in sources :

Example 1 with YamlTrigger

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;
}
Also used : Trigger(com.walmartlabs.concord.project.model.Trigger) YamlTrigger(com.walmartlabs.concord.project.yaml.model.YamlTrigger) YamlTrigger(com.walmartlabs.concord.project.yaml.model.YamlTrigger)

Aggregations

Trigger (com.walmartlabs.concord.project.model.Trigger)1 YamlTrigger (com.walmartlabs.concord.project.yaml.model.YamlTrigger)1