blob: 18de28de2a86dace4700655ef889f1ca0ddc11e0 [file] [log] [blame]
jhha42adf82019-11-06 13:38:31 -06001/*
2 * ============LICENSE_START=======================================================
3 * ONAP
4 * ================================================================================
5 * Copyright (C) 2019 AT&T Intellectual Property. All rights reserved.
6 * ================================================================================
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
10 *
11 * http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 * ============LICENSE_END=========================================================
19 */
20
21package rules;
22
jhh2b0f8002019-11-11 16:18:27 -060023import org.onap.policy.drools.controller.internal.MavenDroolsControllerUpgradesTest;
jhha42adf82019-11-06 13:38:31 -060024
25declare Version
26 version : String
27end
28
29rule "SETUP.1"
30when
31then
32 Version v1 = new Version();
33 v1.setVersion("1");
34 insert(v1);
35
jhh2b0f8002019-11-11 16:18:27 -060036 MavenDroolsControllerUpgradesTest.running1a.countDown();
jhha42adf82019-11-06 13:38:31 -060037end
38
39rule "VERSION.12"
40when
41 $v12 : Version( version == "12")
42then
43 retract($v12);
44
jhh2b0f8002019-11-11 16:18:27 -060045 MavenDroolsControllerUpgradesTest.running1b.countDown();
jhha42adf82019-11-06 13:38:31 -060046end