RE: Mapping

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Bob Corcoran (BobCorcoran_at_discussions.microsoft.com)
Date: 11/16/04


Date: Tue, 16 Nov 2004 08:19:03 -0800

Stephen,

Thanks for the great advice. I have a couple of general questions regarding
your suggestions. We are a Java shop, and we have a product that has been
developed in accordance with J2EE standards. My first question is: in order
to harness the full power of BizTalk, are we going to need to have developers
that are or will become C# or VB experts? And, will we be able to work with
what we have already developed in Java from a BizTalk perspective? Example:
we receive a message through the BizTalk platform, but we will want to apply
business rules that we have already written in Java? In other words, can we
leverage what we have already developed in Java while using BizTalk, or are
we talking about a complete paradigm shift?

"Stephen W. Thomas" wrote:

> Hello.
>
> To your first point, I would handle this using the value mapping functoid.
> I would use a logical functoid that equals “dependent” and one that does not
> equal “dependent”. Then, send these to the corresponding value mapping
> functoid and then to the node.
>
> As far as the data transformation goes, I would put that logic inside a C#
> (or VB) helper class and call it from the map. This way, if tomorrow CA
> changes to CAL you only need to update the helper class and not the map.
>
> Another approach, that requires a little more effort, would be to call an
> external component that reads an XML file or database for this type of look
> up. This would give you the most flexibility if that is what you are looking
> for.
>
> On another note, I like to have a helper class file to support my maps.
> This way, I remove an inline code out of the map and make it easer to follow
> and debug. This helper class could be used from transformations,
> conversions, string manipulation, if then logic, anything that would be
> easier in C# then countless functoids.
>
> Please let me know if you have additional questions.
>
> Stephen W. Thomas
> http://www.geekswithblogs.net/sthomas
>
>
> "Bob Corcoran" wrote:
>
> > I'm new to BizTalk and .Net. My task is to transform an XML document based on
> > an existing schema to a client's positional flat file format. I've imported
> > the existing schema and I've also created the flat file schema, with a
> > header, a body (maxOccurs = *), and a trailer. Up until now, I have written
> > the XSLT by hand for these situations, but I understand BizTalk 2004 will
> > create the XSLT for me based on the mapping. As such, I have a couple of
> > general questions based on the following document snippet:
> >
> > <Healthcare type="dependent">
> > <StartDate>20041101</StartDate>
> > </Healthcare>
> >
> > if type == "dependent"
> > map StartDate value to field 'startdate1' in flat file
> > else
> > map StartDate value to field 'startdate2' in flat file
> >
> > Would I use a functoid to express this logic?
> >
> > And, would I use functoids to translate data?
> >
> > Example: if state = 'California' in source schema, map to flat file as 'CA'
> >
> > Thanks very much,
> > --
> > Bob Corcoran



Relevant Pages

  • RE: Mapping
    ... I would handle this using the value mapping functoid. ... changes to CAL you only need to update the helper class and not the map. ... > an existing schema to a client's positional flat file format. ...
    (microsoft.public.biztalk.general)
  • Re: Binding problem in .jsp page
    ... I use the Java EE tutorial on Java Server Faces to help me on this ... JSF component, ... the "dot" notation does a couple of things. ... Otherwise, it acts as an array or Map dereferencer, same as the square ...
    (comp.lang.java.programmer)
  • Re: newbie question: the steps of a making a ping service
    ... >> I want to store a list of web addresses in a flat file, and then, once ... >> into an array, then loop though that array and open the pages. ... >> cron, but I think doing this in Java would be more portable, and I ... >> So I'm asking what are the steps involved in making this script? ...
    (comp.lang.java)
  • What is best term for data structure etc. for key-to-value lookups?
    ... In Java, the general term for mapping key to value is the interface ... "Map", which can be implemented as HashMap or TreeMap etc. ... search rather than more efficient hash or tree search, ...
    (comp.programming)
  • Re: Using java.util.map
    ... You perform a lookup and an insertion. ... these operations degenerate each element in the map would have been visited. ... create an extra pairobject for each entry), and the Java way is dirty. ... problems understanding simple for loops of the sort ...
    (comp.lang.java.advocacy)