You can copy and paste this module export into your scenario. This will paste the modules shown in my screenshots above.
-
Copy the code below by clicking the copy button when you mouseover the top-right of the code block
-
Enter your scenario editor. Press ESC to close any dialogs. Press CTRLV to paste in the canvas.
-
Click on each imported module and save it. You may need to remap some variables.
Modules JSON Export
{
"subflows": [
{
"flow": [
{
"id": 39,
"module": "json:ParseJSON",
"version": 1,
"parameters": {
"type": ""
},
"mapper": {
"json": "[\n {\n \"array\": [\n {\n \"Nowe\": 4,\n \"Stracone\": 9,\n \"prowizja\": 435,\n \"koszt reklamy\": 388,\n \"nazwa kampani\": \"campaign name1\",\n \"Czekam na kontakt\": 2\n },\n {\n \"Nowe\": 1,\n \"Stracone\": 1,\n \"prowizja\": 0,\n \"koszt reklamy\": 4,\n \"nazwa kampani\": \"campaign name 2\",\n \"Czekam na kontakt\": 0\n },\n {\n \"Nowe\": 1,\n \"Stracone\": 2,\n \"prowizja\": 90,\n \"koszt reklamy\": 350,\n \"nazwa kampani\": \"campaign name3\",\n \"Czekam na kontakt\": 0\n }\n ],\n \"__IMTAGGLENGTH__\": 3\n }\n]"
},
"metadata": {
"designer": {
"x": -1124,
"y": -1087
},
"restore": {
"parameters": {
"type": {
"label": "Choose a data structure"
}
}
},
"parameters": [
{
"name": "type",
"type": "udt",
"label": "Data structure"
}
],
"expect": [
{
"name": "json",
"type": "text",
"label": "JSON string",
"required": true
}
]
}
},
{
"id": 40,
"module": "builtin:BasicFeeder",
"version": 1,
"parameters": {},
"mapper": {
"array": "{{keys(first(39.array))}}"
},
"metadata": {
"designer": {
"x": -880,
"y": -1087
},
"restore": {
"expect": {
"array": {
"mode": "edit"
}
}
},
"expect": [
{
"name": "array",
"type": "array",
"label": "Array",
"mode": "edit",
"spec": []
}
]
}
},
{
"id": 42,
"module": "util:SetVariable2",
"version": 1,
"parameters": {},
"mapper": {
"name": "array",
"scope": "roundtrip",
"value": "{{map(39.array; toString(40.value[]))}}"
},
"metadata": {
"designer": {
"x": -635,
"y": -1086
},
"restore": {
"expect": {
"scope": {
"label": "One cycle"
}
}
},
"expect": [
{
"name": "name",
"type": "text",
"label": "Variable name",
"required": true
},
{
"name": "scope",
"type": "select",
"label": "Variable lifetime",
"required": true,
"validate": {
"enum": [
"roundtrip",
"execution"
]
}
},
{
"name": "value",
"type": "any",
"label": "Variable value"
}
],
"interface": [
{
"name": "array",
"label": "array",
"type": "any"
}
]
}
},
{
"id": 43,
"module": "builtin:BasicAggregator",
"version": 1,
"parameters": {
"feeder": 40
},
"mapper": {
"array": "{{42.array}}",
"value": "{{40.value}}"
},
"metadata": {
"designer": {
"x": -388,
"y": -1086
},
"restore": {
"extra": {
"feeder": {
"label": "Iterator [40]"
},
"target": {
"label": "Custom"
}
}
}
},
"flags": {
"stopIfEmpty": true
}
},
{
"id": 44,
"module": "util:SetVariable2",
"version": 1,
"parameters": {},
"mapper": {
"name": "inverted",
"scope": "roundtrip",
"value": "{{toCollection(43.array; \"value\"; \"array\")}}"
},
"metadata": {
"designer": {
"x": -138,
"y": -1089
},
"restore": {
"expect": {
"scope": {
"label": "One cycle"
}
}
},
"expect": [
{
"name": "name",
"label": "Variable name",
"type": "text",
"required": true
},
{
"name": "scope",
"label": "Variable lifetime",
"type": "select",
"required": true,
"default": "roundtrip",
"options": [
{
"label": "One cycle",
"value": "roundtrip"
},
{
"label": "One execution",
"value": "execution"
}
]
},
{
"name": "value",
"label": "Variable value",
"type": "any"
}
],
"interface": [
{
"name": "inverted",
"label": "inverted",
"type": "any"
}
]
}
}
]
}
],
"metadata": {
"version": 1
}
}