From 430c93e8cc5f07787b1040f1956942c97e6a6377 Mon Sep 17 00:00:00 2001 From: Jorge Hernandez Date: Thu, 7 Sep 2017 00:25:19 -0500 Subject: Support drl compilation at design/development time Change-Id: I0fe6277f92c0db7f596ff73d81987e2e78b5793e Issue-ID: POLICY-162 Signed-off-by: Jorge Hernandez --- .../src/main/resources/archetype-resources/pom.xml | 18 ++++++++++++++++++ .../src/main/config/dcae.onset.json | 1 + .../src/main/resources/__controlLoopName__.drl | 2 +- 3 files changed, 20 insertions(+), 1 deletion(-) (limited to 'controlloop/templates') diff --git a/controlloop/templates/template.demo.v1.0.0/archetype-cl-legacy/src/main/resources/archetype-resources/pom.xml b/controlloop/templates/template.demo.v1.0.0/archetype-cl-legacy/src/main/resources/archetype-resources/pom.xml index ee5adc80c..9c2634579 100644 --- a/controlloop/templates/template.demo.v1.0.0/archetype-cl-legacy/src/main/resources/archetype-resources/pom.xml +++ b/controlloop/templates/template.demo.v1.0.0/archetype-cl-legacy/src/main/resources/archetype-resources/pom.xml @@ -35,6 +35,17 @@ 1.8 + + + + org.kie + kie-maven-plugin + 6.5.0.Final + true + + + + org.onap.policy.drools-applications @@ -81,5 +92,12 @@ policy-yaml ${dependenciesVersion} + + org.onap.policy.drools-pdp + policy-management + ${dependenciesVersion} + provided + true + diff --git a/controlloop/templates/template.demo.v1.0.0/archetype-cl-legacy/src/main/resources/archetype-resources/src/main/config/dcae.onset.json b/controlloop/templates/template.demo.v1.0.0/archetype-cl-legacy/src/main/resources/archetype-resources/src/main/config/dcae.onset.json index 534ab3b80..d162ed1ba 100644 --- a/controlloop/templates/template.demo.v1.0.0/archetype-cl-legacy/src/main/resources/archetype-resources/src/main/config/dcae.onset.json +++ b/controlloop/templates/template.demo.v1.0.0/archetype-cl-legacy/src/main/resources/archetype-resources/src/main/config/dcae.onset.json @@ -7,6 +7,7 @@ "target_type": "VF", "target": "generic-vnf.vnf-id", "AAI": { + "vserver.is-closed-loop-disabled": "false", "generic-vnf.vnf-id": "fw0001vm001fw001" }, "from": "DCAE", diff --git a/controlloop/templates/template.demo.v1.0.0/archetype-cl-legacy/src/main/resources/archetype-resources/src/main/resources/__controlLoopName__.drl b/controlloop/templates/template.demo.v1.0.0/archetype-cl-legacy/src/main/resources/archetype-resources/src/main/resources/__controlLoopName__.drl index caf72732b..92a432e99 100644 --- a/controlloop/templates/template.demo.v1.0.0/archetype-cl-legacy/src/main/resources/archetype-resources/src/main/resources/__controlLoopName__.drl +++ b/controlloop/templates/template.demo.v1.0.0/archetype-cl-legacy/src/main/resources/archetype-resources/src/main/resources/__controlLoopName__.drl @@ -1,6 +1,6 @@ /*- * ============LICENSE_START======================================================= - * archetype-closed-loop-demo-rules + * ONAP * ================================================================================ * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. * ================================================================================ -- cgit 1.2.3-korg