summaryrefslogtreecommitdiffstats
path: root/controlloop/common/model-impl/events/src
diff options
context:
space:
mode:
Diffstat (limited to 'controlloop/common/model-impl/events/src')
-rw-r--r--controlloop/common/model-impl/events/src/main/java/org/onap/policy/controlloop/ControlLoopEvent.java16
1 files changed, 14 insertions, 2 deletions
diff --git a/controlloop/common/model-impl/events/src/main/java/org/onap/policy/controlloop/ControlLoopEvent.java b/controlloop/common/model-impl/events/src/main/java/org/onap/policy/controlloop/ControlLoopEvent.java
index eab04e22e..2753ececc 100644
--- a/controlloop/common/model-impl/events/src/main/java/org/onap/policy/controlloop/ControlLoopEvent.java
+++ b/controlloop/common/model-impl/events/src/main/java/org/onap/policy/controlloop/ControlLoopEvent.java
@@ -20,11 +20,11 @@
package org.onap.policy.controlloop;
-import com.google.gson.annotations.SerializedName;
-
import java.io.Serializable;
import java.util.UUID;
+import com.google.gson.annotations.SerializedName;
+
public abstract class ControlLoopEvent implements Serializable {
private static final long serialVersionUID = 2391252138583119195L;
@@ -62,6 +62,9 @@ public abstract class ControlLoopEvent implements Serializable {
@SerializedName("closedLoopEventStatus")
private ControlLoopEventStatus closedLoopEventStatus;
+ @SerializedName("payload")
+ private String payload;
+
public ControlLoopEvent() {
}
@@ -85,6 +88,7 @@ public abstract class ControlLoopEvent implements Serializable {
this.policyName = event.policyName;
this.policyVersion = event.policyVersion;
this.closedLoopEventStatus = event.closedLoopEventStatus;
+ this.payload = event.payload;
}
public boolean isEventStatusValid() {
@@ -178,4 +182,12 @@ public abstract class ControlLoopEvent implements Serializable {
public void setClosedLoopEventStatus(ControlLoopEventStatus closedLoopEventStatus) {
this.closedLoopEventStatus = closedLoopEventStatus;
}
+
+ public String getPayload() {
+ return payload;
+ }
+
+ public void setPayload(String payload) {
+ this.payload = payload;
+ }
}