use of com.walmartlabs.concord.project.model.ProjectDefinition in project concord by walmartlabs.
the class YamlProjectConverter method convert.
public static ProjectDefinition convert(YamlProject project) throws YamlConverterException {
Map<String, ProcessDefinition> flows = convertFlows(project.getFlows());
Set<String> publicFlows = project.getPublicFlows();
Map<String, FormDefinition> forms = convertForms(project.getForms());
Map<String, Object> cfg = project.getConfiguration();
Map<String, Profile> profiles = convertProfiles(project.getProfiles());
List<Trigger> triggers = YamlTriggersConverter.convert(project.getTriggers());
Imports imports = convertImports(project.getImports());
Resources resources = convertResources(project.getResources());
return new ProjectDefinition(flows, publicFlows, forms, cfg, profiles, triggers, imports, resources);
}
Aggregations