Re: Flat File Problem
- From: "Greg Forsythe" <greg.forsythe@xxxxxxxxx>
- Date: Wed, 15 Mar 2006 10:54:36 +1300
Rather than modifying the flat file why don't you promote the property
yourself in your custom pipeline component.
baseMessage.Context.Promote("RecordCount", "Your RecordCount property
namespace", record count value);
You can do this just before returning from GetNext()
This would be much easier than modifying the input data, using a header
schema and relying on the FFDasm to promote the property for you.
The FFDasm will promotes properties
And you can promote properties from the Header into the message context, and
have access to them in the orchestration. If the input message is split by
the FFDasm each message will contain the header properties.
Greg
"Leonid Ganeline" <leo_gan_57@xxxxxxxxxxx> wrote in message
news:%23$B2qd6RGHA.256@xxxxxxxxxxxxxxxxxxxxxxx
Hi Gary,
As I can remember the header information is not accessible inside the
Orch. It is only immutable transfering from receive port to the send port.
Why do you use a header schema?
If you anyway use a custom pipeline you can add a node with a record ID to
the body schema.
Keep in mind that XmlDisassembler component promotes nodes to the context.
No XmlDisassembler - no promotion.
--
Regards,
Leonid Ganeline
BizTalk developer
Vancouver
http://geekswithblogs.net/leonidganeline
===================================
"Gary" <Gary@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:B924A764-3FAC-48D7-813C-AC182E8A4D9D@xxxxxxxxxxxxxxxx
Hi All,
I am currently working on a project where we receive a flat file which
contains no header or trailer but multiple records in the file. We are
wrapping the FFDasm in a custom pipeline so we can dynamically set the
schema
property.
What we are wanting to do is use a sequential convoy to enforce
sequencing.
Therefore we have figured that we could do this by counting the records
in
the flat file and then updating the stream by inserting our own header
record
before calling the FFDasm disassemble method.
We have currently hard coded the head so our file is as follows:
RecordCount2
Rec....... etc
Rec....... ect
We have assigned a schema to the DocumentSpecName and also a header
schema
to the HeaderSpecName. Our problem is we dont know how to get the value
from
the Header in an orchestration. We have tried promoting the RecordCount
property in the header schema and setting the promoted element to
MessagePropertyContextBase and we have set the PreserveHeader property to
true in the pipeline component but it doesn't seem to be populated in the
orchestration.
Can anyone give us a clue with this one please?
Cheers,
Gary
.
- Follow-Ups:
- Re: Flat File Problem
- From: Gary
- Re: Flat File Problem
- References:
- Re: Flat File Problem
- From: Leonid Ganeline
- Re: Flat File Problem
- Prev by Date: RE: Another Mapping problem
- Next by Date: Re: Message Propertiess in Map
- Previous by thread: Re: Flat File Problem
- Next by thread: Re: Flat File Problem
- Index(es):
Relevant Pages
|
Loading