MEC Development – Part 1


In this post we are going to develop small calculation using the Mec (M3 Enterprise Colleborator). Here we are passing salary and days of work and creating salary according to the days employee work.we are going to pass inputs using xml and getting output to the xml file. To start Development you need to have following tools.
·         MEC Mapper
·         Flat File Definition tool
·         LCM
·         Partner Administrator
Here are the steps use MEC development.
1.       Double Click Flat File Definition tool. you will get Nice Interface like below

2.       Now we are building input xml file and xsd file using flat file definition tool.
Right click right side-> New Flat File Definition




3.       You will get following popup to create xml. Rename the Name property as “Employees” and Rename Tag Name property as “Employees”



4.       Right Click Employees Node -> Record as Child -> give name property as “Emp” and Tag name property as “Emp”.
5.       Right Click Emp node -> add record ->
Name =”Id” and Tag name=”Id”
Name =”Salary” and Tag name=” Salary”
Name =”days” and Tag name=” days”

Tools -> Create sample xml
Tools -> Create Sample XSD
Now  Using Flat file definition tool we created the input xml . finally you have to save the entire definition file -> save Definition.


Now  Using Flat file definition tool we created the input xml . finally you have to save the entire definition file -> save Definition.
Now you can see xml and xsd files that created using flat file definition tool.



After saving definitions we need to import the xml file .
Why we import xml file?
Because we need to store this xml file in the database .


Like Same way you can create output xml file and name it as output.xml



Comments