MINOR: Remove Delete Events from Workflow Consumer (#19219)

* Remove Delete Events from Workflow Consumer

* Remove Delete Events from Workflow Consumer
This commit is contained in:
IceS2 2025-01-03 18:32:18 +01:00 committed by GitHub
parent 21ca28782f
commit 1c793cc268
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -27,11 +27,7 @@ public class WorkflowEventConsumer implements Destination<ChangeEvent> {
// TODO: Understand if we need to consider ENTITY_NO_CHANGE, ENTITY_FIELDS_CHANGED or // TODO: Understand if we need to consider ENTITY_NO_CHANGE, ENTITY_FIELDS_CHANGED or
// ENTITY_RESTORED. // ENTITY_RESTORED.
private static List<EventType> validEventTypes = private static List<EventType> validEventTypes =
List.of( List.of(EventType.ENTITY_CREATED, EventType.ENTITY_UPDATED);
EventType.ENTITY_CREATED,
EventType.ENTITY_UPDATED,
EventType.ENTITY_SOFT_DELETED,
EventType.ENTITY_DELETED);
public WorkflowEventConsumer( public WorkflowEventConsumer(
EventSubscription eventSubscription, SubscriptionDestination subscriptionDestination) { EventSubscription eventSubscription, SubscriptionDestination subscriptionDestination) {