Working with BizTalk Framework Properties Within Orchestrations
In
many cases, a business process orchestration will be implemented in
either the send or thereceive side of a business process, and it is
more suitable to configure the BizTalk Framework properties there. On
top of that, there are properties that are not accessible as
design-time pipeline components. The orchestration is a suitable place
to modify the values of these properties at runtime.
The
following lines of code show how to assign the values to the property
field of the outboundmessage. These values can be written within a
message assignment expression and will override any given value set at
design time.
//Basic settings for BizTalk Framework Reliable Messaging
msgPSB_ReachEnvelope_Outgoing(XMLNORM.AddXMLDeclaration)=false;
msgPSB_ReachEnvelope_Outgoing(BTF2.IsReliable)=true;
msgPSB_ReachEnvelope_Outgoing(BTF2.svc_deliveryRctRqt_sendBy)=_
vBTFDeliveryReceiptSendBy;
msgPSB_ReachEnvelope_Outgoing(BTF2.svc_deliveryRctRqt_sendTo_address)= _
vBTFDeliveryReceiptAddress;
msgPSB_ReachEnvelope_Outgoing(BTF2.svc_deliveryRctRqt_sendTo_address_type)= _
vBTFDeliveryReceiptAddressType;
//Other settings for BizTalk Framework Reliable Messaging
msgPSB_ReachEnvelope_Outgoing(BTF2.prop_topic)=vBTFDocumentTopic;
msgPSB_ReachEnvelope_Outgoing(BTF2.eps_from_address)=vBTFSourceAddress;
msgPSB_ReachEnvelope_Outgoing(BTF2.eps_from_address_type)=vBTFSourceAddressType;
msgPSB_ReachEnvelope_Outgoing(BTF2.eps_to_address)=vBTFDestinationAddress;
msgPSB_ReachEnvelope_Outgoing(BTF2.eps_to_address_type)=vBTFDestinationAddressType;
msgPSB_ReachEnvelope_Outgoing(BTF2.PassAckThrough)=true;
Acknowledgement Verification
One
of the easiest ways to verify the acknowledgment of the messages is to
look at the following SQL tables in the BizTalk Management Database:
btf_message_sender
btf_message_receiver
For outgoing messages, look at the sender table as shown in Figure 3. If the message was acknowledged, the acknowledged field will be marked with an A.
On the receiver side, look at the receive table. In the table will be the records corresponding to the acknowledged documents.