Promoting a field element and using it in a decision rule in an orchestration
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 Orchestration > Promoting a field element and using it in a decision rule in an orchestration




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

    Promoting a field element and using it in a decision rule in an orchestration  
Bobtorious


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


 
09-21-05 10:52 PM

Hey all,
I'm new to BizTalk.  I'm using BizTalk Server 2004 and I'm just playing
around with simple orchestrations.  I have created a schema that has
Customer as the root node, and it has a child field element called
NumberPets.  I promoted this NumberPets as a distinguished property,
and am attempting to check it's value in my orchestration.  I have
added a message corresponding to my Customer schema in the
orchestration (the message variable is called CustOrderInst), and when
I enter the expression CustOrderInstance.NumberPets > 5, I get the
smart help an all that jive.

When the orchestration is actually executed though, the message is
picked up, but when it goes down the branch that checks the value, I
get a SystemNullReferenceException.  Is there something I have to do to
create a new instance of the element when I check it in the expression
editor?  This works if I have my NumberPets be a field attribute.
Thanks for you patience guiding a newbie 

Bob






[ Post a follow-up to this message ]



    Re: Promoting a field element and using it in a decision rule in an orchestration  
Bobtorious


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


 
09-21-05 10:52 PM

Well, it appears I have found the solution to my problem.  I created a
variable in the orchestration, and used an expression shape to assign
that value the CustOrderInst.NumberPets value, and I ran the decision
on that.  If there's any other ways of doing this though (maybe using
System.XML imports or something to extract the value from the element)
I'd be very interested in hearing them.

Bob






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 07:13 PM.      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