We need to invoke a java program from policy.We followed the link
We followed the below steps:
1. Create a .jar file of your code.

2. Place it in the path of your IDM server.

3. Restart DirXML (or eDirectory, or the server).

In iManager or Designer,

4. Create a namespace mapping.

5. Call your code via the mapping from xpath.

we did namespace mapping in designer as mentioned in the link .

Please let us know how to call code via mapping from XPath.

athira_m4's Profile: https://forums.netiq.com/member.php?userid=8105
View this thread: https://forums.netiq.com/showthread.php?t=51746