policy/drools-applications.git
6 years agoFix New Sonar Blocker for Drools-Applications 85/9185/1
Mike Babinski [Tue, 29 Aug 2017 18:05:39 +0000 (18:05 +0000)]
Fix New Sonar Blocker for Drools-Applications

Add null checks to stop possible null pointer exceptions.

Issue-ID: POLICY-111
Change-Id: Idafb078edf984712e5d5a4d54763f2723e17c09f
Signed-off-by: Mike Babinski <mb1915@att.com>
6 years agoRestored global ControlLoopLogger 19/9119/1
Magnusen, Drew (dm741q) [Tue, 29 Aug 2017 13:56:58 +0000 (08:56 -0500)]
Restored global ControlLoopLogger

Restored previously deleted global ControlLoopLogger which
is loaded into the kieSession for the test.

Issued-ID: POLICY-197
Change-Id: I55e9a3a0c2627ecbecbef8059e70d672e6157fdc
Signed-off-by: Magnusen, Drew (dm741q) <dm741q@att.com>
6 years agoMerge "Removal of sys.out/err with logger messages"
Jorge Hernandez [Mon, 28 Aug 2017 22:16:36 +0000 (22:16 +0000)]
Merge "Removal of sys.out/err with logger messages"

6 years agoRemoval of sys.out/err with logger messages 55/8655/5
Magnusen, Drew (dm741q) [Thu, 24 Aug 2017 16:37:46 +0000 (11:37 -0500)]
Removal of sys.out/err with logger messages

Removed any use of System.out.println or System.err.println
and replaced with relevant logger statements.

Issue-ID: POLICY-176
Change-Id: I91513267635bfb2a34f2a9650c48f367d53fc842
Signed-off-by: Magnusen, Drew (dm741q) <dm741q@att.com>
6 years agoFix JUnit Test for ControlLoops 35/8935/2
daniel [Mon, 28 Aug 2017 14:13:31 +0000 (09:13 -0500)]
Fix JUnit Test for ControlLoops

Fixed the test case by using getters and setters for Policy objects
in the drl. Added gson dependency in the pom to fix gson runtime errors.

Fixed dependencies in template.demo pom to add vfc.

The drl was having compilation errors in the guard permitted
rule due to the operation request object not being casted
into a VFCRequest when being passed into the VFCManager.

Issue-ID: POLICY-194
Change-Id: Id71c74ad9727ad942a683f63a0dfad3f22b6376b
Signed-off-by: Daniel Cruz <dc443y@att.com>
6 years agoFix Sonar Blocker for Drools-Applications 37/8837/2
Mike Babinski [Fri, 25 Aug 2017 20:56:10 +0000 (20:56 +0000)]
Fix Sonar Blocker for Drools-Applications

Add only the null check for pipResponse.

Issue-ID: POLICY-111
Change-Id: I2721c759f27264ce164110a19ea8c649b74869df
Signed-off-by: Mike Babinski <mb1915@att.com>
6 years agoAdd VFC integration code 17/8517/3
Ritu Sood [Wed, 23 Aug 2017 14:52:20 +0000 (07:52 -0700)]
Add VFC integration code

This patch adds VFC Actor code and updates drool template for VFC.
This is WIP patch. There are two opens for this patch that are
still in discussion

1) AA&I fields in onset event
2) VFC URL, username and password

Issue-ID: POLICY-57
Change-Id: Idc1d1fada295fa1c2e563ba37dd359f7b5c59f87
Signed-off-by: Ritu Sood <ritu.sood@intel.com>
6 years agoFix Sonar Blockers for Drools-Applications 39/8239/4
Mike Babinski [Tue, 22 Aug 2017 04:40:23 +0000 (04:40 +0000)]
Fix Sonar Blockers for Drools-Applications

Add null checks to protect against potential null exceptions.

Issue-ID: POLICY-111
Change-Id: Ib079d1b48a6858332ea3eaa0e75a991f518a0f9a
Signed-off-by: Mike Babinski <mb1915@att.com>
6 years agoMerge "Code cleanup to resolve critical sonar issues"
Pamela Dragosh [Sat, 19 Aug 2017 01:07:49 +0000 (01:07 +0000)]
Merge "Code cleanup to resolve critical sonar issues"

6 years agoCode cleanup to resolve critical sonar issues 65/7765/9
Magnusen, Drew (dm741q) [Wed, 16 Aug 2017 20:21:15 +0000 (15:21 -0500)]
Code cleanup to resolve critical sonar issues

Code cleanup mostly involed directing the output of exception messages
to the correct logger stream.

Issue-ID: [POLICY-115]
Change-Id: I2042bac3d3b0991a2ebed33421a73f1aa300c7c1
Signed-off-by: Magnusen, Drew (dm741q) <dm741q@att.com>
6 years agoMerge "installation improvements and renaming archetype"
Jorge Hernandez [Thu, 17 Aug 2017 21:11:59 +0000 (21:11 +0000)]
Merge "installation improvements and renaming archetype"

6 years agoinstallation improvements and renaming archetype 23/7923/1
Jorge Hernandez [Thu, 17 Aug 2017 19:46:36 +0000 (14:46 -0500)]
installation improvements and renaming archetype

Two changes:
- remove hardcoding of the DMaaP hosts, and DCAE topic to
  make it configurable.
- rename archetype to better name.

Change-Id: Ic50b9d1f06a138230c76cc6c50ca8072dc5da148
Issue-ID: POLICY-159
Signed-off-by: Jorge Hernandez <jh1730@att.com>
6 years agoRemove MojoHaus Maven plug-in from pom file 77/7777/1
Temoc Rodriguez [Wed, 16 Aug 2017 23:10:55 +0000 (16:10 -0700)]
Remove MojoHaus Maven plug-in from pom file

Remove MojoHaus Maven plug-in from main pom.xml file.

Change-Id: Ic336be3101860830010d1a395dd402771de85e88
Issue-ID: POLICY-116
Signed-off-by: Temoc Rodriguez <cr056n@att.com>
6 years agoMerge "Remove eclipse warning for duplicate version"
Jorge Hernandez [Wed, 16 Aug 2017 18:49:35 +0000 (18:49 +0000)]
Merge "Remove eclipse warning for duplicate version"

6 years agoPolicy-yaml changes 13/7613/3
Tarun Tej Velaga [Tue, 15 Aug 2017 13:20:02 +0000 (13:20 +0000)]
Policy-yaml changes

Changes to Policy-yaml and sdc projects based on changes from policy/engine.

Issue-Id: POLICY-88
Change-Id: Ic1a58f00029b9a66db6980fc7732a2ac57390229
Signed-off-by: Tarun Tej Velaga <tt3868@att.com>
6 years agoRemove eclipse warning for duplicate version 99/7599/1
Pamela Dragosh [Tue, 15 Aug 2017 13:24:47 +0000 (09:24 -0400)]
Remove eclipse warning for duplicate version

Duplicating managed version for maven-surefire-plugin 2.19.1

Issue-Id: POLICY-168
Change-Id: Ie48c2470e8d3938fc75049a867c32add9a4001d6
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
6 years agoRemove eclipse checkstyle warnings 65/7465/1
Pamela Dragosh [Mon, 14 Aug 2017 17:41:44 +0000 (13:41 -0400)]
Remove eclipse checkstyle warnings

Add this should remove Eclipse warnings:
Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-checkstyle-plugin:2.17:check (execution: check-style, phase: process-sources)

Issue-Id: POLICY-166
Change-Id: Id0a4c0070f6190cd874a71b264f21ea16b0b583e
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
6 years agoMerge "move packages build + tweaking pom.xml"
Pamela Dragosh [Wed, 9 Aug 2017 11:36:52 +0000 (11:36 +0000)]
Merge "move packages build + tweaking pom.xml"

6 years agomove packages build + tweaking pom.xml 27/7027/1
Jorge Hernandez [Tue, 8 Aug 2017 20:09:08 +0000 (15:09 -0500)]
move packages build + tweaking pom.xml

Change-Id: Iac032aa8f379cc8d614ec7913b41a68cbda9674d
Issue-ID: POLICY-162
Signed-off-by: Jorge Hernandez <jh1730@att.com>
6 years ago[POLICY-150] integration with oparent 93/6593/1
Guo Ruijing [Thu, 3 Aug 2017 10:32:01 +0000 (10:32 +0000)]
[POLICY-150] integration with oparent

Change-Id: I072b7dadb370f7065ae4bf39192fc73bbbb9682b
Signed-off-by: Guo Ruijing <ruijing.guo@intel.com>
6 years agoMerge "[POLICY-91] POM dependencies cleanup"
Jorge Hernandez [Thu, 27 Jul 2017 00:16:41 +0000 (00:16 +0000)]
Merge "[POLICY-91] POM dependencies cleanup"

6 years ago[POLICY-91] POM dependencies cleanup 89/6189/9
Gao, Chenfei (cg287m) [Mon, 24 Jul 2017 19:41:27 +0000 (15:41 -0400)]
[POLICY-91] POM dependencies cleanup

Change-Id: Idfc19a978be26e1dfa85736fea5ffecf6b298446
Signed-off-by: Gao, Chenfei (cg287m) <cgao@research.att.com>
6 years ago[POLICY-106] Removed unused function in the Guard project 43/6243/1
Michael Borokhovich [Tue, 25 Jul 2017 21:14:27 +0000 (17:14 -0400)]
[POLICY-106] Removed unused function in the Guard project

Change-Id: I4d19514525142c0b688f4811b5b92d0767a7d8bd
Signed-off-by: Michael Borokhovich <michael@research.att.com>
6 years ago[POLICY-110] Adding use case tests. 09/6209/1
Pamela Dragosh [Tue, 25 Jul 2017 13:50:22 +0000 (09:50 -0400)]
[POLICY-110] Adding use case tests.

Change-Id: Idac15a4678faf108dea6c12628b3f5ea351a8a17
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
6 years ago[POLICY-76] Remove/rename ATT internal stuffs 51/6151/3
Gao, Chenfei (cg287m) [Fri, 21 Jul 2017 21:03:44 +0000 (17:03 -0400)]
[POLICY-76] Remove/rename ATT internal stuffs

Change-Id: I251bd2c4f6852a563a4899024d138ebad6c52999
Signed-off-by: Gao, Chenfei (cg287m) <cgao@research.att.com>
6 years ago[POLICY-76] Remove/rename ATT internal stuffs 23/6123/1
Gao, Chenfei (cg287m) [Thu, 20 Jul 2017 20:45:26 +0000 (16:45 -0400)]
[POLICY-76] Remove/rename ATT internal stuffs

Change-Id: I3ec4fa22e22e9fccf4b6783b3bc8c92da25e181f
Signed-off-by: Gao, Chenfei (cg287m) <cgao@research.att.com>
6 years ago[POLICY-80] Adding the Policy Guard features 97/6097/4
Michael Borokhovich [Thu, 20 Jul 2017 13:53:57 +0000 (09:53 -0400)]
[POLICY-80] Adding the Policy Guard features

Two Policy Guard features added: Frequency-limiter and Blacklist.

Change-Id: I48184ab0ae9760c9ea7594cd7346b456aa964d48
Signed-off-by: Michael Borokhovich <michael@research.att.com>
6 years ago[POLICY-22] Update vFW+vDN filters to onap package 21/5821/1
Jorge Hernandez [Fri, 14 Jul 2017 18:38:57 +0000 (13:38 -0500)]
[POLICY-22] Update vFW+vDN filters to onap package

Change-Id: Ied53cb0454cb1669184c55a444233f4710870b7a
Signed-off-by: Jorge Hernandez <jh1730@att.com>
6 years ago[POLICY-22] gitignore autogened files 87/5787/1
Gao, Chenfei (cg287m) [Thu, 13 Jul 2017 14:39:06 +0000 (10:39 -0400)]
[POLICY-22] gitignore autogened files

Change-Id: I9777f3cc8ee61e6a55dba94bf455ff367814f762
Signed-off-by: Gao, Chenfei (cg287m) <cgao@research.att.com>
6 years ago[POLICY-22] Reorganizing drools-apps 99/5199/2
Gao, Chenfei (cg287m) [Thu, 22 Jun 2017 18:48:41 +0000 (14:48 -0400)]
[POLICY-22] Reorganizing drools-apps

Change-Id: I5f9bb3908f8d55c466dd847ae5e01a424e9ba364
Signed-off-by: Gao, Chenfei (cg287m) <chenfei.gao11@gmail.com>
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
7 years ago[POLICY-11] Sample Query with variable arguments 73/4073/1
Jorge Hernandez [Wed, 10 May 2017 05:07:39 +0000 (00:07 -0500)]
[POLICY-11] Sample Query with variable arguments

The sample drl query can be used in conjuction with the
REST API to externally retrieve/retract objects in the
KieSession working memory.

Change-Id: Ia6ca683988a0181a4846b57b0decca4668e74889
Signed-off-by: Jorge Hernandez <jh1730@att.com>
7 years ago[POLICY-11] remove redundant queries in drl 21/3921/1
Jorge Hernandez [Fri, 5 May 2017 14:55:17 +0000 (09:55 -0500)]
[POLICY-11] remove redundant queries in drl

Change-Id: I57d899ed497d664a54fef3039549cf231827f6c4
Signed-off-by: Jorge Hernandez <jh1730@att.com>
7 years ago[POLICY-11] Archetype based testing updates 17/3917/1
Jorge Hernandez [Fri, 5 May 2017 14:47:07 +0000 (09:47 -0500)]
[POLICY-11] Archetype based testing updates

1. Support for basic queries.
2. Updates to 1.1.0-SNAPSHOT

Change-Id: If68709177ae020ae7aabb1a33eed8ef5bd00a4ab
Signed-off-by: Jorge Hernandez <jh1730@att.com>
7 years ago[POLICY-10] remove external repo 49/3849/1
Pamela Dragosh [Wed, 3 May 2017 13:23:57 +0000 (09:23 -0400)]
[POLICY-10] remove external repo

Change-Id: I5f75433a32d2c7940e0bca6e47e02d6c209a7eee
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
7 years agoChange name to show Policy Engine for sonar. 51/3751/1
Pamela Dragosh [Fri, 28 Apr 2017 14:48:22 +0000 (10:48 -0400)]
Change name to show Policy Engine for sonar.

Change-Id: Ib9160a0a1fa6c2f25f18cdb2591a86ca509df0b6
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
7 years agoAllow push on custom repo 77/3377/1
Anaël Closson [Wed, 12 Apr 2017 10:29:31 +0000 (12:29 +0200)]
Allow push on custom repo

Current configuration doesn't give the possibility to fully change
where the artifacts should be pushed. This blocks the possibility
to push artifacts to a custom repository outside of the LF

Change-Id: I2ce9df66b1ed7a46f9b200c21edeef7e249bb99a
Signed-off-by: Anaël Closson <ac2550@intl.att.com>
7 years agoadding Javadoc 47/3147/1
Pamela Dragosh [Fri, 7 Apr 2017 13:02:32 +0000 (09:02 -0400)]
adding Javadoc

Change-Id: Idd342413a7656accab9ab7751cc57392832eb8a2
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
7 years agoupdate to ONAP 39/2739/1
Pamela Dragosh [Thu, 30 Mar 2017 13:42:15 +0000 (09:42 -0400)]
update to ONAP

Change-Id: I07068a73c3580b65284b0d367d2d6e9d5da8f097
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
7 years agoAdding instructions for archetype 21/2221/2
Pamela Dragosh [Thu, 16 Mar 2017 18:27:26 +0000 (14:27 -0400)]
Adding instructions for archetype

Change-Id: I376d922c5d62fa957cc7c1fef945e755a3987d24
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
7 years agoupdated README 19/2219/1
Pamela Dragosh [Thu, 16 Mar 2017 18:13:43 +0000 (14:13 -0400)]
updated README

Change-Id: I92de11ef15342d15c064da9028b515d7c7fc4454
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
7 years agofix version.properties to 1.1.0 73/2173/1
Pamela Dragosh [Wed, 15 Mar 2017 16:13:30 +0000 (12:13 -0400)]
fix version.properties to 1.1.0

Change-Id: Ia528b66a3d3bb0dae85c21b9198671a9f3612ee7
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
7 years agocherry 42ab38f051fa30e48c36c03e8983904bfaa60256 45/2145/1
Pamela Dragosh [Tue, 14 Mar 2017 22:17:28 +0000 (18:17 -0400)]
cherry 42ab38f051fa30e48c36c03e8983904bfaa60256

Change-Id: I4bace6eb9fd928183758dec8b6cd9e7c52d09d24
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
7 years agov1.1.0-SNAPSHOT 21/2021/1
Pamela Dragosh [Fri, 10 Mar 2017 20:43:17 +0000 (15:43 -0500)]
v1.1.0-SNAPSHOT

Change-Id: Id7f5651a77d96d2fe2ff64c6d7ab1463a5694b67
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
7 years agoIncrease timeout waiting for MSO 45/1645/1
Pamela Dragosh [Fri, 3 Mar 2017 19:11:34 +0000 (14:11 -0500)]
Increase timeout waiting for MSO

Change-Id: I63a76123bdcbf9cc70d5f0127ebd559225d2f573
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
7 years agoneed to set compiler version 29/1329/1
Pamela Dragosh [Thu, 23 Feb 2017 18:24:41 +0000 (13:24 -0500)]
need to set compiler version

Change-Id: I8643dec9412dd0a17bfbe9ddff4196dfb837d237
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
7 years agoremove mvn warning duplicate groupId 73/1273/1
Pamela Dragosh [Thu, 23 Feb 2017 11:27:44 +0000 (06:27 -0500)]
remove mvn warning duplicate groupId

Change-Id: Id61dd3c74d314b62781a463338a446d7d91afa78
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
7 years agoadding to gitignore 41/1241/1
Pamela Dragosh [Wed, 22 Feb 2017 20:10:28 +0000 (15:10 -0500)]
adding to gitignore

Change-Id: Idcb1989df7435a9e26c2bdf337a356108b390795
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
7 years agovDNS fix AAI 81/1081/1
Pamela Dragosh [Tue, 21 Feb 2017 13:38:58 +0000 (08:38 -0500)]
vDNS fix AAI

Change-Id: I27fc33c31498483ee3ee453aed063ea7489f91d9
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
7 years agoadding sonatype and deploy plugins 67/867/1
Pamela Dragosh [Mon, 20 Feb 2017 00:27:26 +0000 (19:27 -0500)]
adding sonatype and deploy plugins

Change-Id: Idd658056dd8c019427a4689b9b40d9fc94208593
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
7 years agoadded repo and distribution 59/559/1
Pamela Dragosh [Thu, 16 Feb 2017 18:27:42 +0000 (13:27 -0500)]
added repo and distribution

Change-Id: I9ae96a243460d83ee01f54637dd9f89d94148d88
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
7 years agoInitial OpenECOMP policy/drools-applications commt 61/361/1
Pamela Dragosh [Wed, 15 Feb 2017 00:49:32 +0000 (19:49 -0500)]
Initial OpenECOMP policy/drools-applications commt

Change-Id: I21c0edbf9b7f18dccd6bd4fe2a3287f3a68e6de0
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
7 years agoInitial empty repository
Andrew Grimberg [Tue, 14 Feb 2017 22:56:52 +0000 (22:56 +0000)]
Initial empty repository