Search code examples
mulemvel

Add elements to a list of map using MEL/MVEL


How can i add elements to a list of map using Mule MEL ? I have gone through the mule MEL documentation and MVEL documentation but could not find any examples for them


Solution

  • A MEL list should respond to standard Java methods. So the following should work:

    myList.add(["Foo" : "Bar", "Bar" : "Foo"])