Call Send Pipeline to get original message

Home Page Forums BizTalk 2004 – BizTalk 2010 Call Send Pipeline to get original message

Viewing 1 reply thread
  • Author
    Posts
    • #23207

      Perhaps my code or approach is way off anyways so here is what I’m trying to do:

      Requirements:
      1) Receive and dynamically route HL7 messages. This is coded and working fine.
      2) Based on the destination I need to save the original
      message(flat-file) that came from the third party to disk to be
      archived.
      3) Only catch;The file needs to sit in a specific folder structure.
         – Folder Structure: MessageArchive>%Destination%>%Date%

                    – I have an assembly that creates the directories and
      saves the files. That is working fine but I can’t figure out how to get
      a hold of the flat file message.

         
      I’m trying to get permission to release the source, but here is a snippet from the orchestration where I’m trying to call a send pipeline with hopes of getting access to the flat-file.


      Messages


      MessageIn

       – BTAHL7Schemas.HL7_Generic_MsgType

      MessageORU

      -BTAHL7Schemas.HL7_ORUR01_MsgType

      OutputInterchange

      -System.String



      Variables

      SendPipeInput

      -Microsoft.XLANGs.Pipeline.SendPipelineInputMessages



      Multi-Part Message Types

      HL7_Generic_MsgType

      – BodySegments (Microsoft.XLANGs.BaseTypes.Any)

      – MSHSegment (BTAHL7Schemas.MSH_25_GLO_DEF)

      – ZSegments(Microsoft.XLANGs.BaseTypes.Any)

      HL7_ORUR01_MsgType

      – BodySegments (BTAHL7Schemas.ORU_R01_24_GLO_DEF)


      – MSHSegment (BTAHL7Schemas.MSH_25_GLO_DEF)



      – ZSegments(Microsoft.XLANGs.BaseTypes.Any)






      Construct OutputInterchange Message Assignment Shape

      OutputInterchange = “”;

      SendPipeInput.Add(MessageORU);

      Microsoft.XLANGs.Pipeline.XLANGPipelineManager.ExecuteSendPipeline(typeof(BTAHL72XPipelines.BTAHL72XSendPipeline),
      SendPipeInput, OutputInterchange);

      Thanks,
      Sam

    • #23214

      You might like to use the Message Archiving pipeline component. Add this as the first component in your receive pipeline.

      The code is here: http://btsmsgarchcomp.codeplex.com/

       

       

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