Element
|
Description
|
activation
|
The root element is a wrapper for the input, script and output elements.
activation contains:
• input element (optional)
• 1 or more script elements
• output element (optional)
|
input
|
The input element provides a list of files to be used by the script. Files listed in input are checked before the script is processed.
If any of the files listed by input are not present, the job will fail. With this method, a pre-publish check confirms that all required information is available before the job is processed.
input contains 0 or more file elements.
|
script
|
The script element contains one more scripts, provided as either script code within a CDATA section, or a link to an external script file.
script has three attributes:
• type — indicates the language of the script, either js or app
The type determines which scripting engine is used to process the script in PTC ALD.
• href — can provide a link to an external script file using an absolute path
If href is provided, the script element must be empty. If it is not empty, only the linked file will be run.
This option can only be used to reference JavaScript scripts — the value of type must be js.
• id — provides the ID of the script in the log and job response
The activation element can contain one or more script elements. It is possible to run scripting before and after the PTC ALD activation script.
|
output
|
The output element provides a list of files to be used by the script. Files listed in output are checked after the script is processed.
If any of the files listed by output are not present, the job will fail.
output contains 0 or more file elements.
|
file
|
The file element is a child of both input and output.
file is used to provide the location of a file which is expected to be found either before or after the scripts have been run.
file has one attribute:
• href — defines an absolute path to a file
|