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
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.