Skip to content

Commit

Permalink
NIFI-11259 Used asAllowableValue() from Failure Strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
exceptionfactory committed Jun 24, 2024
1 parent 24925ed commit b249739
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -406,8 +406,8 @@ private void publishFlowFiles(final ProcessContext context, final ProcessSession
}

private void routeFailureStrategy(final ProcessContext context, final ProcessSession session, final List<FlowFile> flowFiles) {
final String strategy = context.getProperty(FAILURE_STRATEGY).getValue();
if (FailureStrategy.ROLLBACK.getValue().equals(strategy)) {
final FailureStrategy strategy = context.getProperty(FAILURE_STRATEGY).asAllowableValue(FailureStrategy.class);
if (FailureStrategy.ROLLBACK == strategy) {
session.rollback();
context.yield();
} else {
Expand Down

0 comments on commit b249739

Please sign in to comment.