Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "name": "split strings",
- "flow": [
- {
- "id": 1,
- "module": "util:SetVariables",
- "version": 1,
- "parameters": {},
- "mapper": {
- "variables": [
- {
- "name": "String",
- "value": "This is part 1 of the string. This is part 2 of the string."
- }
- ],
- "scope": "roundtrip"
- },
- "metadata": {
- "designer": {
- "x": 0,
- "y": 0
- },
- "restore": {
- "expect": {
- "variables": {
- "items": [
- null
- ]
- },
- "scope": {
- "label": "One cycle"
- }
- }
- },
- "expect": [
- {
- "name": "variables",
- "type": "array",
- "label": "Variables",
- "spec": [
- {
- "name": "name",
- "label": "Variable name",
- "type": "text",
- "required": true
- },
- {
- "name": "value",
- "label": "Variable value",
- "type": "any"
- }
- ]
- },
- {
- "name": "scope",
- "type": "select",
- "label": "Variable lifetime",
- "required": true,
- "validate": {
- "enum": [
- "roundtrip",
- "execution"
- ]
- }
- }
- ],
- "interface": [
- {
- "name": "String",
- "label": "String",
- "type": "any"
- }
- ]
- }
- },
- {
- "id": 2,
- "module": "util:SetVariables",
- "version": 1,
- "parameters": {},
- "mapper": {
- "variables": [
- {
- "name": "Split String",
- "value": "{{split(1.String; \". \")}}"
- }
- ],
- "scope": "roundtrip"
- },
- "metadata": {
- "designer": {
- "x": 300,
- "y": 0
- },
- "restore": {
- "expect": {
- "variables": {
- "items": [
- null
- ]
- },
- "scope": {
- "label": "One cycle"
- }
- }
- },
- "expect": [
- {
- "name": "variables",
- "type": "array",
- "label": "Variables",
- "spec": [
- {
- "name": "name",
- "label": "Variable name",
- "type": "text",
- "required": true
- },
- {
- "name": "value",
- "label": "Variable value",
- "type": "any"
- }
- ]
- },
- {
- "name": "scope",
- "type": "select",
- "label": "Variable lifetime",
- "required": true,
- "validate": {
- "enum": [
- "roundtrip",
- "execution"
- ]
- }
- }
- ],
- "interface": [
- {
- "name": "Split String",
- "label": "Split String",
- "type": "any"
- }
- ]
- }
- },
- {
- "id": 3,
- "module": "util:SetVariables",
- "version": 1,
- "parameters": {},
- "mapper": {
- "variables": [
- {
- "name": "String 1",
- "value": "{{2.`Split String`[1]}}"
- },
- {
- "name": "String 2",
- "value": "{{2.`Split String`[2]}}"
- }
- ],
- "scope": "roundtrip"
- },
- "metadata": {
- "designer": {
- "x": 600,
- "y": 0
- },
- "restore": {
- "expect": {
- "variables": {
- "items": [
- null,
- null
- ]
- },
- "scope": {
- "label": "One cycle"
- }
- }
- },
- "expect": [
- {
- "name": "variables",
- "type": "array",
- "label": "Variables",
- "spec": [
- {
- "name": "name",
- "label": "Variable name",
- "type": "text",
- "required": true
- },
- {
- "name": "value",
- "label": "Variable value",
- "type": "any"
- }
- ]
- },
- {
- "name": "scope",
- "type": "select",
- "label": "Variable lifetime",
- "required": true,
- "validate": {
- "enum": [
- "roundtrip",
- "execution"
- ]
- }
- }
- ],
- "interface": [
- {
- "name": "String 1",
- "label": "String 1",
- "type": "any"
- },
- {
- "name": "String 2",
- "label": "String 2",
- "type": "any"
- }
- ]
- }
- },
- {
- "id": 4,
- "module": "builtin:BasicFeeder",
- "version": 1,
- "parameters": {},
- "mapper": {
- "array": "{{2.`Split String`}}"
- },
- "metadata": {
- "designer": {
- "x": 900,
- "y": 0
- },
- "restore": {
- "expect": {
- "array": {
- "mode": "edit"
- }
- }
- },
- "expect": [
- {
- "name": "array",
- "type": "array",
- "label": "Array",
- "mode": "edit",
- "spec": []
- }
- ]
- }
- },
- {
- "id": 5,
- "module": "util:SetVariables",
- "version": 1,
- "parameters": {},
- "mapper": {
- "variables": [
- {
- "name": "Current String",
- "value": "{{4.value}}"
- }
- ],
- "scope": "roundtrip"
- },
- "metadata": {
- "designer": {
- "x": 1200,
- "y": 0
- },
- "restore": {
- "expect": {
- "variables": {
- "items": [
- null
- ]
- },
- "scope": {
- "label": "One cycle"
- }
- }
- },
- "expect": [
- {
- "name": "variables",
- "type": "array",
- "label": "Variables",
- "spec": [
- {
- "name": "name",
- "label": "Variable name",
- "type": "text",
- "required": true
- },
- {
- "name": "value",
- "label": "Variable value",
- "type": "any"
- }
- ]
- },
- {
- "name": "scope",
- "type": "select",
- "label": "Variable lifetime",
- "required": true,
- "validate": {
- "enum": [
- "roundtrip",
- "execution"
- ]
- }
- }
- ],
- "interface": [
- {
- "name": "Current String",
- "label": "Current String",
- "type": "any"
- }
- ]
- }
- }
- ],
- "metadata": {
- "instant": false,
- "version": 1,
- "scenario": {
- "roundtrips": 1,
- "maxErrors": 3,
- "autoCommit": true,
- "autoCommitTriggerLast": true,
- "sequential": false,
- "slots": null,
- "confidential": false,
- "dataloss": false,
- "dlq": false,
- "freshVariables": false
- },
- "designer": {
- "orphans": []
- },
- "zone": "us1.make.com",
- "notes": []
- }
- }
Add Comment
Please, Sign In to add comment