on 10-18-2020 7:04 PM
Hi Team,
We have a requirement where values are taken in an array and pass each value to the looping process call at a time, so that looping process will be executed for one value at a time, how to achieve this
You could consider the following approach:-
- In a script loop through the values of the array adding a 'newline' character to each individual value. Set the body of the message to the output from this loop. Now your message body would look like the below:-
- array[1] + '\n'[newline char]
array[2] + '\n'
array[n]+ '\n'
- Pass this to an iterating splitter with the split expression type as 'Line Break'. This will send out each array element as a distinct message.
- Post the splitter step, the 'looping' process call can be called with the escape condition as ${header.CamelSplitComplete} = 'true'
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.