Skip to main content

YAML: Encode Node

The YAML: Encode Node allows you to encode a part of the payload into YAML (YAML Ain't Markup Language) format, and store that result on the payload for later use.

YAML: Encode Node

Node Properties​

The YAML: Encode Node's configuration has a single section ...

Configuration​

Define the data source and the destination for the result:

  • Source Object Path: The payload path to the object to encode.
  • Encoded Result Path: The payload path at which to store the result.

Note: It is possible for both paths to be the same, in which case the source will be replaced by the encoded YAML string.

Node Example​

In the above example, the workflow will encode the value at the data.body path and place the resulting string at the working.yamlString path. So, for example, given the following payload:

{
"time": Fri Feb 19 2016 17:26:00 GMT-0500 (EST),
"data": {
"body": {
"messageBody": [
12,
24
],
"messageName": "Trigger52"
},
...
},
...
}

The payload after execution of the YAML: Encode Node would look like:

{
"time": Fri Feb 19 2016 17:26:00 GMT-0500 (EST),
"data": {
"body": {
"messageBody": [
12,
24
],
"messageName": "Trigger52"
},
...
},
"working": {
"yamlString": "messageBody:\n - 12\n - 24\nname: Trigger52\n",
},
...
}

Was this page helpful?


Still looking for help? You can also search the WEGnology Forums or submit your question there.