mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-10-17 03:38:18 +00:00
MINOR: Update Glossary Approval Workflow (#19787)
* Update Glossary Approval Workflow * Update Default Workflows * Add small Fix to PeriodicBatchEntity variables
This commit is contained in:
parent
165af4aad0
commit
fa2d9eb81d
@ -121,12 +121,12 @@ public class PeriodicBatchEntityTrigger implements TriggerInterface {
|
||||
.build();
|
||||
|
||||
IOParameter inputParameter = new IOParameter();
|
||||
inputParameter.setSource(getNamespacedVariableName(GLOBAL_NAMESPACE, RELATED_ENTITY_VARIABLE));
|
||||
inputParameter.setSource(RELATED_ENTITY_VARIABLE);
|
||||
inputParameter.setTarget(getNamespacedVariableName(GLOBAL_NAMESPACE, RELATED_ENTITY_VARIABLE));
|
||||
|
||||
IOParameter outputParameter = new IOParameter();
|
||||
outputParameter.setSource(getNamespacedVariableName(GLOBAL_NAMESPACE, EXCEPTION_VARIABLE));
|
||||
outputParameter.setTarget(getNamespacedVariableName(GLOBAL_NAMESPACE, EXCEPTION_VARIABLE));
|
||||
outputParameter.setTarget(EXCEPTION_VARIABLE);
|
||||
|
||||
workflowTrigger.setInParameters(List.of(inputParameter));
|
||||
workflowTrigger.setOutParameters(List.of(outputParameter));
|
||||
|
@ -24,6 +24,12 @@
|
||||
"name": "ApprovedEnd",
|
||||
"displayName": "Glossary Term Status: Approved"
|
||||
},
|
||||
{
|
||||
"type": "endEvent",
|
||||
"subType": "endEvent",
|
||||
"name": "ApprovedEndAfterApproval",
|
||||
"displayName": "Glossary Term Status: Approved"
|
||||
},
|
||||
{
|
||||
"type": "endEvent",
|
||||
"subType": "endEvent",
|
||||
@ -101,7 +107,7 @@
|
||||
{
|
||||
"type": "automatedTask",
|
||||
"subType": "setGlossaryTermStatusTask",
|
||||
"name": "SetGlossaryTermStatusToApproved",
|
||||
"name": "SetGlossaryTermStatusToApprovedAfterApproval",
|
||||
"displayName": "Set Status to 'Approved'",
|
||||
"config": {
|
||||
"glossaryTermStatus": "Approved"
|
||||
@ -111,6 +117,18 @@
|
||||
"updatedBy": "ApproveGlossaryTerm"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "automatedTask",
|
||||
"subType": "setGlossaryTermStatusTask",
|
||||
"name": "SetGlossaryTermStatusToApproved",
|
||||
"displayName": "Set Status to 'Approved'",
|
||||
"config": {
|
||||
"glossaryTermStatus": "Approved"
|
||||
},
|
||||
"inputNamespaceMap": {
|
||||
"relatedEntity": "global"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "automatedTask",
|
||||
"subType": "setGlossaryTermStatusTask",
|
||||
@ -160,7 +178,7 @@
|
||||
},
|
||||
{
|
||||
"from": "ApproveGlossaryTerm",
|
||||
"to": "SetGlossaryTermStatusToApproved",
|
||||
"to": "SetGlossaryTermStatusToApprovedAfterApproval",
|
||||
"condition": "true"
|
||||
},
|
||||
{
|
||||
@ -168,6 +186,10 @@
|
||||
"to": "SetGlossaryTermStatusToRejected",
|
||||
"condition": "false"
|
||||
},
|
||||
{
|
||||
"from": "SetGlossaryTermStatusToApprovedAfterApproval",
|
||||
"to": "ApprovedEndAfterApproval"
|
||||
},
|
||||
{
|
||||
"from": "SetGlossaryTermStatusToApproved",
|
||||
"to": "ApprovedEnd"
|
||||
|
Loading…
x
Reference in New Issue
Block a user