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




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

    Problem with DECIDE shape  
Aniello


Report This Message To A Moderator Edit/Delete Message


 
07-19-04 10: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.







[ Post a follow-up to this message ]



    Re: Problem with DECIDE shape  
Narasimhan Padmanabhan \(MSFT\)


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


 
07-19-04 10: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.
>
>







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 06:34 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