Update Resource Bean 22/114122/1
authorBoslet, Cory <cory.boslet@att.com>
Wed, 21 Oct 2020 14:53:01 +0000 (10:53 -0400)
committerBenjamin, Max (mb388a) <mb388a@att.com>
Wed, 21 Oct 2020 14:53:01 +0000 (10:53 -0400)
Add original service resource id field

Issue-ID: SO-3324
Signed-off-by: Benjamin, Max (mb388a) <mb388a@att.com>
Change-Id: I73703b50cc61669eb40b1516f7ce90639ca87ba2

bpmn/MSOCoreBPMN/src/main/java/org/onap/so/bpmn/core/domain/Resource.java

index 62a2e93..57b8c13 100644 (file)
@@ -30,6 +30,7 @@ public abstract class Resource extends JsonWrapper implements Serializable {
 
     private static final long serialVersionUID = 1L;
     private String resourceId; // TODO name this field just id instead, should be the id of the object as it is in aai
+    private String originalResourceId;
     protected ResourceType resourceType; // Enum of vnf or network or allotted resource
     protected ModelInfo modelInfo;
     private long concurrencyCounter = 1L;
@@ -52,6 +53,14 @@ public abstract class Resource extends JsonWrapper implements Serializable {
         this.resourceId = resourceId;
     }
 
+    public String getOriginalResourceId() {
+        return originalResourceId;
+    }
+
+    public void setOriginalResourceId(String originalResourceId) {
+        this.originalResourceId = originalResourceId;
+    }
+
     public ModelInfo getModelInfo() {
         return modelInfo;
     }