BizTalk Server Orchestration - BTS 2006 - Using Expressions

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server Orchestration > March 2006 > BTS 2006 - Using Expressions





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author BTS 2006 - Using Expressions
Lakshimi

2006-03-13, 2: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 .

Eric Stott

2006-03-13, 2: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 .



Lakshimi

2006-03-13, 2: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...
>
>
>

Eric Stott

2006-03-13, 2: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')"=="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...[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:
>


Lakshimi

2006-03-21, 3: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 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')"=="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...
>
>
>

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com