The Assertion Type Editor is used to view all assertions.
The following defines all groups contained in the Assertion Type Editor.
General Information
The General information Group provides:
- URI: The URI location of the assertion
- Namespace: The Namespace the assertion is associated to
- Name: The Name of the assertion
- Description: A Description of the assertion; what it is and what it does.
Assertion Information
The Assertion Information group provides:
- Comparator: Determines how property values are compared to context values
- Usage: Assertions can be applied to an Endpoint, Policy or both.
- Type: Defines the type of assertion.
Correlations Group
This group lists all the pertinent correlation queries for the object type
being edited. All Direct correlation sections still exist. All Indirect correlation
sections have been collapsed into a single section. For more data, refer to
the Working with correlations section.
Usage Types
Some assertions may only be used on an Endpoint (for example, Hours of
Operation and Propagate policy). Other assertions may only be used on a Policy
(for example, Reject Always).
An assertion type may have an allowedUsageConstraint annotation: ENDPOINT
POLICY BOTH.
The system does not allow to add an assertion to a policy if it is constrained
to endpoints, and vice-versa This prevents imaginative “creative”, yet unsupported,
use of Hours of Operation and other specialized assertion types The usage
constraints for an assertion are shown in the Assertion Type Editor.
Content-based Assertions
There are three ways to define the composite policy used for an endpoint
selection:
- A policy condition can include expressions involving asserted properties
of the assertion, e.g. AccountSize > 1,000,000.
- A content-based assertion can be used in a policy contract like any other
assertion with fixed values for its assertion properties.
- A new Fill From Context content-based assertion can appear in the selection
policy with the values injected at runtime from the message content. The
contract asserted by a policy is only considered if its conditions are satisfied.
Assertion Comparators
The following policy condition comparators are available for writing expressions
about content-based assertion properties:
- not equal ≠
- less than or equal to ≤
- greater than or equal to ≥