|
automationReturns a ScriptableAutomation object encapsulating the properties of the PReS Workflow process that triggered the current operation. The
automation object available in Designer scripts is not of the same type. It has different properties.PropertiesThe following table lists the properties of the automation object.
Accessing automation propertiesTo make a Workflow variable accessible in scripts, it must first be declared in the Properties of the Preprocessor step (see Properties). Both the name and type of the variable must be the same as the variable in Workflow.
The other properties are accessible as they are. ExamplesTo access JobInfo 1 to 9 from Workflow: automation.jobInfo.JobInfo1; To access ProcessName, OriginalFilename or TaskIndex from Workflow: automation.properties.OriginalFilename; To access Workflow variables (declared in the Preprocessor properties): automation.variables.Same_as_workflow; |
|