Scripting > Using Before and After Process scripts

Using Before and After Process scripts
You can run Before and After Process scripts, before and after each record.
Running scripts before and/or after individual records gives a script context for variable values, extracted using SOM expressions. See StreamServe variable mapping.
Mappings from SOM expressions to StreamServe variables are performed for each record (and even, if Evaluate variable for each page is enabled, for each page within a record). With this setting:
Note:
How it works – script execution order
The execution order of Before and After Process scripts during the process phase, with the setting Evaluate variable for each page enabled, is illustrated in the figure below.Click to enlarge
Figure 15
1
2
3
4
5
6
7
8
To enable Before and After Process scripts
You enable and disable this functionality in the Settings dialog by selecting the Run Before and After Process scripts, before and after each record. See Settings dialog box.
If this setting is selected, Before and After Process scripts will be executed before and after each record. If not selected, the before and after Process scripts will be executed before and after each Process.
For new Projects created in Production Print, this functionality is enabled by default.
For upgraded Projects, created in versions before LiveCycle Production Print ES2, this functionality is disabled by default and the previous behavior with scripts per Process applies.
Restrictions
The following scripts cannot be used in the before and after Process scripts when running on record level in the process phase:
OpenText StreamServe 5.6 Updated: 2013-03-01