Skip to content

Commit 379746c

Browse files
wuweiranWeiran Wu
authored andcommitted
Add version 2023-10-01-preview for Purview.Workflow (#25893)
* Add version 2023-10-01-preview for Purview.Workflow * Fix * Fix * Fix * Fix * Fix * Add description about max page size --------- Co-authored-by: Weiran Wu <weiranwu@microsoft.com>
1 parent bceefdd commit 379746c

18 files changed

+3035
-3
lines changed

cSpell.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -899,7 +899,7 @@
899899
]
900900
},
901901
{
902-
"filename": "**/specification/purview/data-plane/Azure.Analytics.Purview.Workflow/preview/2022-05-01-preview/purviewWorkflow.json",
902+
"filename": "**/specification/purview/data-plane/Azure.Analytics.Purview.Workflow/preview/**/purviewWorkflow.json",
903903
"words": [
904904
"userrequests",
905905
"DSAR",
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"parameters": {
3+
"api-version": "2023-10-01-preview",
4+
"taskId": "98d98e2c-23fa-4157-a3f8-ff8ce5cc095c",
5+
"approvalResponseComment": {
6+
"comment": "Thanks for raising this!"
7+
}
8+
},
9+
"responses": {
10+
"200": {}
11+
}
12+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"parameters": {
3+
"api-version": "2023-10-01-preview",
4+
"workflowRunId": "b7aaf54b-59c2-4a0e-a7d0-f431044f2198",
5+
"runCancelReply": {
6+
"comment": "Thanks!"
7+
}
8+
},
9+
"responses": {
10+
"200": {}
11+
}
12+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,195 @@
1+
{
2+
"parameters": {
3+
"api-version": "2023-10-01-preview",
4+
"workflowId": "4afb5752-e47f-43a1-8ba7-c696bf8d2745",
5+
"workflowCreateOrUpdateCommand": {
6+
"name": "Create glossary term workflow",
7+
"description": "",
8+
"triggers": [
9+
{
10+
"type": "when_term_creation_is_requested",
11+
"underGlossaryHierarchy": "/glossaries/20031e20-b4df-4a66-a61d-1b0716f3fa48"
12+
}
13+
],
14+
"isEnabled": true,
15+
"actionDag": {
16+
"actions": {
17+
"Start and wait for an approval": {
18+
"type": "Approval",
19+
"inputs": {
20+
"parameters": {
21+
"approvalType": "PendingOnAll",
22+
"title": "Approval Request for Create Glossary Term",
23+
"assignedTo": [
24+
"eece94d9-0619-4669-bb8a-d6ecec5220bc"
25+
]
26+
}
27+
},
28+
"runAfter": {}
29+
},
30+
"Condition": {
31+
"type": "If",
32+
"expression": {
33+
"and": [
34+
{
35+
"equals": [
36+
"@{outputs('Start and wait for an approval')['outcome']}",
37+
"Approved"
38+
]
39+
}
40+
]
41+
},
42+
"actions": {
43+
"Create glossary term": {
44+
"type": "CreateTerm",
45+
"runAfter": {}
46+
},
47+
"Send email notification": {
48+
"type": "EmailNotification",
49+
"inputs": {
50+
"parameters": {
51+
"emailSubject": "Glossary Term Create - APPROVED",
52+
"emailMessage": "Your request for Glossary Term @{runInput()['term']['name']} is approved.",
53+
"emailRecipients": [
54+
"@{runInput()['requestor']}"
55+
]
56+
}
57+
},
58+
"runAfter": {
59+
"Create glossary term": [
60+
"Succeeded"
61+
]
62+
}
63+
}
64+
},
65+
"else": {
66+
"actions": {
67+
"Send reject email notification": {
68+
"type": "EmailNotification",
69+
"inputs": {
70+
"parameters": {
71+
"emailSubject": "Glossary Term Create - REJECTED",
72+
"emailMessage": "Your request for Glossary Term @{runInput()['term']['name']} is rejected.",
73+
"emailRecipients": [
74+
"@{runInput()['requestor']}"
75+
]
76+
}
77+
},
78+
"runAfter": {}
79+
}
80+
}
81+
},
82+
"runAfter": {
83+
"Start and wait for an approval": [
84+
"Succeeded"
85+
]
86+
}
87+
}
88+
}
89+
}
90+
}
91+
},
92+
"responses": {
93+
"200": {
94+
"body": {
95+
"id": "179682a4-917d-11ed-a1eb-0242ac120002",
96+
"triggers": [
97+
{
98+
"type": "when_term_creation_is_requested",
99+
"underGlossaryHierarchy": "/glossaries/20031e20-b4df-4a66-a61d-1b0716f3fa48"
100+
}
101+
],
102+
"createdTime": "2023-01-11T07:05:22.812901453Z",
103+
"createdBy": "eece94d9-0619-4669-bb8a-d6ecec5220bc",
104+
"lastUpdateTime": "2023-01-11T07:05:22.812901453Z",
105+
"updatedBy": "eece94d9-0619-4669-bb8a-d6ecec5220bc",
106+
"name": "Create glossary term workflow",
107+
"isEnabled": true,
108+
"description": "",
109+
"actionDag": {
110+
"actions": {
111+
"Start and wait for an approval": {
112+
"type": "Approval",
113+
"inputs": {
114+
"parameters": {
115+
"approvalType": "PendingOnAll",
116+
"title": "Approval Request for Create Glossary Term",
117+
"assignedTo": [
118+
"eece94d9-0619-4669-bb8a-d6ecec5220bc"
119+
]
120+
}
121+
},
122+
"runAfter": {}
123+
},
124+
"Condition": {
125+
"type": "If",
126+
"expression": {
127+
"and": [
128+
{
129+
"equals": [
130+
"@{outputs('Start and wait for an approval')['outcome']}",
131+
"Approved"
132+
]
133+
}
134+
]
135+
},
136+
"actions": {
137+
"Create glossary term": {
138+
"type": "CreateTerm",
139+
"runAfter": {}
140+
},
141+
"Send email notification": {
142+
"type": "EmailNotification",
143+
"inputs": {
144+
"parameters": {
145+
"emailSubject": "Glossary Term Create - APPROVED",
146+
"emailMessage": "Your request for Glossary Term @{runInput()['term']['name']} is approved.",
147+
"emailRecipients": [
148+
"@{runInput()['requestor']}"
149+
]
150+
}
151+
},
152+
"runAfter": {
153+
"Create glossary term": [
154+
"Succeeded"
155+
]
156+
},
157+
"runtimeConfiguration": {
158+
"secureInput": false,
159+
"secureOutput": false
160+
}
161+
}
162+
},
163+
"else": {
164+
"actions": {
165+
"Send reject email notification": {
166+
"type": "EmailNotification",
167+
"inputs": {
168+
"parameters": {
169+
"emailSubject": "Glossary Term Create - REJECTED",
170+
"emailMessage": "Your request for Glossary Term @{runInput()['term']['name']} is rejected.",
171+
"emailRecipients": [
172+
"@{runInput()['requestor']}"
173+
]
174+
}
175+
},
176+
"runAfter": {},
177+
"runtimeConfiguration": {
178+
"secureInput": false,
179+
"secureOutput": false
180+
}
181+
}
182+
}
183+
},
184+
"runAfter": {
185+
"Start and wait for an approval": [
186+
"Succeeded"
187+
]
188+
}
189+
}
190+
}
191+
}
192+
}
193+
}
194+
}
195+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"parameters": {
3+
"api-version": "2023-10-01-preview",
4+
"workflowId": "4afb5752-e47f-43a1-8ba7-c696bf8d2745"
5+
},
6+
"responses": {
7+
"204": {}
8+
}
9+
}
Lines changed: 108 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,108 @@
1+
{
2+
"parameters": {
3+
"workflowId": "d503b2d2-84da-4a85-9e85-6e82e39d59a0",
4+
"api-version": "2023-10-01-preview"
5+
},
6+
"responses": {
7+
"200": {
8+
"body": {
9+
"id": "773b326e-751c-4277-96a6-c4f522e9750f",
10+
"triggers": [
11+
{
12+
"type": "when_term_creation_is_requested"
13+
}
14+
],
15+
"createdTime": "2023-01-11T10:14:45.485999448Z",
16+
"createdBy": "eece94d9-0619-4669-bb8a-d6ecec5220bc",
17+
"lastUpdateTime": "2023-01-11T10:14:45.485999448Z",
18+
"updatedBy": "eece94d9-0619-4669-bb8a-d6ecec5220bc",
19+
"name": "Create glossary term",
20+
"isEnabled": true,
21+
"description": "",
22+
"actionDag": {
23+
"actions": {
24+
"Start and wait for an approval": {
25+
"type": "Approval",
26+
"inputs": {
27+
"parameters": {
28+
"approvalType": "PendingOnAll",
29+
"title": "Approval Request for Create Glossary Term",
30+
"assignedTo": [
31+
"eece94d9-0619-4669-bb8a-d6ecec5220bc"
32+
]
33+
}
34+
},
35+
"runAfter": {}
36+
},
37+
"Condition": {
38+
"type": "If",
39+
"expression": {
40+
"and": [
41+
{
42+
"equals": [
43+
"@outputs('Start and wait for an approval')['body/outcome']",
44+
"Approved"
45+
]
46+
}
47+
]
48+
},
49+
"actions": {
50+
"Create glossary term": {
51+
"type": "CreateTerm",
52+
"runAfter": {}
53+
},
54+
"Send email notification": {
55+
"type": "EmailNotification",
56+
"inputs": {
57+
"parameters": {
58+
"emailSubject": "Glossary Term Create - APPROVED",
59+
"emailMessage": "Your request for Glossary Term @{triggerBody()['request']['term']['name']} is approved.",
60+
"emailRecipients": [
61+
"@{triggerBody()['request']['requestor']}"
62+
]
63+
}
64+
},
65+
"runAfter": {
66+
"Create glossary term": [
67+
"Succeeded"
68+
]
69+
},
70+
"runtimeConfiguration": {
71+
"secureInput": false,
72+
"secureOutput": false
73+
}
74+
}
75+
},
76+
"else": {
77+
"actions": {
78+
"Send reject email notification": {
79+
"type": "EmailNotification",
80+
"inputs": {
81+
"parameters": {
82+
"emailSubject": "Glossary Term Create - REJECTED",
83+
"emailMessage": "Your request for Glossary Term @{triggerBody()['request']['term']['name']} is rejected.",
84+
"emailRecipients": [
85+
"@{triggerBody()['request']['requestor']}"
86+
]
87+
}
88+
},
89+
"runAfter": {},
90+
"runtimeConfiguration": {
91+
"secureInput": false,
92+
"secureOutput": false
93+
}
94+
}
95+
}
96+
},
97+
"runAfter": {
98+
"Start and wait for an approval": [
99+
"Succeeded"
100+
]
101+
}
102+
}
103+
}
104+
}
105+
}
106+
}
107+
}
108+
}

0 commit comments

Comments
 (0)