Business Events
Enterprise Edition only
Business Events were introduced in EximeeBPMS 1.2.16-ee (Enterprise Edition). As of this writing, this feature has not shipped in any Community Edition release.
Business Events let the process engine publish a stream of domain-level occurrences — a task was completed, a variable changed, a process instance ended — to systems outside the engine, without coupling the engine’s own transaction to the availability of those systems.
How It Works
Business Events use the transactional outbox pattern:
- When an event-worthy change happens (e.g., a task is completed), the engine writes a row describing it to the
ACT_RU_BUS_EVT_OBXtable, in the same database transaction as the change itself. - A background dispatcher periodically reads batches of undelivered rows from the outbox and hands them to the configured publisher.
- Once a publisher confirms delivery, the corresponding outbox rows are marked delivered; a separate cleanup job removes delivered rows past their retention period.
Because the outbox write is part of the same transaction as the business change, an event is never recorded for a change that didn’t commit, and a committed change never silently fails to produce its event — delivery to the publisher is a separate, retried concern. This gives at-least-once delivery to downstream systems: consumers should treat delivery as idempotent (event id can be used for deduplication).
Business Event Types
Each business event carries its fully-qualified type in the businessEventType field, in the form camunda7:<entity>:<event>.
| Fired when | Event type |
|---|---|
| Variable created | camunda7:variable-instance:created |
| Variable updated | camunda7:variable-instance:updated |
| Variable migrated | camunda7:variable-instance:migrate |
| Variable deleted | camunda7:variable-instance:deleted |
| Process instance started | camunda7:process-instance:start |
| Process instance updated | camunda7:process-instance-update:update |
| Process instance ended | camunda7:process-instance:end |
| Identity link added | camunda7:identity-link-add:add-identity-link |
| Identity link deleted | camunda7:identity-link-delete:delete-identity-link |
| Task instance created | camunda7:task-instance:create |
| Task instance updated | camunda7:task-instance:update |
| Task instance completed | camunda7:task-instance:complete |
| Task instance deleted | camunda7:task-instance:delete |
Script violation detected — Script Guard records a violation (AUDIT or ENFORCE mode) | camunda7:script-violation:create |
Configuration
Business Events are configured under the eximeebpms.bpm.business-events prefix and are disabled by default:
eximeebpms:
bpm:
business-events:
enabled: true
publisher: kafka
business-event-dispatch-interval-ms: 5000
business-event-dispatcher-batch-size: 100
business-event-outbox-retention-ms: 604800000 # 7 days
business-event-outbox-cleanup-interval-ms: 3600000 # 1 hour
publisher-properties:
kafka.bootstrap-servers: "kafka-1:9092,kafka-2:9092"
kafka.topic: "eximeebpms.business-events"
| Property | Default | Description |
|---|---|---|
enabled | false | Master switch for the whole feature. When disabled, no outbox rows are written and the dispatcher does not run. |
publisher | noop | Symbolic name of the publisher to dispatch events to. |
business-event-dispatch-interval-ms | 5000 | How often the dispatcher polls the outbox for undelivered events. |
business-event-dispatcher-batch-size | 100 | Maximum number of outbox rows read and handed to the publisher per dispatch cycle. |
business-event-outbox-retention-ms | 604800000 (7 days) | How long delivered outbox rows are kept before cleanup removes them. |
business-event-outbox-cleanup-interval-ms | 3600000 (1 hour) | How often the cleanup job runs. |
publisher-properties | empty | Publisher-specific properties (see below), passed through to BusinessEventPublisher.init(Map). |
Built-in Publishers
noop (default)
Writes to the outbox but never dispatches anywhere. Useful for exercising the outbox and cleanup mechanics without wiring an external system.
kafka
Publishes events to an Apache Kafka topic. Enable with publisher: kafka and configure under publisher-properties:
| Property | Required | Description |
|---|---|---|
kafka.bootstrap-servers | yes | Comma-separated list of Kafka bootstrap servers. |
kafka.topic | yes | Kafka topic events are published to. |
kafka.client-id | no | Kafka client id. |
kafka.send-timeout-ms | no | Timeout waiting for broker acknowledgement. Default 30000. |
kafka.client.* | no | Passed through verbatim to the underlying Kafka producer, with the kafka.client. prefix stripped (e.g. kafka.client.acks=all becomes producer property acks=all). |
Writing a Custom Publisher
To deliver events somewhere other than Kafka (a webhook, a message broker, a SIEM ingestion endpoint), implement the BusinessEventPublisher SPI:
package org.eximeebpms.bpm.commons.eventbus;
public interface BusinessEventPublisher extends AutoCloseable {
String getName();
default void init(Map<String, String> properties) {
}
BusinessEventPublishResult publish(Event event);
@Override
default void close() {
}
}
Register the implementation so it’s discoverable under its getName() value, then set publisher: <name> in configuration. init(Map<String, String>) receives whatever is configured under publisher-properties for that publisher name.
Script Guard / SIEM Integration
As of 1.2.19-ee, Script Guard violations are published as business events (camunda7:script-violation:create) through this same mechanism. This means routing Script Guard violations to a SIEM is a matter of enabling Business Events and pointing the configured publisher at your SIEM ingestion endpoint (via the Kafka publisher, or a custom BusinessEventPublisher implementation) — no separate integration is required.
Querying the Outbox
The engine exposes a query API over the outbox via BusinessEventService:
processEngine.getBusinessEventService()
.createBusinessEventOutboxQuery()
.processInstanceId(processInstanceId)
.eventType("camunda7:script-violation:create")
.list();
This is primarily useful for diagnostics and for verifying delivery independently of the configured publisher.