Project

General

Profile

Iterator

Description

Executes an Inner process (another mashup project) for each element of Source array and returns a new array where each element is the output of the inner mashup.

Input/Output

Source array : array <= Source
Inner process : value <= Option
Input : object <= Array element

Output : array

Usage

  1. Connect a source to the operator
  2. Drag an array from the source tree and drop it into input field Source array
  3. Go to tab Select inner process and select an existing mashup project; otherwise, you can click on Create inner process in order to automatically create a new mashup with an input corresponding to the array element
  4. Go to tab Set input and drag the array element from the source tree and drop it into input field of selected mashup
  5. Click on OK

Example

Inner process "UserType"
Input = {"user":"john doe", "age":12}
Output = {"name":"john", "surname":"doe", "age":12, "type":"child"}

Outer mashup
Source array = [{"user":"john doe", "age":12}, {"user":"mario rossi", "age":21}, {"user":"ken smith", "age":16}]
Inner process = "UserType"
Input = {"user":"john doe", "age":12}

Output = [{"name":"john", "surname":"doe", "age":12, "type":"child"}, {"name":"mario", "surname":"rossi", "age":21, "type":"man"}, {"name":"ken", "surname":"smith", "age":16, "type":"boy"}]