Journey Manager (JM) The transaction engine for the platform. | System Manager / DevOps | 17.10 This feature was updated in 17.10.
Manager allows you to test reference data of a selected organization, so you can quickly validate if filtering and sorting of reference data work as expected. This is handy while building or troubleshooting Maestro forms.
You can only test reference data defined as CSVCSV is a comma-separated values fil, which s a delimited text file that uses a comma to separate values. A CSV file stores tabular data (numbers and text) in plain text. Each line of the file is a data record. Each record consists of one or more fields, separated by commas. data type.
To test organization reference data:
This option is only available for CSV data type.
{
"select": ["postcode","suburb","state","dc"],
"filter": [
{"field": "postcode", "operation": "match", "value": "2001"},
{"field": "suburb", "operation": "contains", "value": "E"}
],
"order": [
{"field": "suburb", "sortAsc": false},
{"field": "state", "sortAsc": true}
],
"fetchLimit": 50
}
For more information, see query syntax.
[
{
"postcode": "2001",
"suburb": "SYDNEY",
"state": "NSW",
"dc": "GPO BOX CENTRE SYDNEY"
}
]
A query you write to sort and filter reference data is a JSONJSON (JavaScript Object Notation) is an open standard file format and data interchange format that uses human-readable text to store and transmit data objects consisting of attribute–value pairs and arrays. object that is applied to the CSV data. You must adhere to valid JSON syntax, otherwise Manager throws an exception. For more information, see Introducing JSON.
The query object consists of four mandatory elements, which are listed below:
Element | Type | Description |
---|---|---|
|
array of string |
The list of fields returned by a query. |
|
array of objects |
A list of conditions to constrain the data returned by the query. Each filter condition is an object consisting of three elements: |
|
array of objects |
A list of sorting specifications that control the order of returned CSV rows. Each sorting specification is an object consisting of two elements: |
|
number |
The maximum number of rows returned from the CSV file, applied after the filter and sort operations have been applied. |
The select
, filter
and order
array elements are constructed using the following mandatory elements:
Element | Type | Description |
---|---|---|
|
string |
A case sensitive string matching a column heading in the first line of the CSV file. |
|
string |
A case sensitive string, which must be one of the following: |
|
string |
Specifies how an order specification is applied to the output; either ascending ( |
|
string |
A case-insensitive string used by a filter condition to test against the values in the column specified by the field property. |
Next, learn how to configure organization form categories.