View Module Export Code
JSON
{
"subflows": [
{
"flow": [
{
"id": 140,
"module": "util:ComposeTransformer",
"version": 1,
"parameters": {},
"mapper": {
"value": "logo\n[https://app.discountdata.ng/assets/images/full-logo.png]https://app.discountdata.ng\n\nDiscount Data - Nigeria's topmost enterprise solution to your telecom needs.\n\n\nNOTIFICATION ALERT\n\nHi staffdd,\n\nGlo CORPORATE GIFTING 1GB - 30 Days to 08110768733 Reference ID Is :\n#202406131022Y5WSUG49ERTYGT666aba5d7dbd3\n\nIf you wish to option out from this kind of mail, please contact us or ignore\nthis message.\n\nIf you face any issues, please contact us at help@discountdata.ng\n\n(c) 2024 Discount Data. All rights reserved.\n\nThis email was sent to you as a registered member of Discount Data\n[https://app.discountdata.ng]. Thank You."
},
"metadata": {
"designer": {
"x": -2316,
"y": -1382
},
"restore": {},
"expect": [
{
"name": "value",
"type": "text",
"label": "Text"
}
]
}
},
{
"id": 141,
"module": "regexp:Parser",
"version": 1,
"parameters": {
"pattern": "(?<=\\n)(?<match>.+?(?<phone>\\d[\\d\\s]{7,}).+Reference.+id[\\w\\W]+#(?<ref>\\w+\\b))",
"global": false,
"sensitive": false,
"multiline": false,
"singleline": false,
"continueWhenNoRes": false
},
"mapper": {
"text": "{{140.value}}"
},
"metadata": {
"designer": {
"x": -2070,
"y": -1380,
"messages": [
{
"category": "last",
"severity": "warning",
"message": "A transformer should not be the last module in the route."
}
]
},
"restore": {
"parameters": {
"global": {
"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
}
],
"expect": [
{
"name": "text",
"type": "text",
"label": "Text"
}
],
"interface": [
{
"type": "text",
"name": "match",
"label": "match"
},
{
"type": "text",
"name": "phone",
"label": "phone"
},
{
"type": "text",
"name": "ref",
"label": "ref"
}
]
}
}
]
}
],
"metadata": {
"version": 1
}
}