MINOR: Update Glossary Approval Workflow (#19787)

* Update Glossary Approval Workflow

* Update Default Workflows

* Add small Fix to PeriodicBatchEntity variables
This commit is contained in:
IceS2 2025-02-14 17:57:51 +01:00 committed by GitHub
parent 165af4aad0
commit fa2d9eb81d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 26 additions and 4 deletions

View File

@ -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));

View File

@ -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"