Forum Replies Created
-
AuthorPosts
-
Thanks everyone,
It looks as if there was a huge backlog on TrackingData tables. once it was cleared, things became normal.
Thanks once again
Regards,
ox
April 24, 2008 at 12:41 PM in reply to: Get data from unbound element without using looping functiod #19464The correct answer is not to use inline XSLT. This displays a basic lack of skills with the mapping tool.
I don’t agree with this statement – using inline XSLT is perfectly acceptable in this situation. The solution you have proposed is overly complex and will be a maintenance nightmare! In fact, I personally don’t like the mapper and prefer to use entriely custom XSLT when doing anything that is non-trivial – XSLT is suscint and easily readable, not requiring an understanding of the BizTalk mapper before maintaining the code. The solution you have proposed is overkill, IMHO.
However, at the end of the day it is upto the poster of the original question how they wish to proceed with the desired solution: they now have two possible options to help implement the solution.
Regards, Nick.
April 24, 2008 at 9:36 AM in reply to: Get data from unbound element without using looping functiod #19462i feel the solution with scripting functoid is better. because you can achieve the same result in one step rather than using multiple functoids. every functoid is a different call to the XLang engine. the fewer the functoids, the better it is. i guess i am right, any other thoughts?
Lets try that link again
April 24, 2008 at 8:45 AM in reply to: Get data from unbound element without using looping functiod #19458The correct answer is not to use inline XSLT. This displays a basic lack of skills with the mapping tool.
The way to properly acheive this is to use a conditional mapper with the logical detecting the desired value of InRef or OutRef as the case may be. Then link the conditional mapper to a cumulative string functoid to get it to loop through all iteration of that element. Evaluate the output of the cumulative to detect non blank and then conditionally map that to the target element.
Depending on the data, you might also need to limit the looping level to 1 by adding the 1 as the second parameter to the cumulative string functoid.
Jitendra,
I strongly recommend that you buy a book and learn Biztalk. It would put you in a very difficult situation if you were to get a job with this level of knowledge of the tool. So please learn the tool before you end up in a critical situation without the proper knowledge.
Dave,
my rule of thumb for what goes into an orchestration is this: if it’s a business-level item then handle it in BizTalk, if it’s lower than that then create an assembly for it. BizTalk orchestrations give you nice visibility on a process – great to see what’s happening at a high-level. BizTalk is really very heavy when it comes to testing, so write an assembly – it’s easier to test and it’s probably at a nice level to be reused. Especially if you are thinking SOA.
Maybe Dunphy and Metwally’s quote is out of context, but on the face of it, I disagree. I’d be worried about doing extensive processing *in* an orchestration. And I am pretty sceptical about using a database adapter directly out an orchestration (although there are places where it works nicely).
It may be interesting to wonder why you are having the suspension problem. You need to call out to something that will finish relatively quickly – make BizTalk do the waiting. And only put atomic transactions round things that will finish quickly – otherwise make it long-running.
Looks that way!
Ox,
How long is a piece of string?
There are many things that could be causing your SQL Server to have issues. I would probably start by determining whether it is actually the SQL Server process that is max-ing the CPU out. If it is, can you confirm whether you have disk IO issues or processing/RAM issues. I listed two good articles from the SQL Server PSS team over on my blog at Diagnosing Performance Problems in SQL Server that should help give you a start in diagnosing your performance issues.
If you believe that it is the BizTalk databases that are causing the SQL Server bottleneck, you’re into classic scale-up or scale-out territory. You can either add additional resources to your exisitng SQL box (scale-up) – additional CPU/cores would probably be a good starting point given that you have reached the upper RAM limit on your server depending on the OS and assuming its a 32-bit server; or add additional SQL Server boxes and create multiple MessageBox databases (scale-up).
Some good links on scale-up and scale-out are: http://msdn2.microsoft.com/en-us/library/aa559821.aspx and http://msdn2.microsoft.com/en-us/library/aa578625.aspx
If you’re running 32-bit hardware, now might also be a good opportunity to move to 64-bit servers which have much greater expandabilty. You may also be interested in my blog post Optimising System Memory for SQL Server which details optimisation techniques for SQL Server.
Hope this helps, any further questions, please ask.
Regards, Nick.
So:
BTS 2006 R2 => VS 2005
BTS 2006 R3 => VS 2008April 24, 2008 at 3:10 AM in reply to: Get data from unbound element without using looping functiod #19451Hello,
This is quite easy using inline XSLT in a map, simply create two Scripting Functoids and use the following Inline XSLT:
<InRefOutputNode>
<xsl:value-of select=”//Instruction/PIValueParameter[@name = ‘InRef’]/@value” />
</InRefOutputNode>Simply replace the bold @name = ‘InRef’ with @name = ‘OutRef’ to extract that value in your second Scripting Functoid. Further details about how to use this functiod for Inline XSLT can be found at the MSDN website: http://technet.microsoft.com/en-us/library/ms916558.aspx
As an aside, I don’t actually like how the Bts mapper does inline XSLT – the //Instruction designation for starters isn’t valid XSLT and doesn’t start with your root element, which seems a bit strange. Anyway, the XSLT code above works!
Hope this helps, Nick.
Johan,
Visual Studio 2008 doesn’t support the btproj project type so no support for BizTalk 2006 just yet – you’re going to have to keep that VS2005 installation hanging around for a while yet.
However with the release of BizTalk 2006 R3 yesterday, VS2008 integration is just around the corner – see Steve Martins blog: http://blogs.msdn.com/stevemar/archive/2008/04/23/biztalk-server-platform-updates.aspx
Nick.
Dave,
Can I suggest that if you’re doing a lot of work in external assemblies, then maybe BizTalk isn’t the correct integration platform for your particular problem. It sort of defeats the point of BizTalk if you’re simply using the orchestration engine to call out of external assemblies, thereby losing all of the great Enterprise-y features.
If you can elaborate on why you need to do this (i.e. are you building Crystal Reports for example via their .Net API) and we may be able to offer alternatives, however I would second Gregs comment and suggest that you may need to use BizTalk to simply notify a secondary applcation (maybe a Windows Service) that reports are ready to be created, or create a custom adapter that will generate the reports as messages go through BizTalk (my current client has a similar solution where we generate PDF reports based on the message passing through the adapter).
More questions than answers I’m afraid, but possibly some food for thought.
Nick.
Does your ochestration care if the DB update is successful? If not, can you code the external assembly either spawn a thread or another process so the orchestration can continue on?
Is there any way to trigger the report generation outside of BizTalk? We have a system that does something like this. Every 5 minutes a service checks to see if there are records in a table. If there are it generates and sends emails based on those records.
The prolem with external assemblies like this is you are dragging BizTalk into other processes and is part of the reason you should avoid calling heavy processes from BizTalk. Try as much as possible to break up this big synchronous process into smaller and possibly asynchronous pieces.
Not sure if any of this was any help or not, but hopefully it gets you thinking 🙂
-
AuthorPosts