Copy a Map

Viewing 1 reply thread
  • Author
    Posts
    • #18360

      Is there any effective way to make a copy of map file?

      I have
      to create differenent maps for processing different supplier invoices.
      I have 2 suppliers whose maps are VERY similar, but not the same.
      Rather than going a bunch of if/else logic I want to make a copy of the
      original map and make the necessary modifications, rather than creating
      a new map from scratch. 

      Looking at a .btm file reveales that
      each functoid has a GUID. Will copying the .btm file directly, renaming
      it, then including it in the project in VS cause any problems? I’m
      thinking that the GUIDs may cause a problem because they will be the
      same between the 2 maps.

      Can anyone elaborate or tell me a better way to copy a map?

    • #18361

      Greg,

      This isn’t actually answering your question but I had exactly the same problem with same invoice formats /  multiple customers. I copied the map (literally copy and paste in VS) and didn’t have any problems with GUIDs etc. (in fact I was a bit novice in those days and didn’t look inside the map); however, I was using custom XSLT rather than functoids etc. so maybe the GUID issue wasn’t a problem….

      Nick. 

      • #18367

        I did a direct copy and paste myself and a build with no problems. I
        have yet to fully test the map, but I’m assuming that if it can build
        it should be alright. Curious to know if anyone else has done this and
        if they ran into any problems!

        • #18368

          Greg – no issues. the guid is the fuinctoid’s global registration; it should be the same in each map using the functoid.

          The decision you face is common. The easy way is to fork as you are doing.  If you plan for massive growth, then at some point you consolidate all of the disparate logic into one map. For example, say there is a schema change that applies to all… If you have forked them, and, say you have 100 trading partners for that txn, then there are 100 maps for you to touch… 

           So with large systems we frequently consolidate these with the if statements like you mention so that we only have to change one artifact. 

          – weak architect 

           

           

Viewing 1 reply thread
  • The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.