When you export a Provisioning Request Definition (PRD) from NetIQ Designer, you are left with an XML file with 3 separate BASE64 encoded code sections:

  • srvprvProcessXML
  • srvprvRequestXML
  • XMLData
Using the custom script decode.js, you can decode these 3 code sections in to 3 separate XML files with the raw code. The decode.js script uses the rhino.jar JavaScript interpreter and the decode function from nxsl.jar, so you will need both of these jar files in your lib directory before you can successfully run the decode.js script.

To run the script, put the following command in to a Linux shell script or a Windows batch file:

java -cp "lib/*" org.mozilla.javascript.tools.shell.Main decode.js "$@"

To decode the exported PRD in to 3 files, in linux, you can just type:

./decode.sh CAAR_07_02_2024.xml

Once the script has finished processing, you will be left with 3 XML files, similar to the ones shown below.
CAAR_07_02_2024.xml_srvprvProcessXML.xml
CAAR_07_02_2024.xml_srvprvRequestXML.xml
CAAR_07_02_2024.xml_XMLData.xml

The script can be downloaded from here.