Skip to main content
Version: v5.0

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:

OperationEntityEvent type
CreateWorkflowDefEntity ​​ResourceCreated ​​
UpdateWorkflowDefEntity ​​ResourceUpdated
DeleteWorkflowDefEntity ​​ResourceDeleted
CreateWorkflowEntity ​​​​ ResourceCreated
UpdateWorkflowEntity ​​​​ ResourceUpdated
DeleteWorkflowEntity ​​ResourceDeleted ​​

Event types#

These are the main event types in the Workflow Service:

  • com.invicara.workflowsvc.model.event.WorkflowDef
  • com.invicara.workflowsvc.model.event.Workflow