Replies: 8 comments 7 replies
-
My main concern is that do: is logically inconsistent because it currently have two different meanings depending on its position. |
Beta Was this translation helpful? Give feedback.
-
I see the point of @fjtirado and the confusion that can be induced by two different That being said, an alternative comes to my mind. I'm throwing it here, not sure it's worth anything but at least it'll be out there:
So a single task workflow/for would be something like: document:
#...
do:
call: http
with:
method: get
endpoint: https://petstore.swagger.io/v2/pet/{petId} And anything with more than one task: document:
#...
do:
sequentially: # or concurrently or compete
- bookHotel:
call: http
with:
method: post
endpoint:
uri: https://fake-booking-agency.com/hotels/book
authentication: fake-booking-agency-oauth2
body:
name: Four Seasons
city: Antwerp
country: Belgium
- bookFlight:
call: http
with:
method: post
endpoint:
uri: https://fake-booking-agency.com/flights/book
authentication: fake-booking-agency-oauth2
body:
departure:
date: '01/01/26'
time: '07:25:00'
from:
airport: BRU
city: Zaventem
country: Belgium
arrival:
date: '01/01/26'
time: '11:12:00'
to:
airport: LIS
city: Lisbon
country: Portugal wdty ? |
Beta Was this translation helpful? Give feedback.
-
@JBBianchi +1 for me |
Beta Was this translation helpful? Give feedback.
-
@JBBianchi +1 for me |
Beta Was this translation helpful? Give feedback.
-
I see @matthias-pichler-warrify suggested something similar in #875 (comment) |
Beta Was this translation helpful? Give feedback.
-
Ladies and Gentlemen, it seems we reached a consensus! |
Beta Was this translation helpful? Give feedback.
-
+1 from my side then :) (I won't say you will have to wait for my TZ to discuss, I'm just happy we wrapped up once I woke up!) 😛 |
Beta Was this translation helpful? Give feedback.
-
I think #882 is ready for review 🚀 |
Beta Was this translation helpful? Give feedback.
-
Context
@fjtirado proposes turning single tasks defined by a For/Do and by a Try into arrays of tasks. The main concern is having the same keyword behaving in a different way based on its context (ex: a top level do defines an array, whereas a For/Do requires a single task).
@cdavernas maintains that this defeats the concept of the
composite
task, and will become problematic if new properties are to be added to a 'sequential' task list. Furthremore, it will make the flow less obvious (implicitly sequential list) and less ubiquitous.1 vote ·
Beta Was this translation helpful? Give feedback.
All reactions