Use the Mediation Policy Administration widget
to attach existing mediation policies to modules. Using
mediation policies, you can control service interactions, using contextual
information.
Before you begin
- Use IBM Integration Designer to create a module containing a Policy
Resolution mediation primitive.
- Deploy the module to Process Server.
- Ensure that Process Server has a definition for the WSRR that
you want to use.
- Load the enterprise archive (EAR) file, containing your module,
into WSRR.
- Create a business space that contains the Module Browser widget
and the Mediation Policy Administration widget.
About this task
You can control service requests dynamically by using
mediation policies to override module properties at run time. Such
mediation policies are stored in WSRR. You can define one or more
mediation policies for your module, and each mediation policy can
override one or more module properties. Optionally, you can create
one or more gate conditions on each policy attachment. When service
requests are processed, gate conditions are compared to the condition
values in the message. All the gate conditions must be met before
an associated mediation policy can be used.
Procedure
- Log in to your business space and navigate to the space
that you created for administering mediation policies associated with
modules.
- From the Module Browser widget, select Mediation
Policies. The Mediation Policy
Administration widget is refreshed. If there are existing
policy attachments they are displayed.
- If you have more than one WSRR definition, select the definition
used by your module.
- Enter the name of the New policy attachment. Mediation policy attachments associate a mediation policy with
a module. In WSRR, the mediation policy and policy attachment are
separate objects.
- Click Create The Mediation
Policy Administration widget is refreshed. You can now
specify the group of properties you want to work with, and the name
of an existing mediation policy for that group.
- Select a Group name. Each
group contains module properties. Select the group whose property
values you want to override.
- Click Use existing.
- Select a mediation policy from the Select a
policy menu. The mediation policies displayed
depend on the group you selected.
- Click Next The Mediation
Policy Administration widget is refreshed. You can now
add gate conditions.
Note: You cannot edit mediation policy assertions
after you create a mediation policy in a business space. However,
because gate conditions exist on the mediation policy attachment,
you can add gate conditions when you create a new policy attachment.
- Optional: Define one or more gate conditions. Gate conditions must be met before the policy can be used. In
WSRR, gate conditions are user properties on the policy attachment
object.
- Enter a gate condition name in the Gate condition
name field. The name of a gate condition is
always prefixed with the string medGate_.
- Enter a gate condition value in the Value field. The gate condition value is made up of the following parts: policy
condition name, operation and gate
value.
- The policy condition name you enter must map
to a Policy condition name in the module.
- The operation can be: = , != , > , < , <= or >= .
- The gate value is the value being compared,
for example, country = France.
- Click Add Gate Condition.
- Click Save.
Results
In WSRR, a policy attachment is created that associates
the selected mediation policy with the selected module.
The Mediation
Policy Administration widget is refreshed, and the new
policy attachment is added to the list of policy attachments.