Message processing inside Biztalk as below:
- BizTalk Receive files from BizTalk receive port.
2. Receive port can have multiple Receive location which can receive files or message from different connector (Adapters e.g. File, Ftp, SQL, web Service etc.)
3. After received message at Receive port. Message processes through Receive Pipeline. In Receive pipeline message convert into xml files. If message format is different e.g. flat or csv file. BizTalk by default support xml, flat & csv files. Now it also supports json files from BizTalk 2013 and upper version. Inside BizTalk message will always be in xml format. If not, then it must be converted into xml file format in receive pipeline.
4. After Receive pipeline there is mapping, this is optional, if message transformation requires before further process then BizTalk mapping apply to transform the message and it will be configured at Receive Port.
5. After that message will be stored in message box database. BizTalk has its own database for message store & process so that it will full fil the one of most criteria in EAI concept that message will never be lost while processing in BizTalk.
6. There will be two subscribers (Send Port & Orchestration) for incoming message received from Receive Port.
7. In Orchestration there can be applied business logic, multiple mapping rules, automation etc. to achieve automatic business process. Orchestrations can subscribe to (receive) and publish (send) messages through the MessageBox. In addition, orchestrations can construct new messages.
8. Mapping-Mapping for message format as per destination system require. This can be defined in orchestration or at Send port.
9. Send Pipeline- The send pipeline is used to prepare a message coming from BizTalk Server for transmission to another service. this part is specified on send port. A send pipeline is responsible for processing documents before sending them to their final destinations. The send pipeline takes one message and produces one message to send. This will assemble the message, encode or change format e.g. from xml to flat file before sending to send port.
10. Send port have the connection details of the destination system to send the message. A send port is the combination of a send pipeline and a send adapter. For single receive port there can be multiple send ports