Home Page › Forums › BizTalk 2004 – BizTalk 2010 › Filter for Different Messages comming to a single folder
- This topic has 8 replies, 1 voice, and was last updated 8 years, 4 months ago by
community-content.
-
AuthorPosts
-
-
July 29, 2010 at 7:25 AM #25434
Hi,
I have a requirement.
5 types of different Messages will come to a FTP folder. I have already impleneted the Orchestrations for all 5 types of Messages asuuming that the messages are comming to 5 different folders.
What will be the best solution for this? Is there a filter option available in biztalk where I can check the Messaage and send to the appropriate orchestration.
I mean my Orchestrations will pick the appropriate message from a single folder. How to do this?
Thanks A Lot In Advance
Regards,
Ram
-
July 29, 2010 at 9:45 AM #25440
Hi Ram,
You should specify a different receive location for each of your Orchestrations and you have to specify the correct file mask when configuring each Receive Location in the File Transport Properties window.
Is that helpful to you?
Daniel.
-
July 30, 2010 at 6:13 AM #25451
Hi Daniel,
I am planning to use the filter expression of receive shape. But i dont know how to configure the property of that. I have one unique filed in schema so i have did the distinguised promotionof that perticular field. so now on the basis of that field the message will go to the appropriate orchestration. but i dont know how to set the filter expression for that perticular promoted field.
Please help..
Regard,
Ram
-
July 30, 2010 at 8:05 AM #25452
Hi,
You can set your receive location to one folder, and collect all five of your messages. By the way – what difference is between them? If message type – good.
For filtering by receive shape, and let’s say different file types you can do this:
For exmple, in each orchestration – in receive shape of each orchestration you set the message type of each message :
BTS.MessageType = “First”
That’s it. The value in filter expression must be in double-qutes. Also I use direct binding, for easer deployment.
-
August 2, 2010 at 3:02 AM #25472
Hi,
5 types of different Messages are comming to a FTP folder. I have already impleneted the Orchestrations for all 5 types of Messages asuuming that the messages are comming to 5 different folders.
Now the requirement got changed. And i will have only one folder and i need to take the appropriate message to the appropriate orchestration. I mean my Orchestrations should pick the appropriate message from a single folder. How to do this?
The thing is, in all the incomming messages there is unique field, which let me know which orchestration shoud pick up the message. So i think I can do the distinguised property promtion for that perticular filed. but dont know how to set this for the receive shape filter expression properties.
Please help me.
Thanks A Lot In Advance
-
August 2, 2010 at 9:30 AM #25476
Hi,
Did you take the time to read Yonathan’s post above? Here’s an MSDN article that explains how to set the filter expression in your activatable Receive shape in an orchestration:
http://msdn.microsoft.com/en-us/library/aa560178(BTS.70).aspx
Basically, if you have a Distinguished property in your incoming message’s schema (e.g. UniqueField), then you should be able to set a filter expression like the following (in the Filter Expression property of your Receive shape):
YourMessageType.UniqueField == 1
So, one of your orchestrations will have the above kind of filter expression, then for your next orchestration, you can set a filter expression something like this:
YourMessageType.UniqueField == 2
(and so on and so forth)
etc.
Is this clear enough for you?
Daniel.
-
August 3, 2010 at 2:56 AM #25482
Thanks a lot Daniel.. It’s really helpfull.
But when I tried to set the same in property dropdown of the filter expression, I didnt find the message type over there.
Is there any other thing i need to set for this?
Regards,
-
August 3, 2010 at 11:59 AM #25495
When you promoted field in a schema, there should be created property schema, with a field same to that promoted field name. After you deploy those schemas, (your schema and your property schema), you should see in Filter expression of an orchestration or Filter in Send port – your promoted field.
You should choose it, and in each orchestration, to set filtering on YourSchemaNameSpace.UniqueField == “SomeValueYouExpectToGet”
-
August 4, 2010 at 1:49 AM #25501
Thanks Yonathan,
I was thinking of creating the property schema…. Thanks a lot for the suggestion. I will try now with this.
Rgards,
-
-
-
-
-
-
-
-
-
AuthorPosts
- The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.