/** * @param transitionElement The element to parse * @param stateDef The bean definition for the current state * @param parserContext the parser context for the bean factory * @return a collection of * {@link org.springframework.batch.core.job.flow.support.StateTransition} * references */ private static Collection<BeanDefinition> parseTransitionElement(Element transitionElement, String stateId, BeanDefinition stateDef, ParserContext parserContext) { FlowExecutionStatus status = getBatchStatusFromEndTransitionName(transitionElement.getNodeName()); String onAttribute = transitionElement.getAttribute(ON_ATTR); String restartAttribute = transitionElement.getAttribute(RESTART_ATTR); String nextAttribute = transitionElement.getAttribute(TO_ATTR); if (!StringUtils.hasText(nextAttribute)) { nextAttribute = restartAttribute; } boolean abandon = stateId != null && StringUtils.hasText(restartAttribute) && !restartAttribute.equals(stateId); String exitCodeAttribute = transitionElement.getAttribute(EXIT_CODE_ATTR); return createTransition(status, onAttribute, nextAttribute, exitCodeAttribute, stateDef, parserContext, abandon); }
/** * @param transitionElement The element to parse * @param stateDef The bean definition for the current state * @param parserContext the parser context for the bean factory * @return a collection of * {@link org.springframework.batch.core.job.flow.support.StateTransition} * references */ private static Collection<BeanDefinition> parseTransitionElement(Element transitionElement, String stateId, BeanDefinition stateDef, ParserContext parserContext) { FlowExecutionStatus status = getBatchStatusFromEndTransitionName(transitionElement.getNodeName()); String onAttribute = transitionElement.getAttribute(ON_ATTR); String restartAttribute = transitionElement.getAttribute(RESTART_ATTR); String nextAttribute = transitionElement.getAttribute(TO_ATTR); if (!StringUtils.hasText(nextAttribute)) { nextAttribute = restartAttribute; } boolean abandon = stateId != null && StringUtils.hasText(restartAttribute) && !restartAttribute.equals(stateId); String exitCodeAttribute = transitionElement.getAttribute(EXIT_CODE_ATTR); return createTransition(status, onAttribute, nextAttribute, exitCodeAttribute, stateDef, parserContext, abandon); }
/** * @param transitionElement The element to parse * @param stateDef The bean definition for the current state * @param parserContext the parser context for the bean factory * @return a collection of * {@link org.springframework.batch.core.job.flow.support.StateTransition} * references */ private static Collection<BeanDefinition> parseTransitionElement(Element transitionElement, String stateId, BeanDefinition stateDef, ParserContext parserContext) { FlowExecutionStatus status = getBatchStatusFromEndTransitionName(transitionElement.getNodeName()); String onAttribute = transitionElement.getAttribute(ON_ATTR); String restartAttribute = transitionElement.getAttribute(RESTART_ATTR); String nextAttribute = transitionElement.getAttribute(TO_ATTR); if (!StringUtils.hasText(nextAttribute)) { nextAttribute = restartAttribute; } boolean abandon = stateId != null && StringUtils.hasText(restartAttribute) && !restartAttribute.equals(stateId); String exitCodeAttribute = transitionElement.getAttribute(EXIT_CODE_ATTR); return createTransition(status, onAttribute, nextAttribute, exitCodeAttribute, stateDef, parserContext, abandon); }
/** * @param transitionElement The element to parse * @param stateDef The bean definition for the current state * @param parserContext the parser context for the bean factory * @return a collection of * {@link org.springframework.batch.core.job.flow.support.StateTransition} * references */ private static Collection<BeanDefinition> parseTransitionElement(Element transitionElement, String stateId, BeanDefinition stateDef, ParserContext parserContext) { FlowExecutionStatus status = getBatchStatusFromEndTransitionName(transitionElement.getNodeName()); String onAttribute = transitionElement.getAttribute(ON_ATTR); String restartAttribute = transitionElement.getAttribute(RESTART_ATTR); String nextAttribute = transitionElement.getAttribute(TO_ATTR); if (!StringUtils.hasText(nextAttribute)) { nextAttribute = restartAttribute; } boolean abandon = stateId != null && StringUtils.hasText(restartAttribute) && !restartAttribute.equals(stateId); String exitCodeAttribute = transitionElement.getAttribute(EXIT_CODE_ATTR); return createTransition(status, onAttribute, nextAttribute, exitCodeAttribute, stateDef, parserContext, abandon); }
/** * @param transitionElement The element to parse * @param stateDef The bean definition for the current state * @param parserContext the parser context for the bean factory * @param a collection of * {@link org.springframework.batch.core.job.flow.support.StateTransition} * references */ private static Collection<BeanDefinition> parseTransitionElement(Element transitionElement, String stateId, BeanDefinition stateDef, ParserContext parserContext) { FlowExecutionStatus status = getBatchStatusFromEndTransitionName(transitionElement.getNodeName()); String onAttribute = transitionElement.getAttribute(ON_ATTR); String restartAttribute = transitionElement.getAttribute(RESTART_ATTR); String nextAttribute = transitionElement.getAttribute(TO_ATTR); if (!StringUtils.hasText(nextAttribute)) { nextAttribute = restartAttribute; } boolean abandon = stateId != null && StringUtils.hasText(restartAttribute) && !restartAttribute.equals(stateId); String exitCodeAttribute = transitionElement.getAttribute(EXIT_CODE_ATTR); return createTransition(status, onAttribute, nextAttribute, exitCodeAttribute, stateDef, parserContext, abandon); }