Skip to content

Commit

Permalink
[Hub Generated] Publish private branch 'jiwang6/workflow-api' (#22241)
Browse files Browse the repository at this point in the history
* Add purview workflow api.

* Fix prettier check errors

* Fix workflow tag

* Fix spell check error

* Fix linter error

* Fix spell error and remove redundant example

* Remove readme.md

* Fix linter warning

* Add reassign workflow request API

* Add nextLink in example file

* Fix spell error

* Fix example value

* fix opertaion id

* Fix some issue

* Fix reassign task request operationId

* Fix azure_auth scope

* Re-organize workflow API

* Add enum option for some parameters

* Fix enum option for some parameters

* Rename request type filter

* Add description for top level resource schema

* Add description for top level resource schema

* Add RequestEventPayloadWebRequest multiple sub models

* Rename and change the model of some properties

* Update workflow swagger

* Update workflow swagger for SDK board review

* Update workflow app model

* Remove list/get/cancel userrequest api

* lint error fix

* Fix lint error

* Fix small swagger issue

* fix small swagger issue

* Add unknow words

* fix small swagger issue

* Fix small swagger issue

* Fix some properties

* Fix swagger

Co-authored-by: Jing Wang <[email protected]>
  • Loading branch information
CordeliaGrey and Jing Wang authored Jan 19, 2023
1 parent deba715 commit 3bb28b0
Show file tree
Hide file tree
Showing 19 changed files with 3,090 additions and 0 deletions.
10 changes: 10 additions & 0 deletions cSpell.json
Original file line number Diff line number Diff line change
Expand Up @@ -886,6 +886,16 @@
"PrepareTimedout",
"CommitTimedout"
]
},
{
"filename": "**/specification/purview/data-plane/Azure.Analytics.Purview.Workflow/preview/2022-05-01-preview/purviewWorkflow.json",
"words": [
"userrequests",
"DSAR",
"dsar",
"workflowruns",
"workflowtasks"
]
}
],
"enableFiletypes": [
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"parameters": {
"api-version": "2022-05-01-preview",
"taskId": "98d98e2c-23fa-4157-a3f8-ff8ce5cc095c",
"approvalResponseComment": {
"comment": "Thanks for raising this!"
}
},
"responses": {
"200": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"parameters": {
"api-version": "2022-05-01-preview",
"workflowRunId": "b7aaf54b-59c2-4a0e-a7d0-f431044f2198",
"runCancelReply": {
"comment": "Thanks!"
}
},
"responses": {
"200": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"parameters": {
"api-version": "2022-05-01-preview",
"taskId": "d5bd0215-df84-4245-8e18-3a8f012be376",
"dsarTaskClaimCommand": {
"comment": "Thanks!"
}
},
"responses": {
"200": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,195 @@
{
"parameters": {
"api-version": "2022-05-01-preview",
"workflowId": "4afb5752-e47f-43a1-8ba7-c696bf8d2745",
"workflowCreateOrUpdateCommand": {
"name": "Create glossary term workflow",
"description": "",
"triggers": [
{
"type": "when_term_creation_is_requested",
"underGlossaryHierarchy": "/glossaries/20031e20-b4df-4a66-a61d-1b0716f3fa48"
}
],
"isEnabled": true,
"actionDag": {
"actions": {
"Start and wait for an approval": {
"type": "Approval",
"inputs": {
"parameters": {
"approvalType": "PendingOnAll",
"title": "Approval Request for Create Glossary Term",
"assignedTo": [
"eece94d9-0619-4669-bb8a-d6ecec5220bc"
]
}
},
"runAfter": {}
},
"Condition": {
"type": "If",
"expression": {
"and": [
{
"equals": [
"@outputs('Start and wait for an approval')['body/outcome']",
"Approved"
]
}
]
},
"actions": {
"Create glossary term": {
"type": "CreateTerm",
"runAfter": {}
},
"Send email notification": {
"type": "EmailNotification",
"inputs": {
"parameters": {
"emailSubject": "Glossary Term Create - APPROVED",
"emailMessage": "Your request for Glossary Term @{triggerBody()['request']['term']['name']} is approved.",
"emailRecipients": [
"@{triggerBody()['request']['requestor']}"
]
}
},
"runAfter": {
"Create glossary term": [
"Succeeded"
]
}
}
},
"else": {
"actions": {
"Send reject email notification": {
"type": "EmailNotification",
"inputs": {
"parameters": {
"emailSubject": "Glossary Term Create - REJECTED",
"emailMessage": "Your request for Glossary Term @{triggerBody()['request']['term']['name']} is rejected.",
"emailRecipients": [
"@{triggerBody()['request']['requestor']}"
]
}
},
"runAfter": {}
}
}
},
"runAfter": {
"Start and wait for an approval": [
"Succeeded"
]
}
}
}
}
}
},
"responses": {
"200": {
"body": {
"id": "179682a4-917d-11ed-a1eb-0242ac120002",
"triggers": [
{
"type": "when_term_creation_is_requested",
"underGlossaryHierarchy": "/glossaries/20031e20-b4df-4a66-a61d-1b0716f3fa48"
}
],
"createdTime": "2023-01-11T07:05:22.812901453Z",
"createdBy": "eece94d9-0619-4669-bb8a-d6ecec5220bc",
"lastUpdateTime": "2023-01-11T07:05:22.812901453Z",
"updatedBy": "eece94d9-0619-4669-bb8a-d6ecec5220bc",
"name": "Create glossary term workflow",
"isEnabled": true,
"description": "",
"actionDag": {
"actions": {
"Start and wait for an approval": {
"type": "Approval",
"inputs": {
"parameters": {
"approvalType": "PendingOnAll",
"title": "Approval Request for Create Glossary Term",
"assignedTo": [
"eece94d9-0619-4669-bb8a-d6ecec5220bc"
]
}
},
"runAfter": {}
},
"Condition": {
"type": "If",
"expression": {
"and": [
{
"equals": [
"@outputs('Start and wait for an approval')['body/outcome']",
"Approved"
]
}
]
},
"actions": {
"Create glossary term": {
"type": "CreateTerm",
"runAfter": {}
},
"Send email notification": {
"type": "EmailNotification",
"inputs": {
"parameters": {
"emailSubject": "Glossary Term Create - APPROVED",
"emailMessage": "Your request for Glossary Term @{triggerBody()['request']['term']['name']} is approved.",
"emailRecipients": [
"@{triggerBody()['request']['requestor']}"
]
}
},
"runAfter": {
"Create glossary term": [
"Succeeded"
]
},
"runtimeConfiguration": {
"secureInput": false,
"secureOutput": false
}
}
},
"else": {
"actions": {
"Send reject email notification": {
"type": "EmailNotification",
"inputs": {
"parameters": {
"emailSubject": "Glossary Term Create - REJECTED",
"emailMessage": "Your request for Glossary Term @{triggerBody()['request']['term']['name']} is rejected.",
"emailRecipients": [
"@{triggerBody()['request']['requestor']}"
]
}
},
"runAfter": {},
"runtimeConfiguration": {
"secureInput": false,
"secureOutput": false
}
}
}
},
"runAfter": {
"Start and wait for an approval": [
"Succeeded"
]
}
}
}
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"parameters": {
"api-version": "2022-05-01-preview",
"workflowId": "4afb5752-e47f-43a1-8ba7-c696bf8d2745"
},
"responses": {
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
{
"parameters": {
"workflowId": "d503b2d2-84da-4a85-9e85-6e82e39d59a0",
"api-version": "2022-05-01-preview"
},
"responses": {
"200": {
"body": {
"id": "773b326e-751c-4277-96a6-c4f522e9750f",
"triggers": [
{
"type": "when_term_creation_is_requested"
}
],
"createdTime": "2023-01-11T10:14:45.485999448Z",
"createdBy": "eece94d9-0619-4669-bb8a-d6ecec5220bc",
"lastUpdateTime": "2023-01-11T10:14:45.485999448Z",
"updatedBy": "eece94d9-0619-4669-bb8a-d6ecec5220bc",
"name": "Create glossary term",
"isEnabled": true,
"description": "",
"actionDag": {
"actions": {
"Start and wait for an approval": {
"type": "Approval",
"inputs": {
"parameters": {
"approvalType": "PendingOnAll",
"title": "Approval Request for Create Glossary Term",
"assignedTo": [
"eece94d9-0619-4669-bb8a-d6ecec5220bc"
]
}
},
"runAfter": {}
},
"Condition": {
"type": "If",
"expression": {
"and": [
{
"equals": [
"@outputs('Start and wait for an approval')['body/outcome']",
"Approved"
]
}
]
},
"actions": {
"Create glossary term": {
"type": "CreateTerm",
"runAfter": {}
},
"Send email notification": {
"type": "EmailNotification",
"inputs": {
"parameters": {
"emailSubject": "Glossary Term Create - APPROVED",
"emailMessage": "Your request for Glossary Term @{triggerBody()['request']['term']['name']} is approved.",
"emailRecipients": [
"@{triggerBody()['request']['requestor']}"
]
}
},
"runAfter": {
"Create glossary term": [
"Succeeded"
]
},
"runtimeConfiguration": {
"secureInput": false,
"secureOutput": false
}
}
},
"else": {
"actions": {
"Send reject email notification": {
"type": "EmailNotification",
"inputs": {
"parameters": {
"emailSubject": "Glossary Term Create - REJECTED",
"emailMessage": "Your request for Glossary Term @{triggerBody()['request']['term']['name']} is rejected.",
"emailRecipients": [
"@{triggerBody()['request']['requestor']}"
]
}
},
"runAfter": {},
"runtimeConfiguration": {
"secureInput": false,
"secureOutput": false
}
}
}
},
"runAfter": {
"Start and wait for an approval": [
"Succeeded"
]
}
}
}
}
}
}
}
}
Loading

0 comments on commit 3bb28b0

Please sign in to comment.