serverlessworkflow / specification

Contains the official specification for the Serverless Workflow Domain Specific Language. It provides detailed guidelines and standards for defining, executing, and managing workflows in serverless environments, ensuring consistency and interoperability across implementations.
http://serverlessworkflow.io
Apache License 2.0
733 stars 146 forks source link

Added a new `until` property to `any` event consumption strategies #997

Open cdavernas opened 1 month ago

cdavernas commented 1 month ago

Please specify parts of this PR update:

Discussion or Issue link:

Closes #992

What this PR does:

Added a new until property to any event consumption strategies

Additional information:

We need to find a smart way to forbid an until event consumption strategy to itself define the until property.

cdavernas commented 1 month ago

@matthias-pichler Any suggestion on how to achieve the following in a brief, concise fashion?

We need to find a smart way to forbid an until event consumption strategy to itself define the until property.

matthias-pichler commented 3 weeks ago

@matthias-pichler Any suggestion on how to achieve the following in a brief, concise fashion?

We need to find a smart way to forbid an until event consumption strategy to itself define the until property.

Hmm we could do it with allOf

until:
  oneOf:
    - type: string
    - allOf:
        - $ref: #/$defs/eventConsumptionStrategy
        - type: object
          properties:
            until: false