DocsWorkflowsComponentsDatadata:document:select

data:document:select

Reads syntax values without changing the source document.

Options

NameTypeDescription
contentanyIs a string or byte slice containing the original document.
content_base64stringCarries source bytes safely between workflow actions.
syntaxSyntaxChooses json, xml, quoted-assignment, or pairs parsing.

Outputs

NameTypeDescription
selections[]Selection
  ↳ valuestring
  ↳ locatorLocator
    ↳ startint
    ↳ endint
    ↳ sourcestring
    ↳ syntaxSyntax
    ↳ escapeescapeMode
  ↳ path[]string
  ↳ attributesmap[string]string
  ↳ context[]Element
    ↳ namestring
    ↳ attributesmap[string]string
body[]byte
contentstring
content_base64string
encodingEncoding

Example

name: Select document values
actions:
  - name: values
    component: data:document:select
    vars:
      content: "{{ var.document }}"
      syntax: json

outputs:
  selections: "{{ values.selections }}"
  content_base64: "{{ values.content_base64 }}"