public class FlowParser extends AbstractFlowParser
DECISION_ELE, END_ELE, endCounter, EXIT_CODE_ATTR, FAIL_ELE, FLOW_ELE, ID_ATTR, NEXT_ATTR, NEXT_ELE, ON_ATTR, RESTART_ATTR, SPLIT_ELE, STEP_ELE, STOP_ELE, TO_ATTR
Constructor and Description |
---|
FlowParser(java.lang.String flowName,
java.lang.String jobFactoryRef) |
Modifier and Type | Method and Description |
---|---|
protected static java.util.Collection<org.springframework.beans.factory.config.BeanDefinition> |
createTransition(FlowExecutionStatus status,
java.lang.String on,
java.lang.String next,
java.lang.String restart,
java.lang.String exitCode,
org.springframework.beans.factory.config.BeanDefinition stateDef,
org.springframework.beans.factory.xml.ParserContext parserContext,
boolean abandon) |
protected void |
doParse(org.w3c.dom.Element element,
org.springframework.beans.factory.xml.ParserContext parserContext,
org.springframework.beans.factory.support.BeanDefinitionBuilder builder) |
protected java.lang.Class<?> |
getBeanClass(org.w3c.dom.Element element) |
static java.util.Collection<org.springframework.beans.factory.config.BeanDefinition> |
getNextElements(org.springframework.beans.factory.xml.ParserContext parserContext,
org.springframework.beans.factory.config.BeanDefinition stateDef,
org.w3c.dom.Element element) |
static java.util.Collection<org.springframework.beans.factory.config.BeanDefinition> |
getNextElements(org.springframework.beans.factory.xml.ParserContext parserContext,
java.lang.String stepId,
org.springframework.beans.factory.config.BeanDefinition stateDef,
org.w3c.dom.Element element) |
protected static java.util.Collection<org.springframework.beans.factory.config.BeanDefinition> |
parseTransitionElement(org.w3c.dom.Element transitionElement,
java.lang.String stateId,
org.springframework.beans.factory.config.BeanDefinition stateDef,
org.springframework.beans.factory.xml.ParserContext parserContext) |
createTransition, findAllReachableElements, getBatchStatusFromEndTransitionName, getStateTransitionReference, setJobFactoryRef, verifyUniquePattern
doParse, getBeanClassName, getParentName, parseInternal
public FlowParser(java.lang.String flowName, java.lang.String jobFactoryRef)
flowName
- The name of the flowjobFactoryRef
- The bean name for the job factoryprotected java.lang.Class<?> getBeanClass(org.w3c.dom.Element element)
getBeanClass
in class AbstractFlowParser
protected void doParse(org.w3c.dom.Element element, org.springframework.beans.factory.xml.ParserContext parserContext, org.springframework.beans.factory.support.BeanDefinitionBuilder builder)
doParse
in class AbstractFlowParser
element
- the top level element containing a flow definitionparserContext
- the ParserContext
public static java.util.Collection<org.springframework.beans.factory.config.BeanDefinition> getNextElements(org.springframework.beans.factory.xml.ParserContext parserContext, org.springframework.beans.factory.config.BeanDefinition stateDef, org.w3c.dom.Element element)
public static java.util.Collection<org.springframework.beans.factory.config.BeanDefinition> getNextElements(org.springframework.beans.factory.xml.ParserContext parserContext, java.lang.String stepId, org.springframework.beans.factory.config.BeanDefinition stateDef, org.w3c.dom.Element element)
protected static java.util.Collection<org.springframework.beans.factory.config.BeanDefinition> parseTransitionElement(org.w3c.dom.Element transitionElement, java.lang.String stateId, org.springframework.beans.factory.config.BeanDefinition stateDef, org.springframework.beans.factory.xml.ParserContext parserContext)
protected static java.util.Collection<org.springframework.beans.factory.config.BeanDefinition> createTransition(FlowExecutionStatus status, java.lang.String on, java.lang.String next, java.lang.String restart, java.lang.String exitCode, org.springframework.beans.factory.config.BeanDefinition stateDef, org.springframework.beans.factory.xml.ParserContext parserContext, boolean abandon)
status
- The batch status that this transition will set. Use
BatchStatus.UNKNOWN if not applicable.on
- The pattern that this transition should match. Use null for
"no restriction" (same as "*").next
- The state to which this transition should go. Use null if not
applicable.restart
- The restart attribute this transition will set.exitCode
- The exit code that this transition will set. Use null to
default to batchStatus.stateDef
- The bean definition for the current stateparserContext
- the parser context for the bean factoryabandon
- the abandon state this transition will set.StateTransition
references