Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Anchor
Configuration and Testing
Configuration and Testing
Configuration and Testing

Routing Configuration

The JsonCBR component can be configured using its Custom Property Sheet (CPS) wizard.

Image RemovedImage Added
Figure 1: JsonPath(s) to be evaluated on the input messages

In the JsonCBR Configuration pane, the Add button helps to add configuration properties, the Remove button helps to remove the selected configuration property and Remove All helps to clear the entire configuration.

JsonPath

JsonPaths, based on which the routing is done, can be configured in JsonCBR Configuration Page. A valid JsonPath expression can be typed directly into the table.

...

Comparison of the JSONPath syntax elements with its XPath counterparts
XPathJSONPathDescription
/$the root object/element
..n/aparent operator
//..recursive descent. JSONPath borrows this syntax from E4X.
**wildcard. All objects/elements regardless of their names.
@n/aattribute access. JSON structures don't have attributes.
[][]subscript operator. XPath uses it to iterate over element collections and for predicates. In Javascript and JSON, it is the native array operator.
|[,]Union operator in XPath results in a combination of node sets. JSONPath allows alternate names or array indices as a set.
n/a[start:end:step]array slice operator borrowed from ES4.
[]?()applies a filter (script) expression.
n/a()script expression, using the underlying script engine.
()n/agrouping in XPath
Tip

For more information on the XPath for Json, please refer to the article at http://goessner.net/articles/JsonPath..

Operators

This field includes boolean operators like ==!=, <, >, <=, >=, EXISTS, NONEXISTENT.

...

This field can be any of these types: Long, Integer, Double, String, Boolean, BigInteger, BigDecimal, and JsonPath. If a "$" precedes any value, then it is treated as a JsonPath. In this case, the values of the two JsonPaths are compared for evaluating the expression.

Error Handling Configuration

Allows configuring actions to be taken when an exception occurs during the execution. Following are the configuration options:

  • JMS Error
  • Response Generation Error
  • Request Processing Error
  • Invalid Request Error
Tip

For descriptions, refer to the Error Handling section in the Common Configurations page.

Functional Demonstration

Scenario

...

Adaptavist ThemeBuilder EngineAtlassian Confluence