Closed jhorbulyk closed 3 years ago
Create a flow of the following form. Note that executing samples for each step will function as expected.
async function run(msg, cfg, snapshot) { for(let i = 0; i < 2; i++) { const arr = []; for(let j = 0; j < 5; j++) { arr.push({ hello: 'world', i, j }); } await this.emit('data', messages.newMessageWithBody({ results: arr })); } }
Publish the flow and run the flow
Two emails arrive with the following contents
hello,i,j world,0,0 world,0,1 world,0,2 world,0,3 world,0,4
and
hello,i,j world,1,0 world,2,1 world,3,2 world,4,3 world,5,4
Two blank emails arrive
Steps to Reproduce
Create a flow of the following form. Note that executing samples for each step will function as expected.
Publish the flow and run the flow
Expected Result
Two emails arrive with the following contents
and
Actual Result
Two blank emails arrive