Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
cdavernas opened this issue Aug 25, 2024 · 0 comments · May be fixed by #997
Open

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

cdavernas opened this issue Aug 25, 2024 · 0 comments · May be fixed by #997
Assignees
Labels
area: spec Changes in the Specification change: documentation Improvements or additions to documentation. It won't impact a version change. change: feature New feature or request. Impacts in a minor version change
Milestone

Comments

@cdavernas
Copy link
Member

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
@cdavernas cdavernas added change: documentation Improvements or additions to documentation. It won't impact a version change. change: feature New feature or request. Impacts in a minor version change area: spec Changes in the Specification labels Aug 25, 2024
@cdavernas cdavernas added this to the v1.0.0 milestone Aug 25, 2024
@cdavernas cdavernas self-assigned this Aug 25, 2024
@cdavernas cdavernas linked a pull request Aug 28, 2024 that will close this issue
8 tasks
@cdavernas cdavernas modified the milestones: v1.0.0-alpha3, v1.0.0 Oct 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: spec Changes in the Specification change: documentation Improvements or additions to documentation. It won't impact a version change. change: feature New feature or request. Impacts in a minor version change
Projects
Status: Backlog
1 participant