Post-processing scripts

This topic describes how post-processing scripts work. You can create and use your own post-processing script.

Component processes in Deployment Automation perform post-processing whenever a plugin step finishes execution. Typically, post-processing scripts ensure that expected results occurred.

When configuring process steps, you can add your custom script, which you create in JavaScript. We recommend that you wrap scripts in a CDATA element.

For details on managing steps in processes, see Create and design component processes.

When a step finishes, the agent performing the step runs your script. First, the agent loads the server log file and finds the exit code property of the target step using regular expressions from the script. Then the agent applies any actions defined in the script before processing the next step. For details, see View the output log.

To create a post-processing script:

  1. Navigate to Administration > Automation.

  2. Select the Post Processing Scripts tab.

  3. Click Create.

  4. In the Name field, enter the name of the script. The name must match the one you specified in the process step's properties.

  5. In the Script Body field, enter or paste the Javascript script. Point to the name of the field to view information about the properties and variables available for user-defined scripts.

  6. Click Save.

Note: Alternatively, you can create a post-processing script in the process designer when you set the properties for a plugin step.

Back to top

See also: