BTS 2006 - Using Expressions
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > BizTalk Server > BizTalk Server Orchestration > BTS 2006 - Using Expressions




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    BTS 2006 - Using Expressions  
Lakshimi


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-13-06 07:47 AM

Hi ,

I am trying to use Decide shape to do filteration before inserting
values into table.
The first shape is Receive and message set using the Oracle Schema.
The next shape set as decide .In the expression trying to use the
incoming message varialbles to check (e.g message_1.comp = 'xxx') . But
couldn't access the message variables .Giving error.
Can anyone help or give sample to set expressions in Decide ,Loop shapes ?
What is correct procedure to use incoming message inside these shapes?


Thanks .






[ Post a follow-up to this message ]



    Re: BTS 2006 - Using Expressions  
Eric Stott


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-13-06 07:47 AM

What is the error? - do you have the field that you want to parse promoted
or distinguished? If it is promoted you would have something like this
IncomingMsg(Project.PropertyName)=="Value"
if you have the object distinguished, it would look like this
IncomingMsg.PropertyName=="Value"

please explain the error a little more
Eric
http://stottcreations.com/blog

"Lakshimi" <Lakshimi@discussions.microsoft.com> wrote in message
news:97AEA597-A426-4751-AFAD-B3D576FBFFF6@microsoft.com...
> Hi ,
>
>    I am trying to use Decide shape to do filteration before inserting
> values into table.
>    The first shape is Receive and message set using the Oracle Schema.
>    The next shape set as decide .In the expression trying to use the
> incoming message varialbles to check (e.g message_1.comp = 'xxx') . But
> couldn't access the message variables .Giving error.
>   Can anyone help or give sample to set expressions in Decide ,Loop shapes
> ?
> What is correct procedure to use incoming message inside these shapes?
>
>
> Thanks .







[ Post a follow-up to this message ]



    Re: BTS 2006 - Using Expressions  
Lakshimi


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-13-06 07:47 AM

Hi Eric,

Thankyou for your fast response.

It says that the expression is not valid.

But i haven't promote or distinguished.

So , after creating schema , do i have to promote or distinguish to use
it in expressions ?

I faced another problem while trying to promote .It gives error as
"This node can occur potentially multiple times in the instance document
.Only nodes which are guaranteed to be unique can be promoted "

That means always should my record node  Maxoccurs be 1?

Since i just started to use BTS , I am quite comfortable with
receive -->construct --> Send and not clear with advanced options.



"Eric Stott" wrote:

> What is the error? - do you have the field that you want to parse promoted
> or distinguished? If it is promoted you would have something like this
> IncomingMsg(Project.PropertyName)=="Value"
> if you have the object distinguished, it would look like this
> IncomingMsg.PropertyName=="Value"
>
> please explain the error a little more
> Eric
> http://stottcreations.com/blog
>
> "Lakshimi" <Lakshimi@discussions.microsoft.com> wrote in message
> news:97AEA597-A426-4751-AFAD-B3D576FBFFF6@microsoft.com... 
>
>
>





[ Post a follow-up to this message ]



    Re: BTS 2006 - Using Expressions  
Eric Stott


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-13-06 07:47 AM

There is a few options:
If your data cannot be singular (promoted and distinguished fields can only
occur one time), you can do two things:
1. Make two objects, the first one occurs once, the second occurs
multiple times and then promote or distinguish the first object.
2. Use xpath to parse the first one (or whichever object you need)
following this example:
(System.String)xpath(InputMsg,"string('\root\record[1]\element')"=="Valu
e"
Hope that this helps:
Eric
http://stottcreations.com/blog

"Lakshimi" <Lakshimi@discussions.microsoft.com> wrote in message
news:1D288E34-DA88-45C3-80FE-7FD0BD47397D@microsoft.com...[vbcol=seagreen]
> Hi Eric,
>
>    Thankyou for your fast response.
>
>    It says that the expression is not valid.
>
>   But i haven't promote or distinguished.
>
>   So , after creating schema , do i have to promote or distinguish to use
> it in expressions ?
>
>   I faced another problem while trying to promote .It gives error as
> "This node can occur potentially multiple times in the instance document
> .Only nodes which are guaranteed to be unique can be promoted "
>
> That means always should my record node  Maxoccurs be 1?
>
>   Since i just started to use BTS , I am quite comfortable with
>     receive -->construct --> Send and not clear with advanced options.
>
>
>
> "Eric Stott" wrote:
> 







[ Post a follow-up to this message ]



    Re: BTS 2006 - Using Expressions  
Lakshimi


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-21-06 08:09 AM

Thanks Eric .It is working now.

"Eric Stott" wrote:

> There is a few options:
> If your data cannot be singular (promoted and distinguished fields can onl
y
> occur one time), you can do two things:
>     1. Make two objects, the first one occurs once, the second occurs
> multiple times and then promote or distinguish the first object.
>     2. Use xpath to parse the first one (or whichever object you need)
> following this example:
>             (System.String)xpath(InputMsg,"string('\root\record[1]\ele
ment')"=="Value"
> Hope that this helps:
> Eric
> http://stottcreations.com/blog
>
> "Lakshimi" <Lakshimi@discussions.microsoft.com> wrote in message
> news:1D288E34-DA88-45C3-80FE-7FD0BD47397D@microsoft.com... 
>
>
>





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 02:27 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register