/** * @param elementName An end transition element name * @return the BatchStatus corresponding to the transition name */ protected static FlowExecutionStatus getBatchStatusFromEndTransitionName(String elementName) { elementName = stripNamespace(elementName); if (STOP_ELE.equals(elementName)) { return FlowExecutionStatus.STOPPED; } else if (END_ELE.equals(elementName)) { return FlowExecutionStatus.COMPLETED; } else if (FAIL_ELE.equals(elementName)) { return FlowExecutionStatus.FAILED; } else { return FlowExecutionStatus.UNKNOWN; } }
/** * @param elementName An end transition element name * @return the BatchStatus corresponding to the transition name */ protected static FlowExecutionStatus getBatchStatusFromEndTransitionName(String elementName) { elementName = stripNamespace(elementName); if (STOP_ELE.equals(elementName)) { return FlowExecutionStatus.STOPPED; } else if (END_ELE.equals(elementName)) { return FlowExecutionStatus.COMPLETED; } else if (FAIL_ELE.equals(elementName)) { return FlowExecutionStatus.FAILED; } else { return FlowExecutionStatus.UNKNOWN; } }
/** * @param elementName An end transition element name * @return the BatchStatus corresponding to the transition name */ protected static FlowExecutionStatus getBatchStatusFromEndTransitionName(String elementName) { elementName = stripNamespace(elementName); if (STOP_ELE.equals(elementName)) { return FlowExecutionStatus.STOPPED; } else if (END_ELE.equals(elementName)) { return FlowExecutionStatus.COMPLETED; } else if (FAIL_ELE.equals(elementName)) { return FlowExecutionStatus.FAILED; } else { return FlowExecutionStatus.UNKNOWN; } }
/** * @param elementName An end transition element name * @return the BatchStatus corresponding to the transition name */ private static FlowExecutionStatus getBatchStatusFromEndTransitionName(String elementName) { elementName = stripNamespace(elementName); if (STOP_ELE.equals(elementName)) { return FlowExecutionStatus.STOPPED; } else if (END_ELE.equals(elementName)) { return FlowExecutionStatus.COMPLETED; } else if (FAIL_ELE.equals(elementName)) { return FlowExecutionStatus.FAILED; } else { return FlowExecutionStatus.UNKNOWN; } }
/** * @param elementName An end transition element name * @return the BatchStatus corresponding to the transition name */ protected static FlowExecutionStatus getBatchStatusFromEndTransitionName(String elementName) { elementName = stripNamespace(elementName); if (STOP_ELE.equals(elementName)) { return FlowExecutionStatus.STOPPED; } else if (END_ELE.equals(elementName)) { return FlowExecutionStatus.COMPLETED; } else if (FAIL_ELE.equals(elementName)) { return FlowExecutionStatus.FAILED; } else { return FlowExecutionStatus.UNKNOWN; } }