are IIPs supported for ArrayPorts?
I have created a graph in the graph editor that includes a component with an ArrayPort. The port's event handler for the data event outputs its parameters to console (please see the code below).
I then set an IIP on this port, and run the graph. After that, I change the IIP and run the graph again.
Every time I change the IIP, the output from the handler shows a different index. The first time it is 0, then 1 etc.
Is this by design? Is there a way to set an IIP for index 0 only?
this.addArrayInPort('in', {
required: true,
addressable: true,
datatype: 'all'
});
this.inPorts.in.on('data', function (data, index) {
console.log(data, index);
});
@akonsu noflo-ui isn't unfortunately yet aware of arrayports in a proper way. See #14 and the-grid/the-graph#51
The workaround for this with current noflo-ui is to use a set of other components (for example, core/Repeat) and edit IIP in those, and forward to correct index of the addressable inport. Like this:
