Skip to main content
Nintex Community Menu Bar

Can SmartObjects call/use a custom .NET DLL/Library?

  • June 4, 2009
  • 2 replies
  • 18 views

Forum|alt.badge.img

We want to know if we can reuse custom .NET DLL/Library? Can objects contained in DLL be called/used by SmartObjects? Or can objects contained in DLL be considered by SmartObjects as its data source?


 Thanks,


Emil

2 replies

Forum|alt.badge.img+8
  • June 5, 2009

Emil,


Here are two blogs that I wrote on the topic.  Basically you need to write a custom SmartObject Service that will wrap your custom DLL.  We also wrote about this in the K2 Wrox book...


http://www.k2distillery.com/2007/11/create-custom-blackpearl-smartobject.html


http://www.k2distillery.com/2008/09/creating-custom-smartobjects-part-2.html


Jason


Forum|alt.badge.img+3
  • June 5, 2009
icon-quote.gifjapergis:
Basically you need to write a custom SmartObject Service that will wrap your custom DLL.
 

Japergis is right, the current way I know is:

- implement a ServiceObject in a ServiceAssembly 

- register the service assembly with "BrokerManagement.exe" tool (in the k2blackpearlServiceBroker)

- create a service instance with the same tool

- design a SmartObject and add custom method calls (in advanced wizzard), pick the service instance from the toolbox

- deploy the SmartObject

- test the SmartObject with "SmartObject Service Tester.exe"


I'm currently doing this to obtain destination set for workflow activites from a wcf service

 

Let us know how it works for you