none
Call FlatFile Receive Pipeline Inside the Orchestration RRS feed

  • Question

  • Folks , 

    I have a requirement , need to know if we can do it. I want to call a Flatfile receive pipeline inside the orchestration to convert txt file(PipeDelimited) into xml . is it possible to do ? 


    Can anyone help me with the suggestion ? 


    Sukra


    • Edited by sukra1234 Thursday, October 31, 2019 4:32 PM
    Thursday, October 31, 2019 4:32 PM

All replies

  • Thursday, October 31, 2019 8:04 PM
  • Hello,

    Yes, It's possible to call FF Receive pipeline inside orchestration,

    Not sure, what's your exact requirement, but if you are looking for code to call Rcv pipeline in orchestration, here it is,

    You can achieve it following below steps

    1. Code to Call Receive pipeline, Place it in expression shape,

    RcvPipeOutput = Microsoft.XLANGs.Pipeline.XLANGPipelineManager.ExecuteReceivePipeline(typeof(Pipeline.FFReceivePipeline), FFXLangInstance);

    2. Place the following code in Message Assignment shape, this would assign the pipeline output, to  your FFSchema,

    FFSchemaMsg = new System.Xml.XmlDocument();
    RcvPipeOutput.MoveNext();
    RcvPipeOutput.GetCurrent(FFSchemaMsg);

    Thanks,

    Sarva.

    Friday, November 1, 2019 5:12 AM
  • The message which is created will be string in that case we cant assign to a xml document . What can be sukra

    • Edited by sukra1234 Friday, November 1, 2019 2:15 PM
    Friday, November 1, 2019 2:15 PM
  • It has to be XML in BizTalk.   Just convert it back to a Flat File on the way out.
    Tuesday, November 5, 2019 8:52 PM
  • Hi,

    You mean, your FF input is received in a string?

    can you pls let us know exact requirement?, so that we can provide best answer.

    Thanks,

    Sarva.

    Wednesday, November 6, 2019 5:22 AM