Using Runtime Variables

The Bundle.xml file above contains some variables that are replaced at runtime. The following is the list of variables that can be used in the ExportScript and arg XML elements.

Note that the ${outputFile} variable is mandatory.

${scriptDir}

Used to resolve the location of the addons directories on Squore Server, in which the scripts/export-scripts subdirectory contains the default scripts.

${customScriptDir}

Used to resolve the location of the configuration directories on Squore Server, in which the <MODEL_NAME>/Exports subdirectory contains the scripts you added to the product.

${serverUrl}

The base URL of the Squore server.

${outputFile}

The name of the output file where the export script writes to. The filename is guaranteed to be unique on each call.

${idUser}

The identifier of the logged in user.

${idModel}

The identifier of the model that is currently selected in the Project Portfolios.

${group}

The identifier of the group that is currently selected in the Project Portfolios. (new in 18.0)

${idApplication}

The identifier of the application that is currently selected in the Project Portfolios.

${idVersion}

The identifier of the version that is currently selected in the Project Portfolios.

${idArtefact}

The identifier of the artefact that is currently selected in the Artefact Tree.

${types['TYPENAME']}

This function resolves at runtime the type aliases of TYPENAME. That may be used to simplify bundles, as you may achieve the exact same thing by manually listing all types. The result is a coma separated list of types.