Writing FileNames with Custom Pipeline
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > BizTalk Server > BizTalk Server Applications Integration > Writing FileNames with Custom Pipeline




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Writing FileNames with Custom Pipeline  
JP


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-22-05 07:48 AM

Hi,
I have 2 different schemas with two properties i would like to read from.
If its type A then append "A" to the output filename if type B append "B" to
the filename.  i have tried using a dynamic send port with  a custom pipelin
e
but cannot get it to work.
Any help is much appreciated





[ Post a follow-up to this message ]



    Re: Writing FileNames with Custom Pipeline  
dickdijkstra@hotmail.com


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
09-12-05 11:06 PM

You don't have to use a custom pipeline component to do the trick. You
can create a decide-shape in your orchestration that determines whether
your filetype is A or B. Then drag a send shape on each branch of your
decide shape, that connect to one dynamic send port. You can set the
filename programatically using an expression shape.

Use something like this: MyPort(Microsoft.XLANGs.BaseTypes.Address) =
"c:\\fileA.txt" for the expression shape at branch 1 and
MyPort(Microsoft.XLANGs.BaseTypes.Address) = "c:\\fileB.txt" for the
expression shape at branch 2.






[ Post a follow-up to this message ]



    Re: Writing FileNames with Custom Pipeline  
JP


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
09-13-05 07:48 AM

Thanks!  will try it out.
How do I work out what type of file it is, seeing that the schemas are
slightly differently?

"dickdijkstra@hotmail.com" wrote:

> You don't have to use a custom pipeline component to do the trick. You
> can create a decide-shape in your orchestration that determines whether
> your filetype is A or B. Then drag a send shape on each branch of your
> decide shape, that connect to one dynamic send port. You can set the
> filename programatically using an expression shape.
>
> Use something like this: MyPort(Microsoft.XLANGs.BaseTypes.Address) =
> "c:\\fileA.txt" for the expression shape at branch 1 and
> MyPort(Microsoft.XLANGs.BaseTypes.Address) = "c:\\fileB.txt" for the
> expression shape at branch 2.
>
>





[ Post a follow-up to this message ]



    Re: Writing FileNames with Custom Pipeline  
Dick Dijkstra


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
09-20-05 12:48 PM

Hi JP,

You can use "BTS.MessageType" to find out what message you are dealing
with. So, on the left branch, the expression should be:

BTS.MessageType = "targetnamespace#rootnode"

Dick Dijkstra (www.dickdijkstra.com)






[ Post a follow-up to this message ]



    Re: Writing FileNames with Custom Pipeline  
JP


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
09-22-05 01:48 AM

Thanks!!

"dickdijkstra@hotmail.com" wrote:

> You don't have to use a custom pipeline component to do the trick. You
> can create a decide-shape in your orchestration that determines whether
> your filetype is A or B. Then drag a send shape on each branch of your
> decide shape, that connect to one dynamic send port. You can set the
> filename programatically using an expression shape.
>
> Use something like this: MyPort(Microsoft.XLANGs.BaseTypes.Address) =
> "c:\\fileA.txt" for the expression shape at branch 1 and
> MyPort(Microsoft.XLANGs.BaseTypes.Address) = "c:\\fileB.txt" for the
> expression shape at branch 2.
>
>





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 06:25 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register