BizTalk Server Applications Integration - Problem with DECIDE shape

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server Applications Integration > July 2004 > Problem with DECIDE shape





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 Problem with DECIDE shape
Aniello

2004-07-19, 5:52 pm


Hi all,
In my orchestration I have a decide shape where i construct a message (in
then branch) towards a web service, i make the invocation (send shape) and i
receive the result (receive shape). The output content of the receive shape
is an array and I want to use it outside of decide branch, during the
construction of a new message towards another web service. The problem is
that when i try to access to the result content i haven't errors or warning,
but when compile the orchestration I receive the error:

"(3870): use of unassigned local variable
'Response_From_getListTG_CAP_1.getListTGResult'"

It seems that the engine foresee that if i don't pass through the then
branch i'm not able to have the content of the result message and makes an
error....but the problem should arise at run time.
Could anyone to suggest me how to solve this problem?

Thanks in advance,
Aniello.


Narasimhan Padmanabhan \(MSFT\)

2004-07-19, 5:52 pm

Hello

This happens due to the rules followed for definite assignment of
variables. The compiler cannot determine if the variable will be definitely
assigned since it is initialzied in a decide shape where the control may or
may not go during runtime.

Please restructure your code.

Cheers!
--
This posting is provided "AS IS" with no warranties, and confers no rights.

EBusiness Server Team
"Aniello" <aniello> wrote in message
news:#03rYKcbEHA.3728@TK2MSFTNGP10.phx.gbl...
>
> Hi all,
> In my orchestration I have a decide shape where i construct a message (in
> then branch) towards a web service, i make the invocation (send shape) and

i
> receive the result (receive shape). The output content of the receive

shape
> is an array and I want to use it outside of decide branch, during the
> construction of a new message towards another web service. The problem is
> that when i try to access to the result content i haven't errors or

warning,
> but when compile the orchestration I receive the error:
>
> "(3870): use of unassigned local variable
> 'Response_From_getListTG_CAP_1.getListTGResult'"
>
> It seems that the engine foresee that if i don't pass through the then
> branch i'm not able to have the content of the result message and makes an
> error....but the problem should arise at run time.
> Could anyone to suggest me how to solve this problem?
>
> Thanks in advance,
> Aniello.
>
>



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com