Interface EventEnricher
- All Known Implementing Classes:
DevOpsEventEnricher,IssueLinkEventEnricher,LazyLoadableEventEnricher,SprintEventEnricher,WorklogEventEnricher
public interface EventEnricher
Envent enrichers optionally enriches an AutomationEvent by looking up data from external sources
Implementors should ensure enichers can be run multiple times without ill effects
-
Method Summary
Modifier and TypeMethodDescriptionbooleancanHandle(AutomationEvent event, TenantContext tenantContext) Should the enricher run against this event? Should be fast with no side effectsenrich(AutomationEvent event, TenantContext tenantContext) Called when can handle is true.
-
Method Details
-
canHandle
Should the enricher run against this event? Should be fast with no side effects -
enrich
Optional<AutomationEvent> enrich(AutomationEvent event, TenantContext tenantContext) throws com.codebarrel.automation.api.event.enrich.EventEnricherException Called when can handle is true. Enriches the event. If any failures / unexpectedness happens, can return empty.- Throws:
com.codebarrel.automation.api.event.enrich.EventEnricherException
-