...
Code Block | ||
---|---|---|
| ||
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:
...
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
This is fixed. Every 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):
...