Action | Description |
---|---|
PutMessage | Consumes the provided JSON document and JSONPath expression. Loads the document and evaluates the expression against it. |
GetMessage | Can be called repeatedly to retrieve the values which were matched by the expression that was evaluated by PutMessage. Returns EOF if no additional values remain. |
Action | Parameter | Description |
---|---|---|
PutMessage | Message | The source DJMessage for PutMessage. It can optionally contain the following information: • Source JSON document (if both the JSON File action property and JSONPath.sourcefile message property are not set) |
GetMessage | Message | When GetMessage is called, the body of the DJMessage referenced by the Message property will be populated with the next value from the set of results, which were produced by the evaluation of the JSONPath expression against the source document. |
Action | Property | Description |
---|---|---|
PutMessage Action | JSONPath Expression | The expression that will be evaluated against the loaded JSON document. This value can be overridden by the DJMessage property, JSONPath.expression. It is an error condition if both are missing. |
JSON File | The name of a local file from which (if provided) the component will read the source JSON document. The value of this option (whether it is blank or populated) will be overridden by the DJMessage property, JSONPath.sourcefile. If neither is provided, then the source JSON document is expected to be in the body of the DJMessage argument to PutMessage. It is an error condition if the source JSON document cannot be loaded using any of the options. | |
GetMessage Action | Not applicable | Not applicable |
Action | Code | Description |
---|---|---|
PUTMESSAGE | ERR_BADOPTIONVALUE | Generated if the JSONPath expression is not set. |
ERR_INVALID | Multiple errors can result in ERR_INVALID. These include the following: • Unable to read the source JSON document • Unable to parse the source JSON document • JSONPath expression is badly formatted | |
GETMESSAGE | ERR_READERR | Generated if GetMessage is called without initializing the component instance with PutMessage. In other words, the component is not "connected." |
ERR_EOF | Generated if GetMessage is called after the last result from the expression evaluation has been retrieved. |