arcalot / arcaflow-expressions

Expressions language for Arcaflow
Apache License 2.0
0 stars 0 forks source link

List concatenation #39

Open dustinblack opened 6 months ago

dustinblack commented 6 months ago

Please describe what you would like to see in this project

Two foreach sub-workflows produce list outputs:

$.steps.sub1.outputs.success.data
$.steps.sub2.outputs.success.data

I would like the ability to concatenate these lists into one when passing the data to a step or output, hopefully with something very simple liike:

my_step:
    plugin:
      deployment_type: image
      src: my_plugin_path
    input:
      my_list: !expr $.steps.sub1.outputs.success.data + $.steps.sub2.outputs.success.data

Where the my_list input to the step is a single list object consisting of all of the list items from the outputs of both sub-workflows.