Operion LogoOperion
Triggers

Kafka topic

Start a workflow from every message on a Kafka topic, for the platform's own workflows

trigger:kafka starts a workflow for every message on a topic.

{"id": "trigger", "name": "Audit log", "type": "trigger:kafka", "category": "trigger", "config": {"topic": "tp_audit"}}
ConfigDescription
topicRequired. The Kafka topic

trigger:kafka ignores tenants: a message starts every published workflow listening on the topic, whoever owns it. Use it for the platform's own workflows, and give tenants catalog events, which route each message to its tenant.

It needs serve with --kafka-brokers. The brokers and the consumer group (--kafka-group) come from serve, not from the node, and the topic is consumed and delivered like catalog events: see delivery.

What the trigger sends on

FieldDescription
messageThe message value parsed as JSON, or {"raw_message": "<text>"} when it is not JSON
keyThe message key
headersThe Kafka headers
topic, partition, offset, timestampWhere the message came from