Process on True Example¶
- Use Case: A service provider for Northeastern US school district clients uses DataOps to trigger several school procedures. One process takes the input from an app installed on school superintendents' phones for issuing school closing notices and automates the required responses in the event of cancellations.
- Example Recipe: In this example, the recipe variation starts with an action node, which polls the app for inputs at 6:00 a.m. daily. If it detects a "closed" authorization, it processes a number of container nodes for issuing cancellations and sending notifications. Finally, it collects the confirmation outputs from all nodes and updates the app so that the superintendent knows the proper actions were taken.
- Conditional Node Role: A conditional node uses a variable result from the polling process to determine if the remaining nodes of the variation should process or if the order run should stop. The "school_status" variable has a few possible values, one of which is "closed."

A conditional node determines if the order run should continue or stop.
Web App Configuration¶
The following image shows how the conditional node and its condition statement are configured using the web app form.

The conditional node evaluates the school_status variable for a string value.
File Contents¶
The platform records the condition node configuration shown above in the recipe's variations.json file.
{
"variation-list": {
"school_closings_process": {
"description": "Run automated processes for school day cancellation",
"graph-setting": "closings_graph"
}
},
"graph-setting-list": {
"closings_graph": [
[
"Poll_Superintendent_App",
"Detect_cancellation"
],
[
"Detect_cancellation",
"Cancel_Transport",
{
"condition": "condition_1"
}
],
[
"Detect_cancellation",
"Notify_Teachers_SMS",
{
"condition": "condition_1"
}
],
[
"Detect_cancellation",
"Cancel_Food_Services",
{
"condition": "condition_1"
}
],
[
"Detect_cancellation",
"Update_Media",
{
"condition": "condition_1"
}
],
[
"Detect_cancellation",
"Init_FacilitiesMgmt_Closed_Process",
{
"condition": "condition_1"
}
],
[
"Update_Database",
"Update_App"
],
[
"Cancel_Transport",
"Update_Database"
],
[
"Notify_Teachers_SMS",
"Update_Database"
],
[
"Cancel_Food_Services",
"Update_Database"
],
[
"Update_Media",
"Update_Database"
],
[
"Init_FacilitiesMgmt_Closed_Process",
"Update_Database"
]
]
},
"conditions-list": {
"condition_1": {
"mode": "condition",
"index": 1,
"condition": {
"list": [
{
"metric": "closed",
"variable": "school_status",
"compare": "equal-to",
"execute": [
"All",
],
"isTrueExecution": true,
"type": "test-contents-as-string",
}
]
},
"node": "Detect_cancellation"
}
},
"schedule-setting-list": {
"Daily_6am_EST": {
"schedule": "0 6 * * *",
"scheduleTimeZone": "America/New_York"
}
}
}