Click to Expand Module Export Code
JSON - Copy and Paste this directly in the scenario editor
{
"subflows": [
{
"flow": [
{
"id": 103,
"module": "regexp:Parser",
"version": 1,
"parameters": {
"pattern": "(?:\\**(?<section_title>[^:*]+):?\\**:?\\s+(?<section_value>(?:- .+\\s+)+))",
"global": true,
"sensitive": true,
"multiline": false,
"singleline": false,
"continueWhenNoRes": false,
"ignoreInfiniteLoopsWhenGlobal": false
},
"mapper": {
"text": "{{102.value}}"
},
"metadata": {
"designer": {
"x": 239,
"y": -2211,
"name": "Match Sections"
},
"restore": {
"parameters": {
"sensitive": {
"collapsed": true
},
"multiline": {
"collapsed": true
},
"singleline": {
"collapsed": true
},
"continueWhenNoRes": {
"collapsed": true
}
}
},
"parameters": [
{
"name": "pattern",
"type": "text",
"label": "Pattern",
"required": true
},
{
"name": "global",
"type": "boolean",
"label": "Global match",
"required": true
},
{
"name": "sensitive",
"type": "boolean",
"label": "Case sensitive",
"required": true
},
{
"name": "multiline",
"type": "boolean",
"label": "Multiline",
"required": true
},
{
"name": "singleline",
"type": "boolean",
"label": "Singleline",
"required": true
},
{
"name": "continueWhenNoRes",
"type": "boolean",
"label": "Continue the execution of the route even if the module finds no matches",
"required": true
},
{
"name": "ignoreInfiniteLoopsWhenGlobal",
"type": "boolean",
"label": "Ignore errors when there is an infinite search loop",
"required": true
}
],
"expect": [
{
"name": "text",
"type": "text",
"label": "Text"
}
],
"interface": [
{
"type": "text",
"name": "section_title",
"label": "section_title"
},
{
"type": "text",
"name": "section_value",
"label": "section_value"
},
{
"type": "uinteger",
"name": "i",
"label": "i"
},
{
"type": "any",
"name": "__IMTMATCH__",
"label": "Fallback Match"
}
]
}
},
{
"id": 104,
"module": "regexp:Parser",
"version": 1,
"parameters": {
"pattern": "\\**(?<key>[^*:]+)\\**: (?<value>.+)",
"global": true,
"sensitive": true,
"multiline": false,
"singleline": false,
"continueWhenNoRes": false,
"ignoreInfiniteLoopsWhenGlobal": false
},
"mapper": {
"text": "{{103.section_value}}"
},
"metadata": {
"designer": {
"x": 483,
"y": -2212,
"name": "Match sub-sections"
},
"restore": {},
"parameters": [
{
"name": "pattern",
"type": "text",
"label": "Pattern",
"required": true
},
{
"name": "global",
"type": "boolean",
"label": "Global match",
"required": true
},
{
"name": "sensitive",
"type": "boolean",
"label": "Case sensitive",
"required": true
},
{
"name": "multiline",
"type": "boolean",
"label": "Multiline",
"required": true
},
{
"name": "singleline",
"type": "boolean",
"label": "Singleline",
"required": true
},
{
"name": "continueWhenNoRes",
"type": "boolean",
"label": "Continue the execution of the route even if the module finds no matches",
"required": true
},
{
"name": "ignoreInfiniteLoopsWhenGlobal",
"type": "boolean",
"label": "Ignore errors when there is an infinite search loop",
"required": true
}
],
"expect": [
{
"name": "text",
"type": "text",
"label": "Text"
}
],
"interface": [
{
"type": "text",
"name": "key",
"label": "key"
},
{
"type": "text",
"name": "value",
"label": "value"
},
{
"type": "uinteger",
"name": "i",
"label": "i"
},
{
"type": "any",
"name": "__IMTMATCH__",
"label": "Fallback Match"
}
]
}
},
{
"id": 105,
"module": "builtin:BasicAggregator",
"version": 1,
"parameters": {
"feeder": 104
},
"mapper": {
"key": "{{104.key}}",
"value": "{{104.value}}"
},
"metadata": {
"designer": {
"x": 735,
"y": -2213
},
"restore": {
"extra": {
"feeder": {
"label": "Match sub-sections - Match pattern [104]"
},
"target": {
"label": "Custom"
}
}
}
}
},
{
"id": 106,
"module": "util:SetVariable2",
"version": 1,
"parameters": {},
"mapper": {
"name": "section values",
"scope": "roundtrip",
"value": "{{toCollection(105.array; \"key\"; \"value\")}}"
},
"metadata": {
"designer": {
"x": 979,
"y": -2212
},
"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": "section values",
"label": "section values",
"type": "any"
}
]
}
},
{
"id": 107,
"module": "builtin:BasicAggregator",
"version": 1,
"parameters": {
"feeder": 103
},
"mapper": {
"section values": "{{106.`section values`}}",
"section_title": "{{103.section_title}}",
"section_value": "{{103.section_value}}"
},
"metadata": {
"designer": {
"x": 1231,
"y": -2212,
"messages": [
{
"category": "last",
"severity": "warning",
"message": "A transformer should not be the last module in the route."
}
]
},
"restore": {
"extra": {
"feeder": {
"label": "Match Sections - Match pattern [103]"
},
"target": {
"label": "Custom"
}
}
}
}
}
]
}
],
"metadata": {
"version": 1
}
}