Skip to content

Commit

Permalink
Changed FAILURE to FAILED.
Browse files Browse the repository at this point in the history
  • Loading branch information
malithie committed Jul 29, 2024
1 parent 20c14a8 commit 4f224ec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,11 @@ public ActionExecutionStatus execute(ActionType actionType, Map<String, Object>
.filter(activeAction -> activeAction.getStatus() == Action.Status.ACTIVE)
.map(activeAction -> executeAction(activeAction, actionRequest, eventContext,
actionExecutionResponseProcessor))
.orElse(new ActionExecutionStatus(ActionExecutionStatus.Status.FAILURE, eventContext));
.orElse(new ActionExecutionStatus(ActionExecutionStatus.Status.FAILED, eventContext));
} catch (ActionExecutionRuntimeException e) {
// todo: add to diagnostics
LOG.error("Skip executing actions for action type: " + actionType.name() + ". Error: " + e.getMessage(), e);
return new ActionExecutionStatus(ActionExecutionStatus.Status.FAILURE, eventContext);
return new ActionExecutionStatus(ActionExecutionStatus.Status.FAILED, eventContext);

}
}
Expand Down Expand Up @@ -224,7 +224,7 @@ private ActionExecutionStatus processActionResponse(Action action,
logErrorResponse(action, actionInvocationResponse);
}

return new ActionExecutionStatus(ActionExecutionStatus.Status.FAILURE, eventContext);
return new ActionExecutionStatus(ActionExecutionStatus.Status.FAILED, eventContext);
}

private ActionExecutionStatus processSuccessResponse(Action action,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public Map<String, Object> getResponseContext() {
*/
public enum Status {
SUCCESS,
FAILURE,
FAILED,
INCOMPLETE,
ERROR
}
Expand Down

0 comments on commit 4f224ec

Please sign in to comment.