BizTalk Server Orchestration - Switch case inside Orchestration

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server Orchestration > December 2005 > Switch case inside Orchestration





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 Switch case inside Orchestration
Sourav Dutta Gupta

2005-12-09, 2:50 am

Can we use switch case inside an expression shape like
switch case <value>
{
case "1":
construct message1
{
message1=message2;
}
break;
case default:
break;
}

Actually what I need is to construct different message inside a single
expression shape. Is that really possible?
Sourav Dutta Gupta

2005-12-09, 7:51 am

I have done this through if-else. Is it possible through "switch case".


"Sourav Dutta Gupta" wrote:

> Can we use switch case inside an expression shape like
> switch case <value>
> {
> case "1":
> construct message1
> {
> message1=message2;
> }
> break;
> case default:
> break;
> }
>
> Actually what I need is to construct different message inside a single
> expression shape. Is that really possible?

Selvan

2005-12-09, 5:55 pm

Hi Sourav,

In Expression shapes you cannot do any control flow like
if/else/while/switch. Its by design in biztalk framework. You can use
decisions shape instead.

HTH
Regards
Selvan



"Sourav Dutta Gupta" wrote:
[vbcol=seagreen]
> I have done this through if-else. Is it possible through "switch case".
>
>
> "Sourav Dutta Gupta" wrote:
>
Samuel L

2005-12-12, 5:59 pm

Just a comment here... If-statements are allowed in expression shapes (not in
message assignment shapes though).
[http://www.geekswithblogs.net/sthom...08/19/9943.aspx]

But switch-statements, among others, are NOT allowed... Sorry Sourav!


"Selvan" wrote:
[vbcol=seagreen]
> Hi Sourav,
>
> In Expression shapes you cannot do any control flow like
> if/else/while/switch. Its by design in biztalk framework. You can use
> decisions shape instead.
>
> HTH
> Regards
> Selvan
>
>
>
> "Sourav Dutta Gupta" wrote:
>
Greg Forsythe

2005-12-12, 5:59 pm

The decision shape can behave like a switch statement, right click and add
new rule branch.

Greg


"Selvan" <Selvan@discussions.microsoft.com> wrote in message
news:6B205C24-40CC-4AEA-925A-F79054BC4AF6@microsoft.com...[vbcol=seagreen]
> Hi Sourav,
>
> In Expression shapes you cannot do any control flow like
> if/else/while/switch. Its by design in biztalk framework. You can use
> decisions shape instead.
>
> HTH
> Regards
> Selvan
>
>
>
> "Sourav Dutta Gupta" wrote:
>


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com