Workflow Custom Activity Setup for Laserfiche Directory Server SDK

August 26, 2020 | KB: 1014149
License Manager Objects

Summary

When referencing LicenseManagerObjects.dll to script actions in Directory Server using Workflow scripting activities, you may see an error due to an License Manager Objects (LMO) dependency.

Cause

LMO 10.4 and higher has a dependency on Newtonsoft.Json.dll version 11. If the LMO version does not match the Newtonsoft.Json.dll in the Windows GAC as per the LMO dependency or the copy in the Workflow install folder, then Workflow will give an error.

Resolution

When using LMO in Workflow custom activities, do the following:

  • Navigate to the Workflow install folder. Example path: C:\Program Files\Laserfiche\Laserfiche Workflow 10.4.
  • Create a sub-folder called Newtonsoft.
  • Place both DLLs in the Newtonsoft subfolder. You must have your script activities reference LMO from the Newtonsoft folder:
    • LicenseManagerObjects.dll v10.4.4.1
    • Newtonsoft.Json.dll v11.0.2
    Note: Do not replace or reference the existing Newtonsoft.Json.dll in the Workflow install since the versions are not identical.