-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtemplate.json
More file actions
93 lines (93 loc) · 3.79 KB
/
template.json
File metadata and controls
93 lines (93 loc) · 3.79 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"workflows_testu_name": {
"defaultValue": "testu",
"type": "String"
}
},
"variables": {},
"resources": [
{
"type": "Microsoft.Logic/workflows",
"apiVersion": "2017-07-01",
"name": "[parameters('workflows_testu_name')]",
"location": "eastus",
"identity": {
"principalId": "aeb38f2b-5959-47c8-909e-8e1c1e861ce2",
"tenantId": "a225a19c-d729-4eb9-86bb-292de648956c",
"type": "SystemAssigned"
},
"properties": {
"state": "Enabled",
"definition": {
"$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#",
"contentVersion": "1.0.0.0",
"parameters": {},
"triggers": {
"manual": {
"type": "Request",
"kind": "Http",
"inputs": {
"schema": {
"items": {
"properties": {
"OrderId": {
"type": "string"
},
"Price": {
"type": "string"
},
"Product": {
"type": "string"
},
"Quantity": {
"type": "string"
}
},
"required": [
"OrderId",
"Product",
"Quantity",
"Price"
],
"type": "object"
},
"type": "array"
}
}
}
},
"actions": {
"Filter_array": {
"runAfter": {
"Select": [
"Succeeded"
]
},
"type": "Query",
"inputs": {
"from": "@body('Select')",
"where": "@greater(int(item()['Order_Id']), 2)"
}
},
"Select": {
"runAfter": {},
"type": "Select",
"inputs": {
"from": "@triggerBody()",
"select": {
"Order_Id": "@item()['OrderId']",
"ProductName": "@item()['Product']"
}
}
}
},
"outputs": {}
},
"parameters": {}
}
}
]
}