This chapter describes some of the things you can do with workflows, and includes the following section:
The SharePoint Workflow Developer's Kit provides connector functionality in a workflow activity library. This allows you to develop workflows in Microsoft Visual Studio. The developer's kit consists of the following assemblies:
MarkLogicActivityLibrary.dll
- This file contains activities that can be embedded into workflowsMarkLogicConnector.dll
- This file contains the Mark Logic Connector API used by the activitiesThese files are distributed in the MarkLogic Connector for SharePoint zip file in the SharePoint
directory.
The following activities are included in the activity library:
To use the Mark Logic activities in workflow development, you must first load them into the Toolbox in Microsoft Visual Studio. You can drag them onto the design surface and connect their properties into the workflow.
To load Mark Logic activities into the Toolbox, perform the following steps in Microsoft Visual Studio:
MarkLogicActivityLibrary.dll
file. Select this file, and click OK for the Choose Toolbox Items dialog. The activities MarkLogicCopy
, MarkLogicDelete
, and MarkLogicInvoke
appear in the Toolbox panel. You can drag them onto the workflow design surface. After you drag an activity onto the design surface, it must be connected into the workflow via its properties. There are several categories of properties in the activities. Depending on the activity function, consider the following:
copy
and delete
activities require the WebUrl
and ItemUrl
of the document to be manipulated. These values are available via using the SPWorkflowActivationProperties
variable. ModuleName
of the module name of the module to be invoked. The module variable bindings are provided in the VariableBindings
variable which contains a URL query-string specifying name and string value bindings. (A helper function is provided to convert a C# Dictionary<string, string>
variable into a URL query string.) The response from the module is passed into the ModuleResponse
variable.When you run workflow using the Mark Logic activities on a SharePoint site that does not have the Mark Logic Connector installed, you must manually add the connector and activity assemblies to the GAC. You can do this with the following gacutil
command as follows:
C:\> cd <installation directory>\SharePoint C:\> gacutil -if MarkLogicActivityLibrary.dll C:\> gacutil -if MarkLogicConnector.dll C:\> gacutil -if MarklogicXcc.dll C:\> gacutil -if xcccore.dll C:\> gacutil -if IKVM.GNU.Classpath.dll C:\> gacutil -if IKVM.Runtime.dll C:\> IISRESET
Note that retracting the connector feature will remove these assemblies from the GAC.