summaryrefslogtreecommitdiffstats
path: root/controlloop/m2
diff options
context:
space:
mode:
authorPamela Dragosh <pdragosh@research.att.com>2020-06-02 17:29:10 +0000
committerGerrit Code Review <gerrit@onap.org>2020-06-02 17:29:10 +0000
commit442a2a8dd64c724363433e6e4794eb19da66314b (patch)
tree9ff731f415681a25ad9cd9f99cc6bba3a51c1c92 /controlloop/m2
parent14cf31576f23ca3f4d1dc2769ae65323652d5944 (diff)
parent1e39c988604c9ffb8efc38ef3cf4d635b202c7b9 (diff)
Merge "Use OperationsHistory from models"
Diffstat (limited to 'controlloop/m2')
-rw-r--r--controlloop/m2/guard/pom.xml6
-rw-r--r--controlloop/m2/guard/src/main/java/org/onap/policy/guard/GuardContext.java8
2 files changed, 5 insertions, 9 deletions
diff --git a/controlloop/m2/guard/pom.xml b/controlloop/m2/guard/pom.xml
index d32d97902..1683bbb20 100644
--- a/controlloop/m2/guard/pom.xml
+++ b/controlloop/m2/guard/pom.xml
@@ -58,9 +58,9 @@
</dependency>
<dependency>
- <groupId>org.onap.policy.drools-applications.controlloop.common</groupId>
- <artifactId>database</artifactId>
- <version>${project.version}</version>
+ <groupId>org.onap.policy.models.policy-models-interactions.model-impl</groupId>
+ <artifactId>guard</artifactId>
+ <version>${policy.models.version}</version>
</dependency>
<dependency>
diff --git a/controlloop/m2/guard/src/main/java/org/onap/policy/guard/GuardContext.java b/controlloop/m2/guard/src/main/java/org/onap/policy/guard/GuardContext.java
index d0d1b831f..a0d159150 100644
--- a/controlloop/m2/guard/src/main/java/org/onap/policy/guard/GuardContext.java
+++ b/controlloop/m2/guard/src/main/java/org/onap/policy/guard/GuardContext.java
@@ -28,23 +28,19 @@ import java.util.HashMap;
import java.util.Properties;
import java.util.UUID;
import java.util.function.Supplier;
-
import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;
-
import org.drools.core.WorkingMemory;
-
-import org.onap.policy.database.operationshistory.Dbao;
import org.onap.policy.drools.controller.DroolsController;
import org.onap.policy.drools.core.PolicyContainer;
import org.onap.policy.drools.core.PolicySession;
import org.onap.policy.drools.system.PolicyController;
import org.onap.policy.drools.system.PolicyControllerConstants;
import org.onap.policy.drools.system.PolicyEngineConstants;
+import org.onap.policy.guard.OperationsHistory;
import org.onap.policy.guard.Util;
import org.onap.policy.util.DroolsSessionCommonSerializable;
-
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@@ -317,7 +313,7 @@ public class GuardContext implements Serializable {
em = createEntityManager();
// create the new DB table entry
- Dbao newEntry = new Dbao();
+ OperationsHistory newEntry = new OperationsHistory();
// populate the new DB table entry
newEntry.setClosedLoopName(closedLoopControlName);