I simulated your scenario and it’s availabe as a blueprint below. Copy and paste it into your scenario and it should work.
To install the scenario blueprint (JSON) I made follow these steps:
- Expand the “Scenario Blueprint” by clicking on the arrow
- Copy the blueprint text into your clipboard using the copy button in the top-right of the code block (you can also select the text manually)
- Paste the text into a new scenario.
Your new scenario will now have all the modules I used to simulate an attempt at a solution to your question. You may need to confirm the configuration or reselect connections of each imported module in the scenario.
Scenario Blueprint
{
"subflows": [
{
"flow": [
{
"id": 1,
"module": "util:SetVariable2",
"version": 1,
"parameters": {},
"mapper": {
"name": "Filesize",
"scope": "roundtrip",
"value": "L"
},
"metadata": {
"designer": {
"x": 0,
"y": 0
},
"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": "Filesize",
"label": "Filesize",
"type": "any"
}
]
}
},
{
"id": 2,
"module": "util:SetVariable2",
"version": 1,
"parameters": {},
"mapper": {
"name": "file_url",
"scope": "roundtrip",
"value": "{{if(1.Filesize = \"S\"; \"SMALL_URL\"; \"LARGE_URL\")}}"
},
"metadata": {
"designer": {
"x": 300,
"y": 0
},
"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": "file_url",
"label": "file_url",
"type": "any"
}
]
}
}
]
}
],
"metadata": {
"version": 1
}
}