@@ -558,7 +558,17 @@ $defs:
558
558
$ref : ' #/$defs/eventConsumptionStrategy'
559
559
title : ListenTo
560
560
description : Defines the event(s) to listen to.
561
+ read :
562
+ type : string
563
+ enum : [ data, envelope, raw ]
564
+ default : data
565
+ title : ListenAndReadAs
566
+ description : Specifies how events are read during the listen operation.
561
567
required : [ to ]
568
+ foreach :
569
+ $ref : ' #/$defs/subscriptionIterator'
570
+ title : ListenIterator
571
+ description : Configures the iterator, if any, for processing consumed event(s).
562
572
raiseTask :
563
573
type : object
564
574
$ref : ' #/$defs/taskBase'
@@ -1710,6 +1720,10 @@ $defs:
1710
1720
$ref : ' #/$defs/asyncApiMessageConsumptionPolicy'
1711
1721
title : AsyncApiMessageConsumptionPolicy
1712
1722
description : An object used to configure the subscription's message consumption policy.
1723
+ foreach :
1724
+ $ref : ' #/$defs/subscriptionIterator'
1725
+ title : AsyncApiSubscriptionIterator
1726
+ description : Configures the iterator, if any, for processing consumed messages(s).
1713
1727
required : [ consume ]
1714
1728
asyncApiMessageConsumptionPolicy :
1715
1729
type : object
@@ -1740,3 +1754,31 @@ $defs:
1740
1754
title : AsyncApiMessageConsumptionPolicyUntil
1741
1755
description : A runtime expression evaluated before each consumed (filtered) message to decide if message consumption should continue.
1742
1756
required : [ until ]
1757
+ subscriptionIterator :
1758
+ type : object
1759
+ title : SubscriptionIterator
1760
+ description : Configures the iteration over each item (event or message) consumed by a subscription.
1761
+ unevaluatedProperties : false
1762
+ properties :
1763
+ item :
1764
+ type : string
1765
+ title : SubscriptionIteratorItem
1766
+ description : The name of the variable used to store the current item being enumerated.
1767
+ default : item
1768
+ at :
1769
+ type : string
1770
+ title : SubscriptionIteratorIndex
1771
+ description : The name of the variable used to store the index of the current item being enumerated.
1772
+ default : index
1773
+ do :
1774
+ $ref : ' #/$defs/taskList'
1775
+ title : SubscriptionIteratorTasks
1776
+ description : The tasks to perform for each consumed item.
1777
+ output :
1778
+ $ref : ' #/$defs/output'
1779
+ title : SubscriptionIteratorOutput
1780
+ description : An object, if any, used to customize the item's output and to document its schema.
1781
+ export :
1782
+ $ref : ' #/$defs/export'
1783
+ title : SubscriptionIteratorExport
1784
+ description : An object, if any, used to customize the content of the workflow context.
0 commit comments