BizTalk Server General - How to call a .Net function that returns a value

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server General > May 2005 > How to call a .Net function that returns a value





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 How to call a .Net function that returns a value
bmc410

2005-05-27, 2:47 am

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 shape?) plus have Biztalk wait
for the result and procede into a decision with the result variable?

Thanks in advance for your help!
carlos

2005-05-27, 7:56 am

u can create a vb.net project and place all code that you need, is important
that you define an "strong name" and sign your assembly with it and addtional
you must declare your class as "Serialized"... after compile and create the
assembly you must register it in the gac (use gacutil.exe utility)... if it
not in the gac BTS cannot see it...

in the orchestration, you must add this assembly as reference and create a
"Variable" in you orchestration as this type. At the last end you must
create an instance of the variable in a Expression shape (C# code)

MyVariable = new MyNamespace.MyClass();

and after this you can use the boolean function (example IsUserValid) inside
a Decision shape...

MyVariable.IsUserValid() == true

regards !

"bmc410" wrote:

> 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 shape?) plus have Biztalk wait
> for the result and procede into a decision with the result variable?
>
> Thanks in advance for your help!

bmc410

2005-05-27, 7:56 am

Thanks Carlos for your help. Will the orchestration "pause" until the
function has completed or will it continue on. In other words, will it wait
on the expression shape until it receives the return value?

Thanks
Bill

"carlos" wrote:
[vbcol=seagreen]
> u can create a vb.net project and place all code that you need, is important
> that you define an "strong name" and sign your assembly with it and addtional
> you must declare your class as "Serialized"... after compile and create the
> assembly you must register it in the gac (use gacutil.exe utility)... if it
> not in the gac BTS cannot see it...
>
> in the orchestration, you must add this assembly as reference and create a
> "Variable" in you orchestration as this type. At the last end you must
> create an instance of the variable in a Expression shape (C# code)
>
> MyVariable = new MyNamespace.MyClass();
>
> and after this you can use the boolean function (example IsUserValid) inside
> a Decision shape...
>
> MyVariable.IsUserValid() == true
>
> regards !
>
> "bmc410" wrote:
>
carlos

2005-05-27, 5:50 pm

hi...

the orchestration wait for your function ended the execution and return a
boolean.... but not "pause" thorchestration, I mean that orchestration
doesn't "suspend" its execution.....

an orchestration is represented like a class with methods inside an
assembly, calling a function of your personal class in a "decision shape" is
like working in Win32 application with an if () {} statement...

"bmc410" <bmc410@discussions.microsoft.com> wrote in message
news:6D640388-2665-4AF5-9618-67C893D86D50@microsoft.com...[vbcol=seagreen]
> Thanks Carlos for your help. Will the orchestration "pause" until the
> function has completed or will it continue on. In other words, will it
> wait
> on the expression shape until it receives the return value?
>
> Thanks
> Bill
>
> "carlos" wrote:
>


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com