{
"id": "03030-404040-323232",
"name": "Send Email workflow",
"variables": [
{
"$type": "string",
"value": "value 1",
"name": "MyVariable1",
"label": "My string variable"
}
],
"steps": [
{
"$type": "start",
"triggers": [
{
"$type": "manual"
}
],
"nextStepIds": [
"step1"
],
"id": "03030-404040-323232",
"name": "Start Step",
"sourceNodeIds": []
},
{
"$type": "yesNo",
"yesId": "emailStep1",
"noId": "jsStep1",
"condition": {
"$type": "variables",
"variableA": {
"$type": "int",
"value": 20,
"name": "ConditionVar1",
"label": "the first condition variable"
},
"variableB": {
"$type": "int",
"value": 20,
"name": "ConditionVar2",
"label": "the second condition variable. This has an equal operator so the 'Yes' part will be executed"
},
"operator": "Equal"
},
"id": "step1",
"name": "A simple yes no step",
"sourceNodeIds": [],
"postStepScript": {
"value": "log(\"hi\")"
}
},
{
"$type": "email",
"recipients": [
"test@softone.gr"
],
"body": "Hello, this can include other variables like so {{ConditionVar2}}",
"nextStepsIds": [],
"id": "emailStep1",
"name": "This step will send an email",
"sourceNodeIds": [
"step1"
]
},
{
"$type": "javascript",
"script": {
"value": "1+5"
},
"nextStepsIds": [],
"id": "jsStep1",
"name": "Step that will not be executed",
"sourceNodeIds": [
"step1"
]
}
]
}