Overriding the data source configuration properties using policies
Policies are used to override property values so that you can control the behavior of message flows and message flow nodes at run time.
About this task
To create a user-defined policy to override the data source configuration properties at run time by using the Toolkit, complete the following steps:
Procedure
Results
A policy that contains the overriding property values is generated. You can see your policy and policy project in the Application Development view.
The values in the policy override the equivalent properties that were configured in the DataSource Config view for the node when the message flow was developed.
What to do next
- Attach the policy to a message flow node by setting the policy name in the appropriate property of the message flow node. If you want to override a message flow node property with a policy at run time, you need to set the policy name on the message flow node. For more information, see Overriding data source properties.
- Deploy the policy. You can deploy one or more policy projects, either in an independent BAR
file, or in the same BAR file as the associated message flow.
If a policy name is set specifically on a message flow or message flow node, you must deploy the policy before the message flow can be started. If a policy is not specified explicitly on a message flow or message flow node, you must deploy the policy before or with the message flow. For more information, see Adding resources to a BAR file.