I am stuck in a problem, there may be some better solutions but what I tried and failed is explained below.
If I remove MessageAssignment component, My projects works perfectly it converts the data and makes a file to my directory.
But as I described in image that my MessageAssignment is setting Message4 as XmlDocument (it can be XML string if better solution provided).
CunstructMessage_1 can cunstruct message2 and message4.
MessageAssignment_1 is setting meesage4 as XmlDocument.
Transform_1 takes message2 as input and results message3(another schema).
Current Scenario: is that my map gets message2 data and transforms it.
Required Scenario: is that i want my message4(XmlDocument) as a records/data for Message2 (input of transform_1), in other words message2 = someconvertion(message4);
so my transform_1 gets the updated data and continue transformation.
The problem was solved by similar question on stackoverflow here, and detailed blog post blog link
Thanks to participants for your time.