data:document:select
Reads syntax values without changing the source document.
Options
| Name | Type | Description |
|---|---|---|
content | any | Is a string or byte slice containing the original document. |
content_base64 | string | Carries source bytes safely between workflow actions. |
syntax | Syntax | Chooses json, xml, quoted-assignment, or pairs parsing. |
Outputs
| Name | Type | Description |
|---|---|---|
selections | []Selection | |
↳ value | string | |
↳ locator | Locator | |
↳ start | int | |
↳ end | int | |
↳ source | string | |
↳ syntax | Syntax | |
↳ escape | escapeMode | |
↳ path | []string | |
↳ attributes | map[string]string | |
↳ context | []Element | |
↳ name | string | |
↳ attributes | map[string]string | |
body | []byte | |
content | string | |
content_base64 | string | |
encoding | Encoding |
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 }}"