diff options
Diffstat (limited to 'policy-core/drools-artifact-1.1/src/main/resources/rules.drl')
-rw-r--r-- | policy-core/drools-artifact-1.1/src/main/resources/rules.drl | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/policy-core/drools-artifact-1.1/src/main/resources/rules.drl b/policy-core/drools-artifact-1.1/src/main/resources/rules.drl deleted file mode 100644 index 9dac208b..00000000 --- a/policy-core/drools-artifact-1.1/src/main/resources/rules.drl +++ /dev/null @@ -1,30 +0,0 @@ -package org.onap.policy.drools.core.test; - -rule "Initialization" - when - then - { - System.out.println("Initialization rule running"); - } -end - -rule "Add elements of an int array" - when - $object : Object() - then - { - if ($object instanceof int[]) - { - int[] array = (int[])($object); - - System.out.println("Received array of length " + array.length); - int sum = 0; - for (int i = 1 ; i < array.length ; i += 1) - { - sum += array[i]; - } - array[0] = sum; - retract($object); - } - } -end |