/** * Register a flow defined at the following location as an .xml file. * This may be a path to a single resource or a ANT-style path expression that * matches multiple resources. * @param path the resource path to the externalized flow definition resource. * @param id the unique id to assign to the added flow definition in the registry * Specify only if you wish to provide a custom flow definition identifier. * @param attributes meta-attributes to assign to the flow definition */ public FlowDefinitionRegistryBuilder addFlowLocation(String path, String id, Map<String, Object> attributes) { this.flowLocations.add(new FlowLocation(path, id, attributes)); return this; }
/** * Register a flow defined at the following location as an .xml file. * This may be a path to a single resource or a ANT-style path expression that * matches multiple resources. * @param path the resource path to the externalized flow definition resource. * @param id the unique id to assign to the added flow definition in the registry * Specify only if you wish to provide a custom flow definition identifier. * @param attributes meta-attributes to assign to the flow definition */ public FlowDefinitionRegistryBuilder addFlowLocation(String path, String id, Map<String, Object> attributes) { this.flowLocations.add(new FlowLocation(path, id, attributes)); return this; }
private void registerFlowLocations(DefaultFlowRegistry flowRegistry) { for (FlowLocation location : this.flowLocations) { String path = location.getPath(); String id = location.getId(); AttributeMap<Object> attributes = location.getAttributes(); updateFlowAttributes(attributes); FlowDefinitionResource resource = this.flowResourceFactory.createResource(path, attributes, id); registerFlow(resource, flowRegistry); } }
/** * Register a flow defined at the following location as an .xml file. * This may be a path to a single resource or a ANT-style path expression that * matches multiple resources. * @param path the resource path to the externalized flow definition resource. * @param id the unique id to assign to the added flow definition in the registry * Specify only if you wish to provide a custom flow definition identifier. */ public FlowDefinitionRegistryBuilder addFlowLocation(String path, String id) { this.flowLocations.add(new FlowLocation(path, id, null)); return this; }
/** * Register a flow defined at the following location as an .xml file. * This may be a path to a single resource or a ANT-style path expression that * matches multiple resources. * @param path the resource path to the externalized flow definition resource. * @param id the unique id to assign to the added flow definition in the registry * Specify only if you wish to provide a custom flow definition identifier. */ public FlowDefinitionRegistryBuilder addFlowLocation(String path, String id) { this.flowLocations.add(new FlowLocation(path, id, null)); return this; }
private void registerFlowLocations(DefaultFlowRegistry flowRegistry) { for (FlowLocation location : this.flowLocations) { String path = location.getPath(); String id = location.getId(); AttributeMap<Object> attributes = location.getAttributes(); updateFlowAttributes(attributes); FlowDefinitionResource resource = this.flowResourceFactory.createResource(path, attributes, id); registerFlow(resource, flowRegistry); } }