-
Language:
English
-
Language:
English
Red Hat Training
A Red Hat training course is available for Red Hat Fuse
4.18. Using the Mapping Decoder to Bind
- Configure the Mapping Decoder as shown below to bind a different value to your object model, based on the data in your input message:
<jb:value property="name" decoder="Mapping" data="history/@warehouse"> <jb:decodeParam name="1">Dublin</jb:decodeParam> <jb:decodeParam name="2">Belfast</jb:decodeParam> <jb:decodeParam name="3">Cork</jb:decodeParam> </jb:value>
- An input data value of "1" is mapped to the name property as a value of "Dublin". Likewise for values "2" and "3".