Hello Kareem
First: You will need to create the policy with the properties you need
Second: You need to create a java class for the java compute node from which you want to access the policy.
Third: Add user code to get the policy, which will be something like this:
- MbPolicy myUDPolicy = getPolicy("UserDefined", "{policyproject}:MyUDP"); which get a policy called MyUDP that is stored in "policyproject".
Fourth: Add user code to access the policy to get the properties, which will be something like this:
- System.out.println(" Name: "+myUDPolicy.getPropertyValueAsString("Name"));
For more information refer to the IBM doc: https://www.ibm.com/docs/en/app-connect/12.0?topic=java-accessing-user-defined-policy-from-javacompute-node
Regards,
Kjetil Svihus
------------------------------
Kjetil Svihus
------------------------------