Event Message Keys Reference
An event message key (also known as topic) is a routing key pattern of an event message which is sent after a known event in PIPEFORCE happened. This key always starts with prefix pipeforce.event
, followed by the concrete event type.
It can be used to listen and send push notifications every time such an event happens or to register a pipeline listener and listen for such an event to a trigger a pipeline execution.
Here is an example how to add such an event message listener to a pipeline. As soon as the pipeline got saved in the property store, the listener is activated:
pipeline:
- message.listen:
key: pipeforce.event.workflow.#
- mail.send:
to: admin@company.tld
subject: A workflow event happened.
Pattern matching
When registering a listener for an event key, also pattern matching can be used:
*
= Stands for a single word up to the next period.
#
= Stands for multiple words with multiple periods in between.
For example the event key from above pipeforce.event.workflow.#
matches all workflow event messages while pipeforce.event.workflow.*.my.app
matches only workflow event messages inside the app my.app
.
Default headers
Every message contains these default headers:
"namespace": ns
Whereasns
is the namespace this event happened inside. Cannot be changed for security reasons."content_type": application/json
An event message body is always of type JSON.
Reference Documentation
Here is the reference of these event messages and their keys (also known as topics):