{
	"task0":
	{
		"pipe":false,
		"url":"http://localhost:9600/task0"
	},
	"task1":
	{
		"service":"appinflux",
		"servicepath":"/motorola/publicsafetycloud/temperature/7d",
		"pipe":false,
		"synch":
		{
			"op":"&",
			"arr": [
			"task0"
			]
		},
		"outputvar":"temperature"
	},
	"task2":
	{
		"service":"appinflux",
		"servicepath":"/motorola/publicsafetycloud/temphum/7d",
		"pipe":false,
		"synch":
		{
			"op":"&",
			"arr": [
			"task0"
			]
		},
		"outputvar":"temphum"
	},
	"checkthreshold":
	{
		"service":"taskserver",
		"servicepath":"/task3",
		"payload1":{"text":"testpayload"},
		"method":"POST",
		"pipe":false,
		"priority":20,
		"switch":[
			{
			"var":"temphum.0.value",
			"op":"<",
			"value":"39",
			"nextTasks":["notifyslackthresholdabove"]
			},
			{
				"default":true,
				"nextTasks":["notifyslackthresholdbelow"]				
			}
		],
		"synch":
		{
			"op":"&",
			"arr": [
			"task1",
			"task2"
			]
		}
	},
	"notifyslack":
	{
		"url":"https://hooks.slack.com/services/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",
		"payload":{"text": "Notification with JSON = $vars", "username": "phani"},
		"pipe":false,
		"priority":20,
		"arrStatus":[302],
		"method":"POST",
		"clearvars": true,
		"synch":
		{
			"op":"&",
			"arr": [
			"checkthreshold"
			]
		}
	},
	"notifyslackthresholdabove":
	{
		"url":"https://hooks.slack.com/services/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",
		"payload":{"text": "threshold exceeded with JSON = $vars", "username": "phani"},
		"pipe":false,
		"priority":20,
		"arrStatus":[302],
		"method":"POST",
		"clearvars": true
	},
	"notifyslackthresholdbelow":
	{
		"url":"https://hooks.slack.com/services/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",
		"payload":{"text": "threshold did not exceed with JSON = $vars", "username": "phani"},
		"pipe":false,
		"priority":20,
		"arrStatus":[302],
		"method":"POST",
		"clearvars": true
	}
}