Working with Report Orders: Advanced Features
Introduction
The page https://bmpi.atlassian.net/wiki/pages/resumedraft.action?draftId=2796781569 covers the knowledge needed to set up the majority of orders. Expanding on that, this page teaches reporting specialists to fully take advantage of Cinnamon’s customizability features.
Working with JSON in Report Orders
Usage of JSON format
Internally orders are represented in JSON format. The advanced mode and some specific parameters in default mode allow you to directly set parameters as JSON. The editor for this provides several features to help with the editing process. For example:
Mismatched brackets, commas etc. are highlighted.
Alt+Shift+F automatically formats the order.
Extended search functionality. Click on the editor field to make sure it is focused. Then, press CTRL+F to make the search appear at the top right of the editor field. There, you can not only make a simple search, but limit the search to match full words only, consider casing or even do a “regular expression” search.
If the order JSON is modified in a way that makes it invalid, e.g. by having mismatched brackets, Cinnamon will prevent you from saving the order.
Advanced mode
The advanced mode shows the full JSON representation of the order, and lets you edit it directly. It can be used both in the Ad Hoc ordering and Order Management UIs. To enter the advanced mode, click the tab advanced mode at the top in either of those screens. To exit, click on the tab default view. Any changes made in the advanced mode are immediately reflected in the default view and vice versa.
Below is the same order twice, once viewed using the default mode and once using the advanced mode:
Additional parameters
The setting “Additional parameters”, found in the default mode under Additional Settings > Other Customizations, contains a JSON of parameters that otherwise have no input field in the UI. This allows you to set arbitrary parameters. It is available both in the Ad Hoc and Report Order Management UIs. In the advanced mode, the parameters inserted using this setting can be found under parameters
alongside the parameters that can be set in the UI. Conversely, if such an arbitrary parameter is added to parameters
in the advanced mode, it will show up under Additional Parameters in default mode.
Using Draft Objects
By default, orders use the published versions for all objects (i.e. segmentations, report types,… ). To test out the drafts you created, go to the advanced mode. There either set the parameter "useDrafts": true
in JSON or click the toggle below the JSON editor.
Examples: Comparing Different Kinds of Orders
Note: Since both parameters* and additional parameters are reflected in the advanced mode view, examples on this page are based on the advanced mode unless otherwise specified.
Ad hoc vs. stored orders
Ad Hoc Order | Stored Order | |
---|---|---|
Example |
JSON
|
JSON
|
Created in | Ad Hoc Order UI | Report Order Management |
Triggered by | User | User or automatically |
Manual vs. Automatic Scheduling vs. Once
Manual | Automatic | Once | |
---|---|---|---|
Example |
JSON
|
JSON
|
JSON
|
Created in | Report Order Management | Report Order Management | Report Order Management |
Triggered by | User | Automatically when data of sufficient quality is available | Automatically on the requested date |
Batch vs. Non-Batch
Batch | Non-Batch | |
---|---|---|
Example |
JSON
This order results in 4 reports; one for both portfolios in either language. |
JSON
|
Created in | Report Order Management | Report Order Management |
Triggered by | User or automatically | User or automatically |
Reference: Order Properties
These properties configure the general report order.
Property | Type | Description | Examples / Values | Required | Can use star |
---|---|---|---|---|---|
| string | The type of the report defining the structure of contents | "Fixed Income Two-Pager" | YES | YES |
| string | Select the format of the output (pdf creates word & pdf) | word, pdf, json | YES | YES |
| See separate table: Working with Report Orders: Advanced Features | Order-Level-Parameters | YES | YES | ||
| string | The status of the order: Can be active or inactive. Inactive orders are not considered for scheduling. | "active", "inactive" | NO | NO |
| string | Whether the order should be considered for automated scheduling or will be scheduled manually. | "scheduled", "manual" | NO | NO |
| string | The name of the order. | "E0002 monthly two pager" | NO | NO |
| string | The printer to use for printing. Only applicable if the output format is set to 'print'. | NO | NO | |
| number | The priority of the execution in the production queue. Lower number is higher priority. | NO | NO | |
| See separate table: Working with Report Orders: Advanced Features | Scheduling-Parameters | Required for automatically scheduled orders but not for ad hoc orders and manually scheduled orders | NO | ||
| string | The id of the order. Ad hoc orders do not have an id. The id is automatically generated and only needs to be passed if an already existing order is supposed to be updated. | NO | NO |
Order Level Parameters
These generic parameters configure the report to be produced. These core parameters are available for all versions of Cinnamon. More parameters are available depending on the Cinnamon solution used.
Parameter | Type | Description | Examples / Values |
---|---|---|---|
| string | The id of the portfolio, consolidation or other business object to report about. | “E0002” |
| Date | The date to to report about. Has to be formatted as "YYYY-MM-DD". | “2019-03-31” |
| string | The language to report in. | “en” |
| string[] | The language to generate abstract report in. | [“en”, “de”] |
| string | The title of a report. | “E0002 Quarterly report” |
| string | The subtitle of a report. | “Q1 2019” |
| string | Name of the used profile. The profile configures all parameters needed by solution specific blocks | “equityProfile” |
| boolean | Whether texts are resolved (translated and filled with argument values) | |
| boolean | Whether values should be resolved (formatting for numbers and dates) | |
| boolean | Whether charts should be resolved to SVG. | |
| boolean | Whether data hub query responses should be validated by the corresponding JSON schema | |
| boolean | Whether data hub query responses should be validated by the corresponding [[Validatable.verified]] function | |
| boolean | Whether the report production should forcefully refresh all cache entries visited. | |
| boolean | Whether to use draft objects. | |
| boolean | Wether to add debug data to the abstract report | |
| boolean | If true, every access to a base information from the data source is captured into a statistics |
Scheduling Parameters
MANDATORY: parameters are mandatory for automatic scheduling based on data availabilities.
Property | Description | Type | Examples / Values |
---|---|---|---|
| Start date of the scheduling. | Date | 2021-01-01 |
| End date of the scheduling. | Date | 2021-12-31 |
| Frequency of the scheduling. | one of the below strings:
| “daily” |
| Selection of points, where the report should be scheduled |
| |
| List of data availabilities the reports should be created for. |
|
JSON
|