diff options
author | Patrick Brady <pb071s@att.com> | 2017-04-20 21:10:43 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2017-04-20 21:10:43 +0000 |
commit | b06810bb67667edb0d9d9087cc1f978bda988c87 (patch) | |
tree | 3d5bdba464b3156a4ba24c03aa83897816985171 /appc-dispatcher/appc-workflow-management | |
parent | f061217a2cfe6030cf147c852a4d6d183e7fb2e0 (diff) | |
parent | c9373d8f5809fe650c30832e9409282cb34688f8 (diff) |
Merge "Refactor Status to be immutable"
Diffstat (limited to 'appc-dispatcher/appc-workflow-management')
-rw-r--r-- | appc-dispatcher/appc-workflow-management/appc-workflow-management-core/src/main/java/org/openecomp/appc/workflow/impl/WorkFlowManagerImpl.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/appc-dispatcher/appc-workflow-management/appc-workflow-management-core/src/main/java/org/openecomp/appc/workflow/impl/WorkFlowManagerImpl.java b/appc-dispatcher/appc-workflow-management/appc-workflow-management-core/src/main/java/org/openecomp/appc/workflow/impl/WorkFlowManagerImpl.java index 6b197ef19..4ed575567 100644 --- a/appc-dispatcher/appc-workflow-management/appc-workflow-management-core/src/main/java/org/openecomp/appc/workflow/impl/WorkFlowManagerImpl.java +++ b/appc-dispatcher/appc-workflow-management/appc-workflow-management-core/src/main/java/org/openecomp/appc/workflow/impl/WorkFlowManagerImpl.java @@ -33,6 +33,7 @@ import org.openecomp.appc.configuration.Configuration; import org.openecomp.appc.configuration.ConfigurationFactory; import org.openecomp.appc.domainmodel.lcm.RequestContext; import org.openecomp.appc.domainmodel.lcm.ResponseContext; +import org.openecomp.appc.domainmodel.lcm.Status; import org.openecomp.appc.util.ObjectMapper; import org.openecomp.appc.workflow.WorkFlowManager; import org.openecomp.appc.workflow.objects.WorkflowExistsOutput; @@ -335,9 +336,7 @@ public class WorkFlowManagerImpl implements WorkFlowManager{ * @param responceContext response context which will be store status code and status message */ private void fillStatus(int code, String message, ResponseContext responceContext) { - responceContext.getStatus().setCode(code); - responceContext.getStatus().setMessage(message); + responceContext.setStatus(new Status(code, message)); } - } |