Additional Export / Import Rules

Export and import rules allow fine-grained preparation of the server environment when an application is imported. Each rule has a Name, an Export Expression and an Import Expression. The Export Expressions run at the time of export, and each must evaluate to a Data Table, which is saved in the export file. Upon import, each Import Expression runs, with access to the associated data table.

Essentially, Export / Import Rules allow specific data to be packaged with an application, for example, particular content items from the Media / Content Library can be saved by an Export / Import rule, and copied into the Media / Content Library when an application is imported to a new server.

Each rule has the following fields:

Field Description

Field Name

Name. Name of the Export / Import Rule, and the name which will be applied to the file containing the Data Table data from the Export Expression.

name

Export Expression. Expression which must evaluate to a Data Table. The Data Table will be passed to the Import Expression.

Export Expression Evaluation Environment

exportExpression

Default Context

The current application context

Default Data Table

None

Default Row

None

Environment Variables

Standard environment variables

Import Expression. Expression accepts the Data Table created by the Export Expression and applies it to the server where the application is being deployed. For example, it could create the necessary folders in the media library and import the file-type records into the media library.

Evaluation Environment

importExpression

Default Context

The current application context

Default Data Table

Data Table created by the Export Expression

Default Row

First row of Default Data Table

Environment Variables

Standard environment variables

Was this page helpful?