From baf6ff4f604f44062bdf4963aed8591d95bb6389 Mon Sep 17 00:00:00 2001 From: MichaelMorris Date: Tue, 19 Jan 2021 16:04:14 +0000 Subject: Fix error in service substitution Signed-off-by: MichaelMorris Issue-ID: SDC-3440 Change-Id: I3de45ac5f940a3ac24dec2b5520bdf8d297e63c4 --- .../sdc/be/datatypes/elements/ComponentInstanceDataDefinition.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'common-be') diff --git a/common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/ComponentInstanceDataDefinition.java b/common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/ComponentInstanceDataDefinition.java index 4832e8b690..afcc0e6d9f 100644 --- a/common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/ComponentInstanceDataDefinition.java +++ b/common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/ComponentInstanceDataDefinition.java @@ -289,6 +289,10 @@ public class ComponentInstanceDataDefinition extends ToscaDataDefinition { Boolean isProxy = (Boolean) getToscaPresentationValue(JsonPresentationFields.CI_IS_PROXY); return (isProxy != null) ? isProxy : false; } + + public Boolean isServiceSubstitution() { + return getOriginType() == OriginTypeEnum.ServiceSubstitution; + } public void setOriginArchived(Boolean originArchived) { if (originArchived == null) { -- cgit 1.2.3-korg