Adding a Service, creating a script
To add a Service, follow the instructions below:
- Select the Services node in the tree of the ITP/Server.
- Click Add Service on the Services tab. You will be prompted for a name and the Script Editor will be opened with the Service's Script.
- Compose your script, close, and save.
- Because almost all scripts expect parameters an extra step is necessary to map these:
- Select your new Service in the tree view. The Service tab becomes visible.
- On this tab the Script parameters known by name must be mapped to the request or job parameters known by their sequence number. To do this add to the list for example:
Script parameter Value (job parameter)
UserNumber $1
The first parameter of any request must be the name of the Service that is requested. This parameter is stripped from the request by the Manager when it passes the request to the Service. This means that only the parameters asked for in the script need to be mapped.
- Select Services in the tree view again.
- Click Compile on the Services tab. A window will pop-up showing you the compilation result. If all is well:
- Click Save & Apply. The affected ITP/Document Processors will be restarted in such a way that ITP/Server is unavailable as short a time as possible.
Because you can save a script without implementing it, it is possible to develop scripts in stages. After you work on a script, save it but don't compile. The next time just select the Service concerned and click the Edit script… button to work on the script again.
Refer to Scripts for more information on creating scripts.