You are viewing limited content. For full access, please sign in.

Question

Question

Load DLL That Contains Objects

asked on December 8, 2014 Show version history

I am trying to use Workflow to integrate between Laserfiche and a 3rd party application called UMRA. UMRA is an Active Directory automation program. We want to pass information to UMRA from Workflow to auto create network accounts, email addresses, etc. UMRA supplies a DLL that contains all UMRA COM objects. How do I use these with Workflow so I can create the integration?

Please note that I am a newby when it comes to programming other than web development.

(UMRA manual)

0 0

Replies

replied on December 8, 2014 Show version history

Blake,

A couple of quick thoughts on how to develop your integration; One way would be to use a workflow script activity, add the necessary references to your DLL, and then code the script.  The more robust, and I would assume Laserfiche recommended approach,  would be to develop some type of web service that would be hosted somewhere on your network and then you could use the built in workflow HTTP activities (or build your own custom workflow activity) that communicated with the web service via WCF.

The advantage of a WCF based service is that Laserfiche workflow is designed for short duration activities and anything that would be considered resource intensive should be off-loaded to another host for processing.  The disadvantage to the WCF service is that it is a more complex integration and might be beyond what you want to tackle.

The advantage of workflow script activity is that you can easily code something up (as long as it is not too complex) and deploy it fairly easily.  The disadvantage is that if the integration is resource intensive then it might be too much of a burden on workflow.  (Perhaps one of the engineers can chime in?)

If you want to go the SDK script activity route then all you have to do is include a reference to the DLL and then add an 'Imports' statement at the beginning of the script (Assuming you are using VB.  Someone that is a C# developer can provide that syntax or you can do a Google search).

Here is a screen shot of adding a reference to an external DLL in a script activity; open the script editor, right mouse click on the References object in the Project Explorer in the left pane, select 'Add reference', browse to where your DLL is and add it as a reference.  (Note: I would assume that the DLL is in a folder that the workflow account has access to at runtime)

 

The second step would be to add the 'Imports' statement at the top of the script.  In the screen shot below I added the UMRACOM reference;

 

That was the easy part!  Now you have to write the code that will instantiate and access the UMRACOM objects to provide the necessary functionality.

 

The final thought I will leave with you is that if you think there is some aftermarket potential for this type of integration I can help with that.  As a Laserfiche Professional Development Partner I am always looking for ways to bring additional capabilities to the Laserfiche suite.

You are welcome to ask additional questions or you can email me at cprimmer@qfiche.com and we can continue the conversation offline.

Good luck!

 

1 0
replied on December 9, 2014

Cliff, thank you for the detailed information. I greatly appreciate it. The activity should not be very intensive. We will be using this to pass off variables about an employee to UMRA to create an AD account. In UMRA you create a project which holds the necessary scripting to do all the heavy lifting. It just needs the values to use. I will let you know if we have any further questions. Thanks again!

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.