/** * Find a BatchStatus that matches the beginning of the given value. If no * match is found, return COMPLETED as the default because has is low * precedence. * * @param value a string representing a status * @return a BatchStatus */ public static BatchStatus match(String value) { for (BatchStatus status : values()) { if (value.startsWith(status.toString())) { return status; } } // Default match should be the lowest priority return COMPLETED; } }
/** * @param status {@link FlowExecutionStatus} to convert. * @return A {@link BatchStatus} appropriate for the {@link FlowExecutionStatus} provided */ protected BatchStatus findBatchStatus(FlowExecutionStatus status) { for (BatchStatus batchStatus : BatchStatus.values()) { if (status.getName().startsWith(batchStatus.toString())) { return batchStatus; } } return BatchStatus.UNKNOWN; }
/** * Find a BatchStatus that matches the beginning of the given value. If no * match is found, return COMPLETED as the default because has is low * precedence. * * @param value a string representing a status * @return a BatchStatus */ public static BatchStatus match(String value) { for (BatchStatus status : values()) { if (value.startsWith(status.toString())) { return status; } } // Default match should be the lowest priority return COMPLETED; } }
/** * Find a BatchStatus that matches the beginning of the given value. If no * match is found, return COMPLETED as the default because has is low * precedence. * * @param value a string representing a status * @return a BatchStatus */ public static BatchStatus match(String value) { for (BatchStatus status : values()) { if (value.startsWith(status.toString())) { return status; } } // Default match should be the lowest priority return COMPLETED; } }
/** * Find a BatchStatus that matches the beginning of the given value. If no * match is found, return COMPLETED as the default because has is low * precedence. * * @param value a string representing a status * @return a BatchStatus */ public static BatchStatus match(String value) { for (BatchStatus status : values()) { if (value.startsWith(status.toString())) { return status; } } // Default match should be the lowest priority return COMPLETED; } }
/** * Find a BatchStatus that matches the beginning of the given value. If no * match is found, return COMPLETED as the default because has is low * precedence. * * @param value a string representing a status * @return a BatchStatus */ public static BatchStatus match(String value) { for (BatchStatus status : values()) { if (value.startsWith(status.toString())) { return status; } } // Default match should be the lowest priority return COMPLETED; } }
/** * @param status {@link FlowExecutionStatus} to convert. * @return A {@link BatchStatus} appropriate for the {@link FlowExecutionStatus} provided */ protected BatchStatus findBatchStatus(FlowExecutionStatus status) { for (BatchStatus batchStatus : BatchStatus.values()) { if (status.getName().startsWith(batchStatus.toString())) { return batchStatus; } } return BatchStatus.UNKNOWN; }
/** * @param status * @return */ protected BatchStatus findBatchStatus(FlowExecutionStatus status) { for (BatchStatus batchStatus : BatchStatus.values()) { if (status.getName().startsWith(batchStatus.toString())) { return batchStatus; } } return BatchStatus.UNKNOWN; }
/** * @param status * @return */ private BatchStatus findBatchStatus(FlowExecutionStatus status) { for (BatchStatus batchStatus : BatchStatus.values()) { if (status.getName().startsWith(batchStatus.toString())) { return batchStatus; } } return BatchStatus.UNKNOWN; }
/** * @param status {@link FlowExecutionStatus} to convert. * @return A {@link BatchStatus} appropriate for the {@link FlowExecutionStatus} provided */ protected BatchStatus findBatchStatus(FlowExecutionStatus status) { for (BatchStatus batchStatus : BatchStatus.values()) { if (status.getName().startsWith(batchStatus.toString())) { return batchStatus; } } return BatchStatus.UNKNOWN; }