For that right click on the Java function → Add Output Parameter.ġ6. Then we need to add output parameters to this functions to take some data out. In the same way, assign remaining Order Header details in input schema to input parameters.ġ5. For that, select Link tool in toolbox, click on CustomerNumber node in input schema and then click on the newly added input parameter ( i_CustomerNumber).ġ4. We will now assign the customer number from input schema to the newly added input parameter. It would be a good practice to put an “i” in front of the parameter to identify that it is an input.ġ3. In properties, give input parameter a proper name and a description. Once the input parameter is added, click on it and go to properties. For that right click on the function and click on Add Input Parameter.ġ2. Then we need to add input variables to this function to read values from input schema and pass then in to the function. In properties, give function a proper name and a description.ġ1. Then click on the newly added java function and go in to Properties tab in Mapping Console area. Once the Java function is added to the mapping, click on the select tool in toolbox.ġ0. Click on the Java under Core Functions in toolbox and then click on the sequence list area.ĩ. For that we will add a Java function to the mapping. First we will read Order Header Details from input schema in to the MEC mapping.
Below image illustrates different component in the Mapping Manager.Ĩ. Double click on the newly created MEC map to open it in the Mapping Manager. This will add the new mapping to the project. For input schema, it should be CustomerOrder and for Output schema it should be CustomerPortalResponse. In Root Elements window see if MEC mapper has correctly identified the root elements of both input and output schema. Then select input and output XML schema that you have already downloaded and click Next.Ħ. In New Mapping Name and Document window, give mapping a name (CustomerPortal_CustomerOrderCreate).ĥ. Right click on the newly project and click on New Mapping.Ĥ. In New Mapping Project window, give Project a name (CustomerPortal) and click Next. Once you log in to the MEC Mapper, right click on the Mapping Explorer and click on New Project.Ģ.
#How to install input mapper how to#
We have already discussed how to setup MEC mapper in one of my previous posts. I assume that at this point you have already setup a workspace and configured MEC mapper with required server connection details.
#How to install input mapper download#
First download the input and output XML schema required for the mapping from my previous post. In this post we will see how to develop a MEC mapping to create basic customer order inside M3 and return the Order number of the created customer order back.