private ExecutionElement getNextExecutionElemFromAttribute(List<ExecutionElement> peerExecutionElements, ExecutionElement currentElem) throws IllegalTransitionException { ExecutionElement nextExecutionElement = null; String nextAttrId = null; if (currentElem instanceof Step) { nextAttrId = ((Step) currentElem).getNextFromAttribute(); nextExecutionElement = getExecutionElementFromId(peerExecutionElements, nextAttrId); } else if (currentElem instanceof Split) { nextAttrId = ((Split) currentElem).getNextFromAttribute(); nextExecutionElement = getExecutionElementFromId(peerExecutionElements, nextAttrId); } else if (currentElem instanceof Flow) { nextAttrId = ((Flow) currentElem).getNextFromAttribute(); nextExecutionElement = getExecutionElementFromId(peerExecutionElements, nextAttrId); } else if (currentElem instanceof Decision) { // Nothing special to do in this case. } validateElementType(nextExecutionElement); logger.fine("From currentElem = " + currentElem + " , return @next attribute execution element: " + nextExecutionElement); return nextExecutionElement; }
private ExecutionElement getNextExecutionElemFromAttribute(List<ExecutionElement> peerExecutionElements, ExecutionElement currentElem) throws IllegalTransitionException { ExecutionElement nextExecutionElement = null; String nextAttrId = null; if (currentElem instanceof Step) { nextAttrId = ((Step) currentElem).getNextFromAttribute(); nextExecutionElement = getExecutionElementFromId(peerExecutionElements, nextAttrId); } else if (currentElem instanceof Split) { nextAttrId = ((Split) currentElem).getNextFromAttribute(); nextExecutionElement = getExecutionElementFromId(peerExecutionElements, nextAttrId); } else if (currentElem instanceof Flow) { nextAttrId = ((Flow) currentElem).getNextFromAttribute(); nextExecutionElement = getExecutionElementFromId(peerExecutionElements, nextAttrId); } else if (currentElem instanceof Decision) { // Nothing special to do in this case. } validateElementType(nextExecutionElement); logger.fine("From currentElem = " + currentElem + " , return @next attribute execution element: " + nextExecutionElement); return nextExecutionElement; }
private ExecutionElement getNextExecutionElemFromAttribute(List<ExecutionElement> peerExecutionElements, ExecutionElement currentElem) throws IllegalTransitionException { ExecutionElement nextExecutionElement = null; String nextAttrId = null; if (currentElem instanceof Step) { nextAttrId = ((Step) currentElem).getNextFromAttribute(); nextExecutionElement = getExecutionElementFromId(peerExecutionElements, nextAttrId); } else if (currentElem instanceof Split) { nextAttrId = ((Split) currentElem).getNextFromAttribute(); nextExecutionElement = getExecutionElementFromId(peerExecutionElements, nextAttrId); } else if (currentElem instanceof Flow) { nextAttrId = ((Flow) currentElem).getNextFromAttribute(); nextExecutionElement = getExecutionElementFromId(peerExecutionElements, nextAttrId); } else if (currentElem instanceof Decision) { // Nothing special to do in this case. } validateElementType(nextExecutionElement); logger.fine("From currentElem = " + currentElem + " , return @next attribute execution element: " + nextExecutionElement); return nextExecutionElement; }
@Override public Split substituteProperties(final Split split, final Properties submittedProps, final Properties parentProps) { // resolve all the properties used in attributes and update the JAXB model split.setId(this.replaceAllProperties(split.getId(), submittedProps, parentProps)); split.setNextFromAttribute(this.replaceAllProperties(split.getNextFromAttribute(), submittedProps, parentProps)); // Resolve all the properties defined for this step Properties currentProps = parentProps; for (final Flow flow : split.getFlows()) { PropertyResolverFactory.createFlowPropertyResolver(this.isPartitionedStep).substituteProperties(flow, submittedProps, currentProps); } return split; }
@Override public Split substituteProperties(final Split split, final Properties submittedProps, final Properties parentProps) { // resolve all the properties used in attributes and update the JAXB model split.setId(this.replaceAllProperties(split.getId(), submittedProps, parentProps)); split.setNextFromAttribute(this.replaceAllProperties(split.getNextFromAttribute(), submittedProps, parentProps)); // Resolve all the properties defined for this step Properties currentProps = parentProps; for (final Flow flow : split.getFlows()) { PropertyResolverFactory.createFlowPropertyResolver(this.isPartitionedStep).substituteProperties(flow, submittedProps, currentProps); } return split; }
@Override public Split substituteProperties(final Split split, final Properties submittedProps, final Properties parentProps) { // resolve all the properties used in attributes and update the JAXB model split.setId(this.replaceAllProperties(split.getId(), submittedProps, parentProps)); split.setNextFromAttribute(this.replaceAllProperties(split.getNextFromAttribute(), submittedProps, parentProps)); // Resolve all the properties defined for this step Properties currentProps = parentProps; for (final Flow flow : split.getFlows()) { PropertyResolverFactory.createFlowPropertyResolver(this.isPartitionedStep).substituteProperties(flow, submittedProps, currentProps); } return split; }