diff --git a/openmetadata-ui/src/main/resources/ui/src/generated/api/governance/createWorkflowDefinition.ts b/openmetadata-ui/src/main/resources/ui/src/generated/api/governance/createWorkflowDefinition.ts index 1a687f00e68..32a4bcdb660 100644 --- a/openmetadata-ui/src/main/resources/ui/src/generated/api/governance/createWorkflowDefinition.ts +++ b/openmetadata-ui/src/main/resources/ui/src/generated/api/governance/createWorkflowDefinition.ts @@ -250,11 +250,10 @@ export interface TriggerConfiguration { */ exclude?: string[]; /** - * JSON Logic expression to determine if the workflow should be triggered. The expression - * has access to: entity (current entity), changeDescription (what changed), updatedBy (user - * who made the change), changedFields (array of field names that changed). + * JSON Logic expression to determine if the workflow should be triggered. Can be a string + * (applied to all entity types) or an object mapping entity types to their specific filters. */ - filter?: string; + filter?: FilterConditionObject | string; /** * Number of Entities to process at once. */ @@ -278,6 +277,17 @@ export enum Event { Updated = "Updated", } +/** + * Entity-specific filters with optional default + */ +export interface FilterConditionObject { + /** + * Default filter for entity types not explicitly configured + */ + default?: string; + [property: string]: string; +} + /** * Entity-specific filters with optional default */ diff --git a/openmetadata-ui/src/main/resources/ui/src/generated/governance/workflows/elements/triggers/eventBasedEntityTrigger.ts b/openmetadata-ui/src/main/resources/ui/src/generated/governance/workflows/elements/triggers/eventBasedEntityTrigger.ts index f5aade7959c..98a1f565c30 100644 --- a/openmetadata-ui/src/main/resources/ui/src/generated/governance/workflows/elements/triggers/eventBasedEntityTrigger.ts +++ b/openmetadata-ui/src/main/resources/ui/src/generated/governance/workflows/elements/triggers/eventBasedEntityTrigger.ts @@ -42,11 +42,10 @@ export interface TriggerConfiguration { */ exclude?: string[]; /** - * JSON Logic expression to determine if the workflow should be triggered. The expression - * has access to: entity (current entity), changeDescription (what changed), updatedBy (user - * who made the change), changedFields (array of field names that changed). + * JSON Logic expression to determine if the workflow should be triggered. Can be a string + * (applied to all entity types) or an object mapping entity types to their specific filters. */ - filter?: string; + filter?: FilterConditionObject | string; } /** @@ -56,3 +55,14 @@ export enum Event { Created = "Created", Updated = "Updated", } + +/** + * Entity-specific filters with optional default + */ +export interface FilterConditionObject { + /** + * Default filter for entity types not explicitly configured + */ + default?: string; + [property: string]: string; +}