Re: Looping

Tech-Archive recommends: Fix windows errors by optimizing your registry



On Nov 20, 1:51 pm, Jan Eliasen <elia...@xxxxxxxxxxxxx> wrote:
On Mon, 19 Nov 2007 13:00:34 -0800 (PST), Mangood



<marcin.sworzyn...@xxxxxxxxx> wrote:
Hi
I hava xml as following:
<ticket>
<person_name>
aaaaaaa
</person_name>
<route>
<dest>waw</dest>
<dest>orc</dest>
<dest>ale</dest>
</route>
</ticket>
In map need loop thru <dest> field elements and perform database
lookup at each of destination. Lookup should return information
whether destination is domestic or foreign. Based on this information
I should send one field element to output schema with proper account
number (it's constant string).

How can I achive that in biztalk ???

If I understand you correctly, you can use the DB Lookup functoid in a
map to look up the domestic/foreign values?

--
eliasen, representing himself and not the company he works for.

Private blog:http://blog.eliasen.dk

Private email: j...@xxxxxxxxxx

Yes I can use it. But how to code following algorithm using map:

loop thru all <dest> elements in <route> record
If any of those <dest> elements is foreign break the loop and produce
output <foreign accnt number>
otherwise
output <domestic accnt number>
so as input we have one or more <dest> elements and produced output
should be one element with accnt number.
I don't know if it's even possible :(.

Thanks for your help.

.



Relevant Pages

  • Re: Looping
    ... In map need loop thru field elements and perform database ... Lookup should return information ... Private blog: http://blog.eliasen.dk ...
    (microsoft.public.biztalk.general)
  • RE: Where to do a SQL Lookup: map or orchestration
    ... I have a question about where to handle a SQL Adapter lookup. ... customer part number and the CustomerId as criteria. ... Is this kind of thing best handled in a map using a (Database Lookup ...
    (microsoft.public.biztalk.general)
  • 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)
  • Re: What is best term for data structure etc. for key-to-value lookups?
    ... "Map", which can be implemented as HashMap or TreeMap etc. ... And even after you have it, you can't do a key lookup to get the ... - "associative array" (seems to be the preferred term in WikiPedia, ... then resolving conflicts to yield a single bucket containing the ...
    (comp.programming)
  • LOOK AT ME WILL JOHNSON N MA SOCK PUPPETS IN SANTA CRUZ CA USING CRUZIO AT Lookup IP Address: 63.249
    ... LOOK AT ME WILL JOHNSON N MA SOCK PUPPETS IN SANTA CRUZ CA USING ... CRUZIO AT MAP OF Lookup IP Address: ...
    (soc.genealogy.medieval)