/** * Creates a new externalized flow definition resource. The flow id assigned will be the same name as the * externalized resource's filename, excluding the extension. * @param location the flow resource location */ public FlowDefinitionResource(Resource location) { init(conventionalFlowId(location), location, null); }
/** * Creates a new externalized flow definition resource. The flow id assigned will be the same name as the * externalized resource's filename, excluding the extension. * @param location the flow resource location * @param attributes flow definition attributes to be assigned */ public FlowDefinitionResource(Resource location, AttributeMap attributes) { init(conventionalFlowId(location), location, attributes); }
/** * Add configured flow definition locations to the flow definition registrar. */ private void addFlowDefinitionLocations() { if (locations != null) { for (int i = 0; i < locations.length; i++) { String flowId = FlowDefinitionResource.conventionalFlowId(locations[i]); getXmlFlowRegistrar().addResource( new FlowDefinitionResource(flowId, locations[i], getFlowAttributes(flowId))); } } }