Table of Contents

SerializeItemsValve

Note

This valve will serialize all items in the current flow into base64-encoded JSON, adding a new item with the specified name to the flow, and storing the serialized data into the property "data" of the newly added item.

Properties

Name Description Default value Mandatory Supports property expansion
dest_id Name of the new item to add Yes Yes

Example Configuration

{      
  "name": "SerializeItemsValve",
  "enabled": "true",
  "config": {
    "dest_id": "my_new_item"
  }
}

In the example above:

  • All items in the flow will be serialized using JSON

  • Then base64-encoding will be done of the JSON-string

  • A new item with the id "my_new_item" will be added to the flow

  • On this newly created item, the property "data" will be set to the base64-encoded string from above.