Re: Scripting Functoid: Inline or External Assembly?

Tech-Archive recommends: Speed Up your PC by fixing your registry

From: Jon Flanders (jfland_at_develop.com)
Date: 01/12/05


Date: Tue, 11 Jan 2005 16:59:29 -0800

That doesnt' really matter since Functoids are just inline .NET code that
the Xslt Engine in .NET compiles into a .NET type.

here is my pro/con list

Inline:
Pro
- easier to setup
- easier deployment (only the map needs to be deployed - not the map and the
external assembly)
Con
- no intellisense in the editor
- no debugging
- limited namespaces

External
Pro
- Intellisense
- re-use (although if you have a re-usable piece of code you can make a
custom functoid)
- debugging
Con
- threading (the mapping engine pools these objects so your objects may be
accessed by multiple threads at the same time)
- deployment (must also distribute the assembly)

I am sure I've missed some but those are the ones I usually think about.

-- 
Jon Flanders [DevelopMentor]
http://staff.develop.com/jfland/
http://www.develop.com/courses/biztalk
"Spaceman Spiff" <SpacemanSpiff@discussions.microsoft.com> wrote in message
news:CAD5DDA3-A3CF-48B5-8CA1-CA51D26FE641@microsoft.com...
> Apart from better code maintence, is there any execution improvement in
> calling an external assembly instead of having inline scripting?
> Consider a situation where the Scripting Functoid is in a loop and it is
> called hundreds of times.
>
>      Regards
> Spaceman Spiff


Relevant Pages

  • Re: Custom Functoid... Help!!!
    ... namespace in your inline transform scripts. ... Can you change your functoid to a referenced functoid? ... But in one of my custom functoid I use database connectivity. ... "btm1021: Inline Script Error: The type or namespace name ...
    (microsoft.public.biztalk.general)
  • Re: BizTalk 2004 :: mapping :: scripting functoid question
    ... Hi Matt, everyone, ... Then you can use inline script calls in your XSLT to call ... >> The scripting functiod doesn't allow linking to nodes. ... >> this you have to create a custom functoid. ...
    (microsoft.public.biztalk.general)
  • RE: Passing a whole section of XML to a scripting functiod
    ... I¡¯d like to confirm my understanding of your issue. ... inline C# functoid to process the source XML document and generate some XML ...
    (microsoft.public.biztalk.general)
  • RE: Logical functoid has gone wrong
    ... go to script type precedence and make sure that Inline C# is the first in the list. ... >a previous one I noticed it went back to inline c-sharp ... >>following errors (for every instance of this functoid) ...
    (microsoft.public.biztalk.general)