View Module Export Code
JSON
{
"subflows": [
{
"flow": [
{
"id": 47,
"module": "json:ParseJSON",
"version": 1,
"parameters": {
"type": ""
},
"mapper": {
"json": "[\n {\n \"responseId\": \"0Dgx7P\",\n \"submissionId\": \"0Dgx7P\",\n \"respondentId\": \"yxEEA0\",\n \"formId\": \"mZV6Oz\",\n \"formName\": \"Ordinal to Numerical\",\n \"createdAt\": \"2024-06-01T23:13:13.000Z\",\n \"fields\": {\n \"What's your take?\": {\n \"d4bc6f52-6f2f-45ea-b798-e608085f9c80\": [\n \"Absolutely Agree\"\n ],\n \"6f4812a3-76e6-494a-82c7-c3694738c9d4\": [\n \"Neutral\"\n ],\n \"214acfde-2db3-40e1-83c3-78b90ea55b29\": [\n \"Neutral\"\n ],\n \"2c0341cc-84db-46ed-997f-32e769744c04\": [\n \"Agree\"\n ],\n \"6479389b-9035-4026-9ff9-3d13fd3e1fbd\": [\n \"Absolutely Agree\"\n ]\n }\n },\n \"eventId\": \"fdf9ac97-47b8-4258-8c79-6dc92208d03c\",\n \"fieldsById\": {\n \"question_NqvqlO\": {\n \"d4bc6f52-6f2f-45ea-b798-e608085f9c80\": [\n \"Absolutely Agree\"\n ],\n \"6f4812a3-76e6-494a-82c7-c3694738c9d4\": [\n \"Neutral\"\n ],\n \"214acfde-2db3-40e1-83c3-78b90ea55b29\": [\n \"Neutral\"\n ],\n \"2c0341cc-84db-46ed-997f-32e769744c04\": [\n \"Agree\"\n ],\n \"6479389b-9035-4026-9ff9-3d13fd3e1fbd\": [\n \"Absolutely Agree\"\n ]\n }\n }\n }\n]"
},
"metadata": {
"designer": {
"x": -975,
"y": -1491
},
"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": 51,
"module": "util:SetVariable2",
"version": 1,
"parameters": {},
"mapper": {
"name": "responses",
"scope": "roundtrip",
"value": "{{toArray(47.fieldsById.question_NqvqlO)}}"
},
"metadata": {
"designer": {
"x": -731,
"y": -1492
},
"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": "responses",
"label": "responses",
"type": "any"
}
]
}
},
{
"id": 48,
"module": "builtin:BasicFeeder",
"version": 1,
"parameters": {},
"mapper": {
"array": "{{51.responses}}"
},
"metadata": {
"designer": {
"x": -490,
"y": -1489
},
"restore": {
"expect": {
"array": {
"mode": "edit"
}
}
},
"expect": [
{
"name": "array",
"type": "array",
"label": "Array",
"mode": "edit",
"spec": []
}
]
}
},
{
"id": 49,
"module": "util:SetVariable2",
"version": 1,
"parameters": {},
"mapper": {
"name": "score",
"scope": "roundtrip",
"value": "{{switch(48.value[]; \"Absolutely Disagree\"; 1; \"Disagree\"; 2; \"Neutral\"; 3; \"Agree\"; 4; \"Absolutely Agree\"; 5)}}"
},
"metadata": {
"designer": {
"x": -245,
"y": -1490,
"messages": [
{
"category": "reference",
"severity": "warning",
"message": "Referenced module 'Flow Control - Iterator' [48] is not accessible."
}
]
},
"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": "score",
"label": "score",
"type": "any"
}
]
}
},
{
"id": 50,
"module": "builtin:BasicAggregator",
"version": 1,
"parameters": {
"feeder": 48
},
"mapper": {
"score": "{{49.score}}",
"key": "{{48.key}}"
},
"metadata": {
"designer": {
"x": -4,
"y": -1492,
"messages": [
{
"category": "last",
"severity": "warning",
"message": "A transformer should not be the last module in the route."
}
]
},
"restore": {
"extra": {
"feeder": {
"label": "Iterator [48]"
},
"target": {
"label": "Custom"
}
}
}
}
}
]
}
],
"metadata": {
"version": 1
}
}