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; }
public static boolean equals(Step step1, Step step2) { if(step1 == null && step2 == null) return true; if(step1 == null || step2 == null) return false; //TODO: finish with remaining fields return equals(step1.getChunk(), step2.getChunk()) && equals(step1.getListeners(), step2.getListeners()) && equals(step1.getProperties(), step2.getProperties()) && nullSafeEquals(step1.getAllowStartIfComplete(), step2.getAllowStartIfComplete()) && nullSafeEquals(step1.getNextFromAttribute(), step2.getNextFromAttribute()); }
public static boolean equals(Step step1, Step step2) { if(step1 == null && step2 == null) return true; if(step1 == null || step2 == null) return false; //TODO: finish with remaining fields return equals(step1.getChunk(), step2.getChunk()) && equals(step1.getListeners(), step2.getListeners()) && equals(step1.getProperties(), step2.getProperties()) && nullSafeEquals(step1.getAllowStartIfComplete(), step2.getAllowStartIfComplete()) && nullSafeEquals(step1.getNextFromAttribute(), step2.getNextFromAttribute()); }
public static boolean equals(Step step1, Step step2) { if(step1 == null && step2 == null) return true; if(step1 == null || step2 == null) return false; //TODO: finish with remaining fields return equals(step1.getChunk(), step2.getChunk()) && equals(step1.getListeners(), step2.getListeners()) && equals(step1.getProperties(), step2.getProperties()) && nullSafeEquals(step1.getAllowStartIfComplete(), step2.getAllowStartIfComplete()) && nullSafeEquals(step1.getNextFromAttribute(), step2.getNextFromAttribute()); }
step.setNextFromAttribute(this.replaceAllProperties(step.getNextFromAttribute(), submittedProps, parentProps)); step.setStartLimit(this.replaceAllProperties(step.getStartLimit(), submittedProps, parentProps));
step.setNextFromAttribute(this.replaceAllProperties(step.getNextFromAttribute(), submittedProps, parentProps)); step.setStartLimit(this.replaceAllProperties(step.getStartLimit(), submittedProps, parentProps));
step.setNextFromAttribute(this.replaceAllProperties(step.getNextFromAttribute(), submittedProps, parentProps)); step.setStartLimit(this.replaceAllProperties(step.getStartLimit(), submittedProps, parentProps));