Skip to content

Add a new until (optional) property to Event Consumption Strategies of type any #992

@cdavernas

Description

@cdavernas

What would you like to be added:

Add a new until (optional) property to Event Consumption Strategies of type any

Why is this needed:

Allows authors to define streaming-like event listeners, that would listen to events until a specific condition is met or until specific events are consumed.

My proposal would allow doing the following:

Listen to specific events until a runtime expression condition is met:

listen:
  to:
    any: #if no event is defined, all incoming events are matched
      - type: event1
      - type: event2
    until: $context.finishedConsumingEvents

Listen to specific events until the defined event(s) are consumed:

listen:
  to:
    any: {}
  until:
    one:
      with:
        type: io.serverlessworkflow.examples.events.end-listening.v2

Metadata

Metadata

Assignees

Labels

area: specChanges in the Specificationchange: documentationImprovements or additions to documentation. It won't impact a version change.change: featureNew feature or request. Impacts in a minor version change

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    pFad - Phonifier reborn

    Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

    Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy