cancel
Showing results for 
Search instead for 
Did you mean: 

How to create a Map as an Expression

richard1
Champ in-the-making
Champ in-the-making
Hello All,
  On a ServiceTask in the Eclipse Designer I'd like to have a field in which I can set a Map of name value pairs. How do I or can I do that as an Expression? Example:
Field Name: testMe
String Value/Expression: [name1:value1, name2:value2,… etc]

I'd like to set my Map as a field and not have to parse a string or call a bean.

Thanks in advance,
Richard
2 REPLIES 2

trademak
Star Contributor
Star Contributor
Hi,

That's currently not possible for a ServiceTask with a Java class.
What you could do though is use a Spring bean and inject the Map in your Spring configuration.

Best regards,

richard1
Champ in-the-making
Champ in-the-making
Thank you for the reply. I was trying to avoid it, but it does get the job done, and it was not all that painful  Smiley Very Happy

Thanks,
Richard