{{ }} syntax that are substituted with values at submission time.
Template orders
DEE supports order templates. These templates are DEE Orders that can be pre-configured with placeholders, which can be filled in when executing the template order. Compared to a normal DEE Order, a template can contain placeholders that will be replaced by values provided at execution time. The placeholders in the template order follow the below format:Template orders structure
Template orders have aname element, which corresponds to the templateOrderName path parameter of the PUT request when registering the template order.
Additionally, template orders have a priority element, a queries array, and an output element.
Priority
The default priority isNORMAL. The following priorities are listed in order of highest priority to lowest priority:
EXCEPTIONALCRITICALVERY_HIGHHIGHNORMALLOWVERY_LOW
Queries
Within the queries array, there is one element with atype element, such as a GetAggregatesQuery query.
For example, a GetAggregatesQuery query describes the cube the query will be run against with the element: pivotId, the levels in the query in
the element: locations, and the measures included in the query in the element: measureSelections.
For more information, see Extraction Queries.
Output
Output elements includefilenameRoot for output sub-directory and file name,
extractionProcedure for using custom extraction procedures, and lastly the columns array, describing where each column will get its data.
Template placeholders can also be used. Placeholders are defined in the template orders within the special characters {{ and }}. For example,
the order can contain an MDX query with an {{AS_OF_DATE}} placeholder. Then when the template order is executed, a value can be specified for the AS_OF_DATE
placeholder.
For more information, see DEE Order Attributes.
Output sub-directory and file name
ThefilenameRoot element sets the subdirectory and the file name.
Columns
Thecolumns element describes how output columns will be populated.
The output file’s columns map to one of the following types:
- Level (
levelOutputColumn) - Measure (
measureOutputColumn) - Static value (
echoOutputColumn) - Value which requires some logic (
extractProcValueOutputColumn)
Executing template orders
Register template order
Template Orders can automatically be registered by adding the Template Order JSON file into thedata.extraction.templates.base.dir.path directory.
Alternatively, the following services expose methods to add, update, and remove a template:
addTemplateOrder/{orderName}- Registers the JSON DeeOrder provided in the REST body.removeTemplateOrder/{orderName}- Removes a template order with the provided name.
URL
JSON PUT body
Executing template orders
Template orders can be executed by calling the/submitTemplateOrders endpoint and sending the JsonTemplateOrder object as seen below: