User Defined policy (UserDefined)
A User Defined policy has no predefined properties, so that you can define your own properties.
Use a User Defined policy to define properties that you can access in your message flows. The properties that you can define are unlimited, but possible uses include:
- Set timeout values for HTTP message processing.
- Set timeouts that are associated with message category for HTTP messages.
You can currently use the Policy editor in the IBM® App Connect Enterprise Toolkit to view and edit the properties of an existing User Defined policy. You cannot use the editor to create a new User Defined policy or add additional properties to an existing policy.
You can create a User Defined policy with the following structure by using a text editor.You can also access the policy from a JavaCompute node or from a Graphical Data Mapping editor.
Save the file with the extension .policyxml. If you import this .policyxml file into a policy project in the IBM App Connect Enterprise Toolkit, you can open the policy in the Policy editor and edit the values.
<?xml version="1.0" encoding="UTF-8"?> <policies> <policy policyType="UserDefined" policyName="MyUDCS" policyTemplate=""> <prop1>a value</prop1> <prop2>another value</prop2> <prop3>100</prop3> </policy> </policies>
If you redeploy a User Defined policy, all message flows that are using the policy will be stopped and restarted.