Biztalk 2006 r2Using IntegratedEDI outbound batchingIt is easy to implement packaging and sendingEDIDocument functions.
InEDI outbound batchingPlay an important role4ItemsPromoted Context:
EDI.Tobebatched
EDI. toberouted
EDI. destinationpartyid
EDI. encodingtype
And integration inBiztalk EDI applicationIn3ItemsOrchestration
Microsoft. BizTalk. EDI. batchsuspendorchestration.Batchelementsuspendservice
Microsoft. BizTalk. EDI. batchingorchestration.Batchingservice
Microsoft. BizTalk. EDI. routingorchestration.Batchroutingservice
In use EDI batching Before that, you need to configure correctly Party Of Interchange batch creation setting And start Biztalk EDI application Above 3 Items Orchestration And Batchcontrolmessagerecvport For example, you need to configure filter rules, as shown in figure BTS. receiveportname= Recport1 , For more information, see Http://msdn.microsoft.com/en-us/library/bb226357.aspx
Next we will introduce the entireEDI outbound batchingProcess:
1. To automatically improve the qualified context Pipeline Medium Use Batchmaker component , EDI receive Pipeline The specified Component , But if Receive Pipeline Receive non- EDI Type of data, that is, not used EDI receive Pipeline You need to customize Receive Pipeline , In Resolveparty Phase embedding Batchmaker component And then deploy it Biztalk Application . Of course, you can also manually upgrade these contexts through encoding.
2. only one filter rule Party hour , promoted context make the following changes, in this way, batching Orchestration ( that is, batchroutingservice) subscribe to these messages:
EDI. tobebatched = true
EDI. destinationpartyid = % partyid %
EDI. encodingtype = 0/1 (0-X12, 1-EDIFACT)
3. filtering rules multiple Party , promoted context make the following changes, in this way, routing Orchestration ( that is, batchroutingservice) subscribe to these messages :
EDI. toberouted = true
EDI. destinationpartyid = % partyid1 % partyid2 % partyid3 % (ToSpaceSeparator)
4. Routing orchestration Will subscribe Message Follow EDI. destinationpartyid Copy and group a list Transaction set To ensure that Party Get a set of correct Transaction set Copy, at the same time For each Transaction set Of Promoted Context Make the following changes to ensure Batching orchestration Subscribe to these messages
EDI. tobebatched = true
EDI. destinationpartyid = % partyid %
EDI. encodingtype = 0/1
5. batching orchestration Subscribe to all EDI. tobebatched = true , EDI. destinationpartyid = % partyid % And EDI. encodingtype = 0/1 To X12 Or EDIFACT Encoded Transaction set Set. In EDI receive Pipeline When processing messages, Batchmaker component Let Routing orchestration To determine the encoding type, so that developers can Batchmaker After the processing is completed, use Biztalk Map Or custom logic EDI To EDI Message.
6. batching orchestration Verified Transaction set If it fails EDI. batchitemvalidationfailure Set property True So that Batchsuspend orchestration (That is Batchelementsuspendservice ) Can subscribe to these failed Transaction set, Issue error messages and suspend these sets.
7.OnceBatchRelease conditions,Batch orchestrationWillTransaction setCombine and addEDIFileEnvelope.
8.Waiting for completionBatchingAfter the action,Batch orchestrationIt will be resetPromoted context:
EDI. tobebatched = false
EDI. destinationpartyname = % partyname %
EDI. batchencodingtype = X12/EDIFACT
9.LastSend PortYou can subscribe to theseBatchOfEDIData.
Reference:
Http://msdn.microsoft.com/en-us/library/bb245977.aspx