Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languageyaml
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
    Whereas ns 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):

...