Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

What is the best Way to call a .Net Function with a return 1

Status
Not open for further replies.

bmc410

Programmer
May 26, 2005
2
US
Could somebody please help me? I need to call a vb.net function that does some specific tasks for my organization. The class returns a boolean indicating the result condition of the function. Is there a way (1) to call this dll and reutrn a result (in an expression?) plus have Biztalk wait for the result and procede into a decision with the result variable?

Thanks in advance for your help.
 
Are we Talking BTS 2004 here?
If so,

its easy.

1. Reference the Assembly to your Project (Add Reference)
2.
if your function is not static, declare a varibale in your Orchestation ans select as datatype your class.
if it is a static function there is no need in declaring an extra variable just go to step 3
3. In your expression shape wtite something like this:

myBool = myClass.myFunction();

Then you can just use your myBool var in your next decission shape.

Thats it,.........

BTW: maybe you should check out the Microsoft Tutorials on BizTalk that show you every step on how to perform tasks like this in BizTalk.
Heres a link:


Hope that helps,

Stephan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top