How to read context properties from pipeline to orchestration

Home Page Forums BizTalk 2004 – BizTalk 2010 How to read context properties from pipeline to orchestration

Viewing 2 reply threads
  • Author
    Posts
    • #22877

      Hi Everyone,

      How to read the context properties from Pipeline to orchestration. In our case,  we are spiting the complete message in pipeline level using custom pipeline component and reading message by message finally aggregating them to a batch once all messages received inside an orchestration.

      Now I need to count the total records in a message received at pipeline and send it to orchestration.

      Can anyone please help me to solve this?

      Thanks in advance

       

    • #22878

      I don’t know if it’s possible but you can use xpath,

       

      there is a method for counting node. In biztalk orchestration you write it xpath(message,”count(nodename)”), you can use it in .NET but I don’t know how

    • #22881

      I am assuming you have to know the total number of messages in a batch to make sure you have processed them all?  You could just add two properties to each message MessageNumber and TotalMessages.  Where MessageNumber is the number of the message in the batch, while TotalMessages is the total number of messages in the batch.  Maybe a bit hokey but it gets the job done. 

      Your other option if you are just interested in if you have received the last item in a batch is to test each message for the IsLastMessage context property.  This is assigned to the last item out of the batch.

Viewing 2 reply threads
  • The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.