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-1.7.15.jar JavaScript interpreter, so you will need this jar file 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, on 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
function decodeMe ( varString )
{
    var varDecoded = java.util.Base64.getDecoder().decode(varString);
    return new java.lang.String(varDecoded);
}

Download the decode.js script from here.

Download the rhino-1.7.15.jar file from here.

Once the script has been downloaded, and your lib directory has been setup, create a shell script (similar to the one shown below) in order to run the program.

#!/bin/bash
/Users/belkast/Documents/Applications/JDK/8/arm64/zulu-8.jdk/Contents/Home/bin/java -cp "lib/*" org.mozilla.javascript.tools.shell.Main decode.js "$@"