Chapter 10. Defining Exports

Table of Contents

Supplied Export Scripts
Using Runtime Variables

Each model described in the Squore Configuration may define a set of exports in the models/MODEL/Exports/Bundle.xml bundle file. Exports available in the user interface depend on the role of the currently logged-in user and the selection in the Project Portfolios and the Artefact Tree views.

Here is an example of a bundle file:

<?xml version="1.0" encoding="UTF-8"?>
<Bundle>
	<Role name="DEFAULT">
		<Export type="MODEL">
			<ExportScript name="Project Portfolio" script="${scriptDir}/sqexport.pl">
				<arg value="-f" />
				<arg value="${outputFile}" />
				<arg value="versions" />
				<arg value="-ml" />
				<arg value="-u" />
				<arg value="${idUser}" />
				<arg value="${idModel}" />
				<arg value="${group}" optional="true" />
			</ExportScript>
		</Export>
	<Export type="APPLICATION">
			<ExportScript name="Functions with level G" script="${scriptDir}/sqexport.pl">
				<arg value="-f" />
				<arg value="${outputFile}" />
				<arg value="artefacts" />
				<arg value="-mR" />
				<arg value="-T" />
				<arg value="${types['FUNCTION']}" />
				<arg value="-L" />
				<arg value="LEVELG" />
				<arg value="-u" />
				<arg value="${idUser}" />
				<arg value="${idModel}" />
			</ExportScript>
		</Export>
	</Role>
</Bundle>

Tip

Exports defined for the MODEL type are available when clicking on a model name or a group name in the Project Portfolios (new in 18.0).