Skip to content

Instantly share code, notes, and snippets.

@nertim
Created July 15, 2016 00:59
Show Gist options
  • Save nertim/7489ec4a05ff884202492f216aeecb0b to your computer and use it in GitHub Desktop.
Save nertim/7489ec4a05ff884202492f216aeecb0b to your computer and use it in GitHub Desktop.
sample definition with query action
{
"$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-04-01-preview/workflowdefinition.json#",
"contentVersion": "1.0.0.0",
"parameters": {},
"triggers": {
"manual": {
"type": "Request",
"kind": "Http",
"inputs": {
"schema": {}
}
}
},
"actions": {
"scope": {
"type": "scope",
"actions": {
"compose1": {
"type": "compose",
"inputs": {
"value": "compose1"
}
},
"compose2": {
"type": "compose",
"inputs": {
"value": "compose2"
}
},
"compose3": {
"type": "compose",
"inputs": {
"value": "compose3"
}
}
}
},
"query": {
"type": "query",
"runAfter": {
"scope": ["succeeded"]
},
"inputs": {
"from": "@result('scope')",
"where": "@equals(item()['name'], 'compose2')"
}
},
"response": {
"type": "response",
"runAfter": {
"query": ["succeeded"]
},
"inputs": {
"body": "@action('query').outputs",
"statusCode": 200
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment