LetsFlow
  • Introduction
  • Tutorial
    • The basics
    • A handshake
    • A conversation
    • A proper introduction
    • Group meeting
    • Quote
  • Cookbook
  • ENGINE
    • Installation
    • Authentication
    • API
    • Services
      • Configuration
      • Messaging
        • ZeroMQ
        • AMQP 0-9-1
        • Webhook
      • Engine service
  • Integration
    • Frontend
      • React
      • Angular
      • Vue
      • Svelte
    • Backend
  • Reference
    • Scenario
      • Actor
      • Action
        • Update instruction
      • State
        • Transition
          • Log
        • Notify
      • Data function
    • Schema
    • Process
      • Current state
      • Previous log
      • Prediction
      • Events
        • Instantiate event
        • Action event
        • Timeout event
  • Libraries
    • Core library
    • JMESPath
    • Test suite
      • Given
      • When
      • Then
        • Assert state
        • Assert actor
        • Assert variable
        • Assert service
        • Assert event
      • Customize
  • Advanced topics
    • Deep integration
    • Decentralized workflows
    • Custom JMESPath functions
    • Custom YAML tags
Powered by GitBook
On this page
  • Notification
  • Notification properties
  • Inverse

Was this helpful?

  1. Libraries
  2. Test suite
  3. Then

Assert service

Notification

Assert that a service has been notified.

Then service "email" is notified
Then service "email" in the main process is notified

Notification properties

You can use with to specify expected properties for the notification.

Then service "email" is notified with:
  | name    | Alice Almond      |
  | email   | alice@example.com |
  | message | Hello Alice       |

Then service "email" is notified with:
  """yaml
    schema: messages/email-v1
    to:
      name: Alice
      email: alice@example.com
    template: no-quote
    data:
      customer:
        title: Customer
        id: !ref actors.customer.id
        company: Acme Inc
        contact: Alice
        email: alice@example.com
        address: 123 Main St
      reason: Unable to deliver on requirements
  """

You can use a data table, but this is limited to a shallow structure. Alternatively, you can use YAML or JSON.

Inverse

Assert that a service has not been notified.

Then service "email" is not notified
Then service "email" in the "main" process is not notified
PreviousAssert variableNextAssert event

Last updated 22 days ago

Was this helpful?