Policy Sets
A policy set contains one or more policies. Adding a policy set to a governed object applies its policies at the object. Policy sets are atomic transactional units for policy administration. When you add a policy set, you are explicitly requesting that TIBCO ActiveMatrix enforce all its policies for the governed object.
Policy sets can either be embedded in a composite file, or external (that is, specified in a separate XML file).
Policy Set Enforcement
- Component service: all bindings on all promoted services to which the policy applies inherit the policy. In inherited policy sets, the virtualization and HelloWorld1SOAP bindings inherit the Threading policy from the HelloWorldPT service JavaHelloComponent.
- Promoted service: all bindings on the service to which the policy applies inherit the policy. In inherited policy sets, the HelloWorld1SOAP binding inherits the WSAddressing policy applied to the service HelloWorldPT.
- Binding: if the policy applies to a binding it will be enforced. However, if you add a policy applicable to Virtualization binding to a SOAP binding, it takes effect on the virtualization proxy between the SOAP binding and component. In , the Virtualize policy applied to HelloWorld1SOAP binding takes effect on the service virtualization proxy (SV-Proxy).
Embedded Policy Sets
When you configure policy parameters using TIBCO Business Studio, TIBCO Business Studio automatically translates them into an embedded policy set, and attaches it to the composite. An embedded policy set generally configures exactly one policy.
The validations in TIBCO BusinessStudio prevents an invalid PolicySet configuration related to Global Managed Transaction policy.
External Policy Sets
When you configure an external policy set, it can define several policies that all apply to the same set of element types.
The XML provides and appliesTo properties pertain to external policy sets.
- provides
-
The provides property specifies the intents that the policy set satisfies. Its value is a list of intents, separated by the space character.
When you add a policy set, TIBCO Business Studio uses this information to determine which intents the policy set satisfies, and which intents still require policies.
- appliesTo
-
The appliesTo property specifies specific binding types or specific implementation types which are the targets of the policy set. Its value is a list of types, separated by the vertical bar character (|).
When you add a policy set, TIBCO Business Studio applies its policies to all the elements (within that scope) that match any of the types in the appliesTo property. The resulting set of elements constitutes the governed object group of the policy set.