Resource events
The Workflow Service emits resource events to inform other services of Create, Update, and Delete operations on workflow definitions and workflow runs.
These events follow a standard model and are sent to a Kafka topic via an EventEmitterService.
Events emissions#
The following table describes the operation that triggers an event and the event entity and type related to that operation:
| Operation | Entity | Event type |
|---|---|---|
| Create | WorkflowDefEntity | ResourceCreated |
| Update | WorkflowDefEntity | ResourceUpdated |
| Delete | WorkflowDefEntity | ResourceDeleted |
| Create | WorkflowEntity | ResourceCreated |
| Update | WorkflowEntity | ResourceUpdated |
| Delete | WorkflowEntity | ResourceDeleted |
Event types#
These are the main event types in the Workflow Service:
com.invicara.workflowsvc.model.event.WorkflowDefcom.invicara.workflowsvc.model.event.Workflow