class InlineFlowParser extends AbstractFlowParser {

	private final String flowName;

	/**
	 * Construct a {@link InlineFlowParser} with the specified name and using the provided
	 * job repository reference.
	 * @param flowName The name of the flow.
	 * @param jobFactoryRef The reference to the {@link JobParserJobFactoryBean} from the
	 * enclosing tag.
	 */
	public InlineFlowParser(String flowName, String jobFactoryRef) {
		this.flowName = flowName;
		setJobFactoryRef(jobFactoryRef);

	}

	@Override
	protected boolean shouldGenerateId() {
		return true;
	}

	/**
	 * Does the parsing.
	 * @param element The top level element containing a flow definition.
	 * @param parserContext The {@link ParserContext}.
	 */
	@Override
	protected void doParse(Element element, ParserContext parserContext, BeanDefinitionBuilder builder) {<FILL_FUNCTION_BODY>}

}

		builder.getRawBeanDefinition().setAttribute("flowName", flowName);
		builder.addPropertyValue("name", flowName);
		builder.addPropertyValue("stateTransitionComparator",
				new RuntimeBeanReference(DefaultStateTransitionComparator.STATE_TRANSITION_COMPARATOR));
		super.doParse(element, parserContext, builder);
		builder.setRole(BeanDefinition.ROLE_INFRASTRUCTURE);
		parserContext.popAndRegisterContainingComponent();

	
<methods>public non-sealed void <init>() ,public static Collection<org.springframework.beans.factory.config.BeanDefinition> getNextElements(org.springframework.beans.factory.xml.ParserContext, org.springframework.beans.factory.config.BeanDefinition, org.w3c.dom.Element) ,public static Collection<org.springframework.beans.factory.config.BeanDefinition> getNextElements(org.springframework.beans.factory.xml.ParserContext, java.lang.String, org.springframework.beans.factory.config.BeanDefinition, org.w3c.dom.Element) ,public static org.springframework.beans.factory.config.BeanDefinition getStateTransitionReference(org.springframework.beans.factory.xml.ParserContext, org.springframework.beans.factory.config.BeanDefinition, java.lang.String, java.lang.String) <variables>protected static final java.lang.String DECISION_ELE,protected static final java.lang.String END_ELE,protected static final java.lang.String EXIT_CODE_ATTR,protected static final java.lang.String FAIL_ELE,protected static final java.lang.String FLOW_ELE,protected static final java.lang.String ID_ATTR,protected static final java.lang.String NEXT_ATTR,protected static final java.lang.String NEXT_ELE,protected static final java.lang.String ON_ATTR,protected static final java.lang.String RESTART_ATTR,protected static final java.lang.String SPLIT_ELE,protected static final java.lang.String STEP_ELE,protected static final java.lang.String STOP_ELE,protected static final java.lang.String TO_ATTR,private static final org.springframework.batch.core.configuration.xml.DecisionParser decisionParser,protected static int endCounter,private static final org.springframework.batch.core.configuration.xml.FlowElementParser flowParser,private java.lang.String jobFactoryRef,private static final org.springframework.batch.core.configuration.xml.InlineStepParser stepParser