To control message flow behavior at run time, create one or more policies in one or more policy projects and deploy the policy projects.
The values in the policy override the equivalent properties that were configured in the Properties view for the node when the message flow was developed.
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 example, to configure storage of events for aggregation nodes at run time, first create an Aggregation policy. Next, set the Aggregate name property on the AggregateControl or AggregateReply node to the name of the policy. If you do not use an Aggregation policy, the Aggregate name property on the Aggregation nodes is used to associated fan-in and fan-out flows.
{PolicyProjectName}:PolicyName
You can also reference a policy from a JavaCompute node by using the name of the policy in the Java code; for example:
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 (see Adding resources to a BAR file).
Deployed policies are shown in the run sub-directory of the integration server work directory, within a sub-directory with the name of the policy project. You can see the properties of deployed policies in the Integration Explorer of the IBM App Connect Enterprise Toolkit or on the Policies tab of the web user interface (see Accessing the web user interface). You can also see which properties are being used by the deployed flow at run time by using the REST API or web user interface.