@@ -558,7 +558,17 @@ $defs:
558558 $ref : ' #/$defs/eventConsumptionStrategy'
559559 title : ListenTo
560560 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.
561567 required : [ to ]
568+ foreach :
569+ $ref : ' #/$defs/subscriptionIterator'
570+ title : ListenIterator
571+ description : Configures the iterator, if any, for processing consumed event(s).
562572 raiseTask :
563573 type : object
564574 $ref : ' #/$defs/taskBase'
@@ -1315,47 +1325,25 @@ $defs:
13151325 $ref : ' #/$defs/eventFilter'
13161326 required : [ all ]
13171327 - title : AnyEventConsumptionStrategy
1318- oneOf :
1319- - properties :
1320- any :
1321- type : array
1322- title : AnyEventConsumptionStrategyConfiguration
1323- description : A list containing any of the events to consume.
1324- items :
1325- $ref : ' #/$defs/eventFilter'
1326- minItems : 1
1327- until :
1328- oneOf :
1329- - type : string
1330- title : AnyEventUntilCondition
1331- description : A runtime expression condition evaluated after consuming an event and which determines whether or not to continue listening.
1332- - allOf :
1333- - $ref : ' #/$defs/eventConsumptionStrategy'
1334- title : AnyEventUntilConsumed
1335- description : The strategy that defines the event(s) to consume to stop listening.
1336- - properties :
1337- until : false
1338- required : [ any ]
1339- - properties :
1340- any :
1341- type : array
1342- title : AnyEventConsumptionStrategyConfiguration
1343- description : A list containing any of the events to consume.
1344- items :
1345- $ref : ' #/$defs/eventFilter'
1346- maxItems : 0
1347- until :
1348- oneOf :
1349- - type : string
1350- title : AnyEventUntilCondition
1351- description : A runtime expression condition evaluated after consuming an event and which determines whether or not to continue listening.
1352- - allOf :
1353- - $ref : ' #/$defs/eventConsumptionStrategy'
1354- title : AnyEventUntilConsumed
1355- description : The strategy that defines the event(s) to consume to stop listening.
1356- - properties :
1357- until : false
1358- required : [ any, until ]
1328+ properties :
1329+ any :
1330+ type : array
1331+ title : AnyEventConsumptionStrategyConfiguration
1332+ description : A list containing any of the events to consume.
1333+ items :
1334+ $ref : ' #/$defs/eventFilter'
1335+ until :
1336+ oneOf :
1337+ - type : string
1338+ title : AnyEventUntilCondition
1339+ description : A runtime expression condition evaluated after consuming an event and which determines whether or not to continue listening.
1340+ - allOf :
1341+ - $ref : ' #/$defs/eventConsumptionStrategy'
1342+ description : The strategy that defines the event(s) to consume to stop listening.
1343+ - properties :
1344+ until : false
1345+ title : AnyEventUntilConsumed
1346+ required : [ any ]
13591347 - title : OneEventConsumptionStrategy
13601348 properties :
13611349 one :
@@ -1710,6 +1698,10 @@ $defs:
17101698 $ref : ' #/$defs/asyncApiMessageConsumptionPolicy'
17111699 title : AsyncApiMessageConsumptionPolicy
17121700 description : An object used to configure the subscription's message consumption policy.
1701+ foreach :
1702+ $ref : ' #/$defs/subscriptionIterator'
1703+ title : AsyncApiSubscriptionIterator
1704+ description : Configures the iterator, if any, for processing consumed messages(s).
17131705 required : [ consume ]
17141706 asyncApiMessageConsumptionPolicy :
17151707 type : object
@@ -1740,3 +1732,31 @@ $defs:
17401732 title : AsyncApiMessageConsumptionPolicyUntil
17411733 description : A runtime expression evaluated before each consumed (filtered) message to decide if message consumption should continue.
17421734 required : [ until ]
1735+ subscriptionIterator :
1736+ type : object
1737+ title : SubscriptionIterator
1738+ description : Configures the iteration over each item (event or message) consumed by a subscription.
1739+ unevaluatedProperties : false
1740+ properties :
1741+ item :
1742+ type : string
1743+ title : SubscriptionIteratorItem
1744+ description : The name of the variable used to store the current item being enumerated.
1745+ default : item
1746+ at :
1747+ type : string
1748+ title : SubscriptionIteratorIndex
1749+ description : The name of the variable used to store the index of the current item being enumerated.
1750+ default : index
1751+ do :
1752+ $ref : ' #/$defs/taskList'
1753+ title : SubscriptionIteratorTasks
1754+ description : The tasks to perform for each consumed item.
1755+ output :
1756+ $ref : ' #/$defs/output'
1757+ title : SubscriptionIteratorOutput
1758+ description : An object, if any, used to customize the item's output and to document its schema.
1759+ export :
1760+ $ref : ' #/$defs/export'
1761+ title : SubscriptionIteratorExport
1762+ description : An object, if any, used to customize the content of the workflow context.
0 commit comments