BizTalk Server General - Field content as filename prefix

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server General > October 2005 > Field content as filename prefix





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Field content as filename prefix
patrick.sannes@gmail.com

2005-10-28, 5:03 pm

Hi,

I have a layout with a promoted property. I wondered how I can use the
contend of that field as a prefix of the filename?
I have a big file with a lot of records. I want to group the records on
the content of that field.

So it will be something like
AA,BB,CC
AA,BB,QQ
BB,AA,GG
CC,DD,QQ

I first split them all in separate files, they will be called something
like
AA.MSGID.XML
AA,BB,CC
AA.MSGID.XML
AA,BB,QQ
BB.MSGID.XML
BB,AA,GG
CC.MSGID.XML
CC,DD,QQ

So then I can create 3 new files and send them.
AAGROEP.MSGID.XML
AA,BB,CC
AA,BB,QQ
ETC.

Does someone know how I can do this. (it is an example, so maybe not
the best design way to do it. So I hope you can please answer the
question. Also, if someone has an better way of doing this.. Please let
me know. But, you have to know, that it could be that msgtype AA is
send in batch and msg type BB is send realtime.)

Regards,
Patrick Sannes

Scott Colestock

2005-10-31, 5:55 pm

You should be able to use a dynamic send port to accomplish this (or a
pipeline component).
Dynamic send port would let all the work occur in an orchestration.
something like -
YourPort(Microsoft.XLANGs.BaseTypes.Address) =
System.String.Format("FILE://{0}",msg.YourProp);

Scott Colestock
www.traceofthought.net

<patrick.sannes@gmail.com> wrote in message
news:1130480396.738383.266400@g43g2000cwa.googlegroups.com...
> Hi,
>
> I have a layout with a promoted property. I wondered how I can use the
> contend of that field as a prefix of the filename?
> I have a big file with a lot of records. I want to group the records on
> the content of that field.
>
> So it will be something like
> AA,BB,CC
> AA,BB,QQ
> BB,AA,GG
> CC,DD,QQ
>
> I first split them all in separate files, they will be called something
> like
> AA.MSGID.XML
> AA,BB,CC
> AA.MSGID.XML
> AA,BB,QQ
> BB.MSGID.XML
> BB,AA,GG
> CC.MSGID.XML
> CC,DD,QQ
>
> So then I can create 3 new files and send them.
> AAGROEP.MSGID.XML
> AA,BB,CC
> AA,BB,QQ
> ETC.
>
> Does someone know how I can do this. (it is an example, so maybe not
> the best design way to do it. So I hope you can please answer the
> question. Also, if someone has an better way of doing this.. Please let
> me know. But, you have to know, that it could be that msgtype AA is
> send in batch and msg type BB is send realtime.)
>
> Regards,
> Patrick Sannes
>



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com