<version>6.5.0.Final</version>
<scope>test</scope>
</dependency>
+ <dependency>
+ <groupId>com.google.code.gson</groupId>
+ <artifactId>gson</artifactId>
+ <version>2.5</version>
+ <scope>test</scope>
+ </dependency>
<dependency>
<groupId>org.onap.policy.drools-applications</groupId>
<artifactId>appc</artifactId>
<version>${project.version}</version>
<scope>provided</scope>
</dependency>
+ <dependency>
+ <groupId>org.onap.policy.drools-applications</groupId>
+ <artifactId>vfc</artifactId>
+ <version>${project.version}</version>
+ <scope>provided</scope>
+ </dependency>
<dependency>
<groupId>org.onap.policy.drools-applications</groupId>
<artifactId>events</artifactId>
<version>${project.version}</version>
<scope>provided</scope>
</dependency>
+ <dependency>
+ <groupId>org.onap.policy.drools-applications</groupId>
+ <artifactId>actor.vfc</artifactId>
+ <version>${project.version}</version>
+ <scope>provided</scope>
+ </dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
//
// Check whether we need to wait for abatement
//
- if ($manager.getProcessor().getControlLoop().abatement == true && notification.notification == ControlLoopNotificationType.FINAL_SUCCESS) {
+ if ($manager.getProcessor().getControlLoop().getAbatement() == true && notification.notification == ControlLoopNotificationType.FINAL_SUCCESS) {
Logger.info("Waiting for abatement.");
} else {
Logger.info("No abatement is promised to come, close out the control loop for " + $event.requestID);
notification.policyVersion = "${policyVersion}";
Engine.deliver("UEB", "POLICY-CL-MGT", notification);
- switch ($operation.policy.actor){
+ switch ($operation.policy.getActor()){
case "APPC":
case "VFC":
if (request instanceof VFCRequest) {
// Start VFC thread
- Thread t = new Thread(new VFCManager(request));
+ Thread t = new Thread(new VFCManager((VFCRequest)request));
t.start();
}
break;
"",
drools.getWorkingMemory(),
$event.closedLoopControlName,
- $operation.policy.actor.toString(),
- $operation.policy.recipe,
+ $operation.policy.getActor().toString(),
+ $operation.policy.getRecipe(),
$manager.getTargetInstance($operation.policy),
//$event.target,
$event.requestID.toString()
t.start();
}
else{
- insert(new PolicyGuardResponse("Permit", $event.requestID, $operation.policy.recipe));
+ insert(new PolicyGuardResponse("Permit", $event.requestID, $operation.policy.getRecipe()));
}