aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/main/java/org/onap/nbi/apis/serviceorder/model/consumer/RequestInfo.java19
-rw-r--r--src/main/java/org/onap/nbi/apis/serviceorder/workflow/SOTaskProcessor.java1
2 files changed, 18 insertions, 2 deletions
diff --git a/src/main/java/org/onap/nbi/apis/serviceorder/model/consumer/RequestInfo.java b/src/main/java/org/onap/nbi/apis/serviceorder/model/consumer/RequestInfo.java
index 6d3d5d5..a80b1ee 100644
--- a/src/main/java/org/onap/nbi/apis/serviceorder/model/consumer/RequestInfo.java
+++ b/src/main/java/org/onap/nbi/apis/serviceorder/model/consumer/RequestInfo.java
@@ -25,6 +25,8 @@ public class RequestInfo {
private boolean suppressRollback;
+ private String requestorId;
+
public String getInstanceName() {
return instanceName;
}
@@ -57,9 +59,22 @@ public class RequestInfo {
this.suppressRollback = suppressRollback;
}
+ public String getRequestorId() {
+ return requestorId;
+ }
+
+ public void setRequestorId(String requestorId) {
+ this.requestorId = requestorId;
+ }
+
@Override
public String toString() {
- return "RequestInfo{" + "instanceName='" + instanceName + '\'' + ", productFamilyId='" + productFamilyId + '\''
- + ", source='" + source + '\'' + ", suppressRollback=" + suppressRollback + '}';
+ return "RequestInfo{" +
+ "instanceName='" + instanceName + '\'' +
+ ", productFamilyId='" + productFamilyId + '\'' +
+ ", source='" + source + '\'' +
+ ", suppressRollback=" + suppressRollback +
+ ", requestorId='" + requestorId + '\'' +
+ '}';
}
}
diff --git a/src/main/java/org/onap/nbi/apis/serviceorder/workflow/SOTaskProcessor.java b/src/main/java/org/onap/nbi/apis/serviceorder/workflow/SOTaskProcessor.java
index 71f1320..94d5553 100644
--- a/src/main/java/org/onap/nbi/apis/serviceorder/workflow/SOTaskProcessor.java
+++ b/src/main/java/org/onap/nbi/apis/serviceorder/workflow/SOTaskProcessor.java
@@ -254,6 +254,7 @@ public class SOTaskProcessor {
requestInfo.setInstanceName(orderItem.getService().getName());
requestInfo.setSource("VID");
requestInfo.setSuppressRollback(false);
+ requestInfo.setRequestorId("NBI");
requestDetails.setRequestInfo(requestInfo);
RequestParameters requestParameters = new RequestParameters();