|
automationThis object (of the type: Automation) encapsulates the properties of the PReS Workflow process that triggered the current operation. The
automation object available in DataMapper scripts is not of the same type. It has different properties.PropertiesThe following table lists the properties of the Automation object.
Accessing automation propertiesTo access JobInfo 1 to 9 (defined in Workflow): automation.jobInfos.JobInfo1; To access ProcessName, OriginalFilename or TaskIndex (defined in Workflow): automation.properties.OriginalFilename; ExampleAssume that a Workflow process can be triggered when an XML file appears in a certain folder. The XML file contains data that you want to show on a web page. Add a Set Job Infos and Variables Task to the Workflow process. Define a Job Info (see Set Job Infos), say, %9, and fill it with data from the XML, for example:
In Connect Designer, you can use the automation object to retrieve the value in a script, like this:
|
|