project-flogo / core

Flogo Core is the core flogo library used create and extend Flogo applications.
BSD 3-Clause "New" or "Revised" License
109 stars 55 forks source link

support function in source array and filter for array mapping #234

Closed lixingwang closed 3 years ago

lixingwang commented 3 years ago

Current behavior (how does the issue manifest): Today the array foreach mapping format as below

@foreach($.authors, authorLoop, $loop.age > 45)
  1. The First argument is source array
  2. The second argument is scope name
  3. The third argument is a filter expression.

Now we cannot support function in first and third arguments Expected behavior:

We should support function in source array and filter

Minimal steps to reproduce the problem (not required if feature enhancement):

Please tell us about your environment (Operating system, docker version, browser & web ui version, etc):

Flogo version (CLI & contrib/lib. If unknown, leave empty or state unknown): 0.X.X

Additional information you deem important (e.g. issue happens only occasionally):