From the technical center of excellence of Massil Technologies, our technology leaders make it easy to understand the complex situations you come across in Mule ESB from the experience of Massil Technologies to have countered them in their experience of working on client projects in real time. This blog talks about initiating array list in Mule ESB. This blog is a part of series of blogs being authored and published by Massil Technologies for the benefit of the IT community globally.
We will look at a scenario where we have set few different array lists in Mule ESB. Lets try with an example of initializing five various array list variable at a place mention below:
<set-variable variableName=”customerIds” value=”#[]” doc:name=”customerIds”/>
Let us look at the multiple steps involved in this.
Step 1:- Create a project and find http listener in Mule ESB Palette and transform it to the message flow and configure as follows
Step 2:- Accumulate the data in flexible which is now in Payload (i.e data which is approaching from post man) as follows
Step 3:- Make a new multiple Array List with help of Message Properties Transformer. The configurations for creating empty numerous Array List as follows:
Step 4:- Move a expression connector from Mule ESB Palette to contain message flow following the variable and we will enhance the data which we are transferring from postman into unoccupied multiple Array List as follows
Step 5:-Drag the set payload and we have to write the code for print the data present in Array Lists as output
Step 6:- Complete flow is appearance here.
Step 7:-Run the project and hit some data from postman to display the results
Hence, we have gone through the step by step process to depict the way Massil Technologies team has addressed the client need. Hope this article from Massil Technologies was useful for you. If you have any further queries on this topic, please reach out to email@example.com.