Manage post-processing scripts
This topic explains how Deployment Automation handles post-processing in component processes. You can create and use your own post-processing scripts.
In this topic:
- Guidelines for post-processing scripts
- Create a post-processing script
- Post-processing script examples
Guidelines for post-processing scripts
Component processes perform post-processing whenever a plugin step finishes running. Typically, post-processing scripts help ensure that expected results occurred.
When configuring a process step, you can use your custom script created in JavaScript.
When a process step finishes, the agent performing the step runs your script:
-
The agent loads the server log file and finds the exit code property of the target step using regular expressions from the script. For details, see View the output log.
-
Before processing the next step, the agent applies any actions defined in the script.
Recommendations for creating a post-processing script:
-
Wrap the script in a
CDATA
element.
For examples of scripts, see Post-processing script examples.
For details about component processes, see Create and design component processes.
Create a post-processing script
To add a post-processing script, you need a Web UI role with the Settings permission. Administrators have this permission by default.
For details about Web UI roles, see Web UI roles and UI security.
To create a post-processing script:
-
In Deployment Automation, go to Administration > Automation.
-
Select the Post Processing Scripts tab.
-
Click Create.
-
Specify the post-processing script details:
Field Description Name Enter the name of the script. The name must match the one you specified in the process step's properties. Script Body Enter or paste your script.
Tip: To view information about the properties and variables available for user-defined scripts, hover over the field name.
- Click Save.
Note: Alternatively, you can create a post-processing script in the process designer when you set the properties for a plugin step.
Post-processing script examples
Use these examples of post-processing scripts to create your own scripts.
See also: