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. |
|
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: Portugalwdty ? |
|
I see @matthias-pichler-warrify suggested something similar in #875 (comment) |
|
Ladies and Gentlemen, it seems we reached a consensus! |
|
+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!) 😛 |
Uh oh!
There was an error while loading. Please reload this page.
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
compositetask, 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 ·
All reactions