1 <service verb="get" noun="ProductStoreAndStoryCategory"> 2 <in-parameters> 3 <parameter name="productStoreId" required="true"/> 4 </in-parameters> 5 <out-parameters> 6 <parameter name="productStoreInfo" type="Map"> 7 <auto-parameters entity-name="mantle.product.store.ProductStore"/> 8 <parameter name="productStoreCategory" type="Map"> 9 <auto-parameters entity-name="mantle.product.store.ProductStoreCategory"/> 10 </parameter> 11 </parameter> 12 </out-parameters> 13 <actions> 14 <entity-find-one entity-name="mantle.product.store.ProductStore" value-field="productStore"/> 15 <set field="productStoreInfo" from="[:]"/> 16 <script>productStoreInfo.putAll(productStore)</script> 17 <entity-find-one entity-name="mantle.product.store.ProductStoreCategory" value-field="productStoreCategory"/> 18 <set field="productStoreInfo" from="productStoreInfo+[productStoreCategory:productStoreCategory]"/> 19 </actions> 20 </service>