From df6ed833185ecdc20d6faf71c55160fd8638f3c3 Mon Sep 17 00:00:00 2001 From: Temoc Rodriguez Date: Thu, 2 Nov 2017 11:12:39 -0700 Subject: Write to DB on guard deny When an operations was denied by guard, it was not writing to the DB at all. Only in the deny case we start the operation, then setOperationHasGuardDeny, then finish the operation. Had to add start operation just before finishing it. This allows the write to occur at setOperationHasGuardDeny. Issue-ID: POLICY-345 Change-Id: I665b9cfaa684493e39e731102d4d43ecb39fad7c Signed-off-by: Temoc Rodriguez --- .../archetype-resources/src/main/resources/__closedLoopControlName__.drl | 1 + 1 file changed, 1 insertion(+) 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 acc980686..fbc46a3ee 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 @@ -726,6 +726,7 @@ rule "${policyName}.GUARD.RESPONSE" } else { //This is the Deny case + $operation.startOperation($event); $operation.setOperationHasGuardDeny(); retract($opTimer); retract($operation); -- cgit 1.2.3-korg