BizTalk Server Orchestration - Decide shape - promoted field access

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server Orchestration > January 2005 > Decide shape - promoted field access





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 Decide shape - promoted field access
Theo

2005-01-31, 2:54 am

In my message I have promoted one field. Based on the length of the field
(number of characters) I would like to route my message to the appropriate
location. I want to do it with a decide shape, inside the boolean expression,
something like:
IF
myMessage.field.length>50 THEN portX
ELSE portY

How can I, from inside of the boolean expression editor, access the length
(number of characters) of the promoted field?

I have tried several ways but not gotten any further.

Gratefull for your answer.
Stephen W. Thomas

2005-01-31, 5:53 pm

Hello.

You are limited on what properties you can access on some data types inside
the Orchestration. I think String.Length is one of them that are not
allowed.

One suggestion might be to create a helper .net component with a function
that takes in your promoted property as a string and returns the length.

Hope this helps.

Stephen W. Thomas
http://www.geekswithblogs.net/sthomas


"Theo" wrote:

> In my message I have promoted one field. Based on the length of the field
> (number of characters) I would like to route my message to the appropriate
> location. I want to do it with a decide shape, inside the boolean expression,
> something like:
> IF
> myMessage.field.length>50 THEN portX
> ELSE portY
>
> How can I, from inside of the boolean expression editor, access the length
> (number of characters) of the promoted field?
>
> I have tried several ways but not gotten any further.
>
> Gratefull for your answer.

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com