Forum Replies Created
-
AuthorPosts
-
Hey John,
I want the user to browse for a file, then click a “Test” button. I then want them to be redirected to another page where they can see a report showing the status of their test. This report will be generated by BizTalk and publish via an HTTP send port.
I need it to be a seamless processes. User submits file, use gets report.
I agree with Nick – a switch in an orchestration is a nice clear way of doing what you want.
If you really wanted to avoid an orchestration, you might be able to do this with a small pipeline component which basically just needs to tweak the output file name according to the message type. So, reach into the message context and change depending on the action field.
But, it’s not very clear or obvious.
John D.
It did!
I will make an orchestration with three branches (Create, Update, Delete) and a last branch if nothing is specified in the attribute (Suspend message)’
Thanks!
Mcgyver,
I don’t know how to accomplish this using the BizTalk mapper, so would probably resort to XSLT, however I’m now sure how I would represent the destination schema given that the output message isn’t determined until ‘map execution time’.
I think that the cleanest way to accomplish this (assuming you’re not doing a messaging only solution) would be to use three transformation shapes in an orchestration, using the decide shape and an XPath query on the root element attribute to determine which branch to traverse. This approach would also cleanly separate orchestration messages (i.e. you’d have individual Create, Update and Delete messages rather than a single ‘everything’ message); it would also make maintenance of maps easier in the long-run IMHO.
Hope that helps.
Cheers, Nick.
Gennady,
I’m assuming that you have your reusable orchestration in a separate assembly? If this is the case, when you use the StartOrchestration shape you will tying the orchestrations together through assembly references, so when you come to redeploy or delete the called orchestration you will receive the ‘already in use error’ that you are seeing, irrespective of which application the orch sits (don’t forget, the application is just a logical bucket for artifacts)
What you will need to do is re-develop the calling and called orchestration to use direct message box communication, thereby de-coupling the two orchestrations: the calling orch will send messages directly to the message box (rather than using the Start/Call Orchestration shape) and the called orch will listen for messages via a subscription. You can then re-deploy the called/reusable orchestration without any worry about dependancies.
I’ve really whipped through what you want to do here, so go and read the following two blog posts: http://geekswithblogs.net/cyoung/articles/19546.aspx and http://blogs.msdn.com/kevin_lam/archive/2006/04/25/583490.aspx
Cheers, Nick
April 2, 2008 at 12:41 AM in reply to: Integration with Infor Visual Enterprise and DCMS (formally Lilly Software) #19228Jmp
As far as I am aware, there are no adapters or accelerators that allow BizTalk to interact natively with Visual Enterprise and DCMS. BizTalk has a number of different adapters that allow communication over common protocols such as FTP, SOAP, HTTP, MSMQ etc. and can define Xml and FlatFile structures to cater for almost any message format. In addition, the latest release (BizTallk 2006 R2) includes native EDI handling capabilities.
As an example of how you might integrate, consider the following solution I implemented a few years ago: Customers would send orders in a variety of formats, including traditional EDI, Xml and flat-file; these orders would be collected by the BizTalk environment from an MSMQ queue and would be transformed into the format for the destination ERP system (a system with no dedicated BizTalk adapters), either using the Xml disassembler, flat-file disassembler or the Base EDI Adapter . These messages were then sent to the ERP system initially over FTP (the ERP system would collect messages as batches – it was UNIX after all). Later, the BizTalk environment was changed to deliver messages to the ERP system over MQSeries to allow real-time processing of orders (for which there is a native BizTalk adapter).
I hope this give you an idea of how BizTalk can be used without native adapters for the Visual Enterprise and DCMS systems. If you require any further help, please post to this forum or drop me a private message.
Regards, Nick.
Hi Anon,
It would be possible to write each output message to an individual folder, however I would probably question why you want to do that – maybe there is a better design for your solution?
If you still need this functionality, I would recommend setting the SourceFileName context property of the message before it leaves an orchestration as follows:
outputMsg(FILE.SourceFileName) = "C:\OutputFolder\Somewhere\"+ System.Guid.NewGuid() +".xml";
and then using a custom encoding pipeline component on the send pipeline to read the SourceFileName property and create the directory structure if it doesn’t exist. If you then use a FILE adapter, the file should be delivered to the correct directory.
Hope that helps, Nick.
Hi Chilberto,
Looking at your output document, I’m not too sure what determines the structure – i.e. there doesn’t appear to be a pattern in the use of Or or Eq elements. Can you elaborate on this?
I’ll also second Mike’s comments – if you can post the XSD, that would be helpful.
Cheers, Nick.
Greg,
it’s not clear for me what the users exerience should be. Do they get an acknowledgment that the file was uploaded? Or that it was processed? What is the nature of the respose you send back?
In general my preference would be to have a layer of separation. The incoming file is delivered by HTTP and dropped into a file location.This lets you test the downstream part locally without HTTP – just drop files.
John D.
Hi Nick,
Where can i download latest version?
Is it licensed? Please provide the url.
Thanks,
Arun
Hi Nick,
Last night I successfully truncate the BizTalkDTADb database. By the way, I found that views with SCHEMABINDING and truncate table command work different in SQL 2000 and SQL 2005. When I tested the script on SQL 2005 there wasn’t any issue, but SQL 2000 refused truncate a table without droping the views (that’s probably why you did it).
As a result, steps are:
0. Before start, ensure you have got the database admin priveleges on the database
1. Stop all BizTalk Server Host Instances
2. Full backup BizTalkDTADb database (just in case)
3. Make scripts to create views (MANDATORY)
dbo.dtav_ServiceFacts
dbo.dtav_MessageFacts
dbo.dtav_FindMessageFacts4. Run SQL script:
use BizTalkDTADb
GO— Drop the Views (before you perform this, ensure you take copies of these views!)
— unfortunately, it’s necessary for SQL 2000, but you can skip it for SQL 2005
Drop View dbo.dtav_ServiceFacts
Drop View dbo.dtav_MessageFacts
Drop View dbo.dtav_FindMessageFacts
Go— Truncate the necessary Tables
Truncate Table dta_CallChain
Truncate Table dta_DebugTrace
Truncate Table dta_MessageInOutEventsTruncate Table dta_ServiceInstanceExceptions
Truncate Table dta_ServiceInstancesTruncate Table Tracking_Fragments1
Truncate Table Tracking_Parts1
Truncate Table Tracking_Spool1Truncate Table dta_MessageFieldValues
— end of the script
5. Update statistics on BizTalkDTADb database
— update statistics
exec sp_updatestats6. Run the saved scripts (see step 3) to recreate the dropped views from your own environment.
7. Shrink BizTalkDTADb database (sometimes it doesn’t work from GUI, so using sql command will help)
— shrink database
dbcc shrinkdatabase (BizTalkDTADb, 10)8. Start BizTalk Server Host Instances
9. Configure and enable SQL Agent job “DTA Purge and Archive” (to avoid over-growing the database in the future)
P.S. The script above does not truncate Rule Engine related tables.
Regards,
Nick Busy
Yes, I would download and install the latest version. They’ve just released a new one. Microsoft.Sdc.Tasks.BizTalk.dll & Microsoft.Sdc.Tasks.dll – ver. 2.1.3009.0, Microsoft.Sdc.BizTalkOM.dll -ver. 3.0.8000.0
Regards,
Nick
Hi Nick, I’ll give that a shot and see what happens…just to clarify, I am looking to send the XML doc from BTS to MSMQ…just wanted to make sure that’s out there.
The XSD being mapped to is for Sharepoint services. The xsd can be found for a typical installation at: C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\XML.
For my purposes, I am only concerned with being able to generate a query string containing 1 to an unknown number of Eq statements and Or joins.
Cheers, Jeff
For convenience, here is the XSD that covers the Query clause:
<?xml version=”1.0″ encoding=”utf-16″ ?>
– <xs:schema xmlns:b=”http://schemas.microsoft.com/BizTalk/2003” xmlns=”http://schemas.microsoft.com/sharepoint/” attributeFormDefault=”unqualified” elementFormDefault=”qualified” targetNamespace=”http://schemas.microsoft.com/sharepoint/” id=”CamlQuery” xmlns:xs=”http://www.w3.org/2001/XMLSchema“>
<xs:include schemaLocation=”coredefinitions.xsd” id=”CoreDef” />
– <xs:complexType name=”CamlQueryRoot” mixed=”true”>
– <xs:all>
<xs:element minOccurs=”0″ maxOccurs=”1″ name=”Where” type=”LogicalJoinDefinition” />
<xs:element minOccurs=”0″ maxOccurs=”1″ name=”OrderBy” type=”FieldRefDefinitions” />
<xs:element minOccurs=”0″ maxOccurs=”1″ name=”Eq” type=”LogicalTestDefinition” />
<xs:element minOccurs=”0″ maxOccurs=”1″ name=”Field” type=”SimpleFieldRef” />
<xs:element minOccurs=”0″ maxOccurs=”1″ name=”ListProperty” type=”ListPropertyDefinition” />
<xs:element minOccurs=”0″ maxOccurs=”1″ name=”LookupColumn” type=”LookupColumnDefinition” />
<xs:element minOccurs=”0″ maxOccurs=”1″ name=”Column” type=”QueryColumnDefinition” />
<xs:element minOccurs=”0″ maxOccurs=”1″ name=”GetVar” type=”QueryGetVarDefinition” />
<xs:element minOccurs=”0″ maxOccurs=”1″ name=”GroupBy” type=”GroupByDefinition” />
<xs:element minOccurs=”0″ maxOccurs=”1″ name=”Contains” type=”LogicalTestDefinition” />
<xs:element minOccurs=”0″ maxOccurs=”1″ name=”BeginsWith” type=”LogicalTestDefinition” />
</xs:all>
</xs:complexType>
– <xs:complexType name=”LogicalTestDefinition”>
– <xs:sequence>
– <xs:choice minOccurs=”0″ maxOccurs=”unbounded”>
<xs:element name=”FieldRef” type=”FieldRefDefinition” />
<xs:element name=”Value” type=”ValueDefinition” />
<xs:element name=”XML” type=”xs:string” />
</xs:choice>
</xs:sequence>
</xs:complexType>
– <xs:complexType name=”LogicalJoinDefinition”>
– <xs:sequence>
– <xs:choice minOccurs=”0″ maxOccurs=”unbounded”>
<xs:element name=”Eq” type=”LogicalTestDefinition” />
<xs:element name=”Geq” type=”LogicalTestDefinition” />
<xs:element name=”Gt” type=”LogicalTestDefinition” />
<xs:element name=”Leq” type=”LogicalTestDefinition” />
<xs:element name=”Lt” type=”LogicalTestDefinition” />
<xs:element name=”Neq” type=”LogicalTestDefinition” />
<xs:element name=”And” type=”ExtendedLogicalJoinDefinition” />
<xs:element name=”Or” type=”ExtendedLogicalJoinDefinition” />
<xs:element name=”Membership” type=”MembershipDefinition” />
<xs:element name=”IsNull” type=”LogicalTestDefinition” />
<xs:element name=”IsNotNull” type=”LogicalTestDefinition” />
<xs:element name=”DateRangesOverlap” type=”UnlimitedLogicalTestDefinition” />
<xs:element name=”BeginsWith” type=”LogicalTestDefinition” />
<xs:element name=”Contains” type=”LogicalTestDefinition” />
</xs:choice>
</xs:sequence>
</xs:complexType>
– <xs:complexType name=”FieldRefDefinition” mixed=”true”>
– <xs:simpleContent>
– <xs:extension base=”xs:string”>
<xs:attribute name=”Alias” type=”xs:string” />
<xs:attribute name=”Ascending” type=”TRUEFALSE” />
<xs:attribute name=”CreateURL” type=”xs:string” />
<xs:attribute name=”DisplayName” type=”xs:string” />
<xs:attribute name=”Explicit” type=”TRUEFALSE” />
<xs:attribute name=”ID” type=”xs:string” />
<xs:attribute name=”Key” type=”xs:string” />
<xs:attribute name=”Name” type=”xs:string” />
<xs:attribute name=”RefType” type=”xs:string” />
<xs:attribute name=”ShowField” type=”xs:string” />
<xs:attribute name=”TextOnly” type=”TRUEFALSE” />
<xs:attribute name=”Type” type=”ReferenceType” />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
– <xs:simpleType name=”ReferenceType”>
– <xs:restriction base=”xs:string”>
<xs:enumeration value=”AVG” />
<xs:enumeration value=”COUNT” />
<xs:enumeration value=”MAX” />
<xs:enumeration value=”MIN” />
<xs:enumeration value=”SUM” />
<xs:enumeration value=”STDEV” />
<xs:enumeration value=”VAR” />
</xs:restriction>
</xs:simpleType>
– <xs:complexType name=”ValueDefinition” mixed=”true”>
– <xs:complexContent mixed=”true”>
– <xs:restriction base=”xs:anyType”>
– <xs:sequence>
– <xs:choice minOccurs=”0″ maxOccurs=”unbounded”>
<xs:element minOccurs=”0″ maxOccurs=”1″ name=”Today” type=”xs:string” />
<xs:element name=”UserID” nillable=”true” type=”xs:string” />
<xs:element name=”ListProperty” type=”QueryListProperty” />
<xs:element name=”Now” type=”xs:string” />
<xs:element name=”Month” type=”xs:string” />
<xs:element name=”XML” type=”xs:string” />
</xs:choice>
</xs:sequence>
<xs:attribute name=”Type” type=”xs:string” />
</xs:restriction>
</xs:complexContent>
</xs:complexType>
– <xs:complexType name=”LogicalNullDefinition”>
– <xs:sequence>
<xs:element name=”FieldRef” type=”FieldRefDefinition” />
</xs:sequence>
</xs:complexType>
– <xs:complexType name=”ExtendedLogicalJoinDefinition”>
– <xs:sequence>
– <xs:choice minOccurs=”0″ maxOccurs=”unbounded”>
<xs:element name=”Eq” type=”LogicalTestDefinition” />
<xs:element name=”Geq” type=”LogicalTestDefinition” />
<xs:element name=”Gt” type=”LogicalTestDefinition” />
<xs:element name=”Leq” type=”LogicalTestDefinition” />
<xs:element name=”Lt” type=”LogicalTestDefinition” />
<xs:element name=”Neq” type=”LogicalTestDefinition” />
<xs:element name=”And” type=”ExtendedLogicalJoinDefinition” />
<xs:element name=”Or” type=”ExtendedLogicalJoinDefinition” />
<xs:element name=”IsNull” type=”LogicalNullDefinition” />
<xs:element name=”IsNotNull” type=”LogicalNullDefinition” />
<xs:element name=”DateRangesOverlap” type=”LogicalTestDefinition” />
<xs:element name=”BeginsWith” type=”LogicalTestDefinition” />
<xs:element name=”Contains” type=”LogicalTestDefinition” />
<xs:element name=”Membership” type=”MembershipDefinition” />
</xs:choice>
</xs:sequence>
</xs:complexType>
– <xs:complexType name=”FieldRefDefinitions” mixed=”true”>
– <xs:sequence>
<xs:element minOccurs=”0″ maxOccurs=”unbounded” name=”FieldRef” type=”FieldRefDefinition” />
</xs:sequence>
</xs:complexType>
– <xs:complexType name=”RowDefinition”>
– <xs:sequence>
<xs:element minOccurs=”0″ maxOccurs=”unbounded” name=”Field” type=”FieldDataDefinition” />
</xs:sequence>
</xs:complexType>
– <xs:complexType name=”FieldDataDefinition”>
– <xs:simpleContent>
– <xs:extension base=”xs:string”>
<xs:attribute name=”Name” type=”xs:string” />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
– <xs:complexType name=”RowDefinitions”>
– <xs:sequence>
<xs:element minOccurs=”0″ maxOccurs=”unbounded” name=”Row” type=”RowDefinition” />
</xs:sequence>
</xs:complexType>
– <xs:complexType name=”EmptyQueryDefinition”>
<xs:sequence />
</xs:complexType>
– <xs:complexType name=”SimpleFieldRef”>
<xs:sequence />
<xs:attribute name=”Name” type=”xs:string” />
</xs:complexType>
– <xs:complexType name=”LookupColumnDefinition”>
<xs:sequence />
<xs:attribute name=”HTMLEncode” type=”TRUEFALSE” />
<xs:attribute name=”StripWS” type=”TRUEFALSE” />
<xs:attribute name=”Name” type=”xs:string” />
<xs:attribute name=”ShowField” type=”xs:string” />
<xs:attribute name=”URLEncodeAsURL” type=”TRUEFALSE” />
</xs:complexType>
– <xs:complexType name=”QueryColumnDefinition” mixed=”true”>
– <xs:complexContent mixed=”true”>
– <xs:extension base=”LookupColumnDefinition”>
<xs:sequence />
<xs:attribute name=”Default” type=”xs:string” />
<xs:attribute name=”URLEncode” type=”TRUEFALSE” />
</xs:extension>
</xs:complexContent>
</xs:complexType>
– <xs:complexType name=”QueryGetVarDefinition”>
<xs:sequence />
<xs:attribute name=”HTMLEncode” type=”TRUEFALSE” />
<xs:attribute name=”Name” type=”xs:string” />
</xs:complexType>
– <xs:complexType name=”QueryListProperty”>
<xs:sequence />
<xs:attribute name=”URLEncodeAsURL” type=”TRUEFALSE” />
<xs:attribute name=”Select” type=”xs:string” />
</xs:complexType>
– <xs:complexType name=”MembershipDefinition”>
– <xs:complexContent mixed=”false”>
– <xs:extension base=”LogicalTestDefinition”>
<xs:sequence />
<xs:attribute name=”Type” type=”xs:string” />
</xs:extension>
</xs:complexContent>
</xs:complexType>
– <xs:complexType name=”GroupByDefinition”>
– <xs:complexContent mixed=”false”>
– <xs:extension base=”LogicalTestDefinition”>
<xs:sequence />
<xs:attribute name=”Collapse” type=”TRUEFALSE” />
</xs:extension>
</xs:complexContent>
</xs:complexType>
– <xs:complexType name=”UnlimitedLogicalTestDefinition”>
– <xs:sequence>
– <xs:choice minOccurs=”0″ maxOccurs=”unbounded”>
<xs:element name=”FieldRef” type=”FieldRefDefinition” />
<xs:element name=”Value” type=”ValueDefinition” />
</xs:choice>
</xs:sequence>
</xs:complexType>
</xs:schema> -
AuthorPosts