...
Drools PDP will need to parse the information encoded in TOSCA policy with native Drools JAR pointer and Drools controller configuration which is deployed from PAP. It will then go to the nexus to pull the native Drools JAR and corresonding dependencies from the nexus repo. A. A new Drools controller instance should be instantiated using the configuration included in the deployed TOSCA policy. The new Drools controller should be able to load the native DRL and corresponding supportive facts into Drools memory to execute native DRL.
On the other hand, when Drools PDP receives a request to undeploy a native policy, it should be able to disable corresponding Drools controller and clean up the related facts from the memory.
4.2 XACML PDP
XACML PDP will need to be able to ingest a XACML XML Policy directly. One suggestion is to create an application specifically for the XACML natives rules by default. The opportunity exists where a policy designer could create a specific application that supports native XACML policies (with or without TOSCA Policy Types as an option) and uses the grouping of PDPs to differentiate itself from the default XACML native rule application. The XACML PDP should also be enhanced to support configuring of applications in order to provide flexibility to the policy designers as to where all of its possible policy types are deployed.
...