-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MINOR: Use namespaced variables #19648
MINOR: Use namespaced variables #19648
Conversation
...ata-service/src/main/java/org/openmetadata/service/governance/workflows/WorkflowHandler.java
Outdated
Show resolved
Hide resolved
...ata-service/src/main/java/org/openmetadata/service/governance/workflows/WorkflowHandler.java
Outdated
Show resolved
Hide resolved
...ata-service/src/main/java/org/openmetadata/service/governance/workflows/WorkflowHandler.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The implementation works and is good. Left some comments/suggestions regarding validations. The only blocker is regarding the use of null
as namespace. Other comments are suggestions/discussions for streamlining the API and offloading as of the validation as possible to the workflow definition:
- validate inputs are valid in terms of given available nodes and compatibility of output to input.
- validate edge conditions are valid given the variable type they're referring to.
...rvice/governance/workflows/elements/nodes/automatedTask/impl/SetEntityCertificationImpl.java
Show resolved
Hide resolved
...rvice/src/main/java/org/openmetadata/service/governance/workflows/WorkflowEventConsumer.java
Show resolved
Hide resolved
...json/schema/governance/workflows/elements/nodes/automatedTask/checkEntityAttributesTask.json
Show resolved
Hide resolved
...son/schema/governance/workflows/elements/nodes/automatedTask/setEntityCertificationTask.json
Show resolved
Hide resolved
...data-service/src/main/resources/json/data/governance/workflows/GlossaryApprovalWorkflow.json
Show resolved
Hide resolved
...ata-service/src/main/java/org/openmetadata/service/governance/workflows/WorkflowHandler.java
Outdated
Show resolved
Hide resolved
|
|
Describe your changes:
In order to be able to have different tasks in a single workflow running in parallel, we need to have namespaced variables.
Until now we were using hardcoded values so one task would overwrite or read the result from another one.
This implementation basically does the following:
<namespace>_<variable_name>
global
namespaceThis PR also removes some unused code that was added before:
Type of change:
Checklist:
Fixes <issue-number>: <short explanation>