From 4f224ec1f97bd087f2cf2731ec40c5bd720d3c13 Mon Sep 17 00:00:00 2001 From: malithie Date: Mon, 29 Jul 2024 08:27:20 +0530 Subject: [PATCH] Changed FAILURE to FAILED. --- .../action/execution/ActionExecutorServiceImpl.java | 6 +++--- .../action/execution/model/ActionExecutionStatus.java | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/components/action-mgt/org.wso2.carbon.identity.action.execution/src/main/java/org/wso2/carbon/identity/action/execution/ActionExecutorServiceImpl.java b/components/action-mgt/org.wso2.carbon.identity.action.execution/src/main/java/org/wso2/carbon/identity/action/execution/ActionExecutorServiceImpl.java index 6db6bf866ca..fa20f3c04bc 100644 --- a/components/action-mgt/org.wso2.carbon.identity.action.execution/src/main/java/org/wso2/carbon/identity/action/execution/ActionExecutorServiceImpl.java +++ b/components/action-mgt/org.wso2.carbon.identity.action.execution/src/main/java/org/wso2/carbon/identity/action/execution/ActionExecutorServiceImpl.java @@ -89,11 +89,11 @@ public ActionExecutionStatus execute(ActionType actionType, Map .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); } } @@ -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, diff --git a/components/action-mgt/org.wso2.carbon.identity.action.execution/src/main/java/org/wso2/carbon/identity/action/execution/model/ActionExecutionStatus.java b/components/action-mgt/org.wso2.carbon.identity.action.execution/src/main/java/org/wso2/carbon/identity/action/execution/model/ActionExecutionStatus.java index 4021bce1cef..c659dfa66dc 100644 --- a/components/action-mgt/org.wso2.carbon.identity.action.execution/src/main/java/org/wso2/carbon/identity/action/execution/model/ActionExecutionStatus.java +++ b/components/action-mgt/org.wso2.carbon.identity.action.execution/src/main/java/org/wso2/carbon/identity/action/execution/model/ActionExecutionStatus.java @@ -51,7 +51,7 @@ public Map getResponseContext() { */ public enum Status { SUCCESS, - FAILURE, + FAILED, INCOMPLETE, ERROR }