/** * Register a custom {@link FlowBuilder} instance with the given flow id. * @param builder the FlowBuilder to configure * @param id the id assign to the flow definition in this registry. * Specify when you wish to provide a custom flow definition identifier. * @param attributes attributes to assign to the flow definition. */ public FlowDefinitionRegistryBuilder addFlowBuilder(FlowBuilder builder, String id, Map<String, Object> attributes) { if (!StringUtils.hasText(id)) { id = StringUtils.uncapitalize(StringUtils.delete( ClassUtils.getShortName(builder.getClass()), "FlowBuilder")); } this.flowBuilderInfos.add(new FlowBuilderInfo(builder, id, attributes)); return this; }
/** * Register a custom {@link FlowBuilder} instance with the given flow id. * @param builder the FlowBuilder to configure * @param id the id assign to the flow definition in this registry. * Specify when you wish to provide a custom flow definition identifier. * @param attributes attributes to assign to the flow definition. */ public FlowDefinitionRegistryBuilder addFlowBuilder(FlowBuilder builder, String id, Map<String, Object> attributes) { if (!StringUtils.hasText(id)) { id = StringUtils.uncapitalize(StringUtils.delete( ClassUtils.getShortName(builder.getClass()), "FlowBuilder")); } this.flowBuilderInfos.add(new FlowBuilderInfo(builder, id, attributes)); return this; }