diff options
author | Jim Hahn <jrh3@att.com> | 2018-06-27 11:04:11 -0400 |
---|---|---|
committer | Jim Hahn <jrh3@att.com> | 2018-06-29 11:07:51 -0400 |
commit | cecd4ac43f199ad9f020d38fb7d1651b296d1703 (patch) | |
tree | 827cbcc055db03dd3e21a91fdfff9926f77b635c /controlloop/templates | |
parent | 9e865fe364ed6aa3445d9b1f1844378c52feab42 (diff) |
Add time limit to local guard locking facility
Modified the local policy guard locking facility to add
a time parameter.
Modified the control loop event manager to extend the lock
when lockCurrentOperation() is re-invoked.
Modified the rules to retract the lock if the lock request
was denied.
Reorder assertions in junit test.
Change-Id: Ic9b77acbb4881a5a516f30eb56664bad1a5c4d7e
Issue-ID: POLICY-872
Signed-off-by: Jim Hahn <jrh3@att.com>
Diffstat (limited to 'controlloop/templates')
-rw-r--r-- | controlloop/templates/archetype-cl-amsterdam/src/main/resources/archetype-resources/src/main/resources/__closedLoopControlName__.drl | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/controlloop/templates/archetype-cl-amsterdam/src/main/resources/archetype-resources/src/main/resources/__closedLoopControlName__.drl b/controlloop/templates/archetype-cl-amsterdam/src/main/resources/archetype-resources/src/main/resources/__closedLoopControlName__.drl index b1773f556..1274d6c16 100644 --- a/controlloop/templates/archetype-cl-amsterdam/src/main/resources/archetype-resources/src/main/resources/__closedLoopControlName__.drl +++ b/controlloop/templates/archetype-cl-amsterdam/src/main/resources/archetype-resources/src/main/resources/__closedLoopControlName__.drl @@ -449,6 +449,10 @@ rule "${policyName}.EVENT.MANAGER" retract($event); retract($manager); retract($clTimer); + + if(result.getB() != null) { + retract(result.getB()); + } } logger.info("{}: {}: starting operation={}", $params.getClosedLoopControlName(), drools.getRule().getName(), |