Datapolis Process System SDK
Activity XMLs
Activities need to be defined to be shown in Workflow Designer and properly deployed. It is done by xml files which are described below.
File name and location
To define an activity you need the *.Activities.xml file. The name of the file is not important, but the suffix must match, as Datapolis Process System scans directory for all files with this suffix and merges them for designer's use.
You need to prepare that file and put it in 15\WorkBox\Activities folder. Do not remove any file there, unless you are sure it won't harm the designer.
*.Activities.xml content
This file describes details of activities that you have developed.
Please note that below elements of xml must match those in code:
Below you can see example of activity definition file with 3 parameters, one of them being enum. You can find more about xml schema here.
<
Activities
xmlns
=
"http://www.datapolis.com.pl/WorkBox/Activities.xsd"
>
Activity
Name
"WBCreateListActivity"
NamespaceName
"clr-namespace:Datapolis.WorkBox.Sdk.Samples.Activities;Assembly=Datapolis.WorkBox.Sdk.Samples, Version=1.0.0.0, Culture=neutral, PublicKeyToken=0a68baededa28155"
Title
"Create List"
Description
"Add a new list or library to the selected web"
Parameters
Parameter
"ParentWebUrl"
Required
"True"
Type
"String"
DataType
"OneLookup"
ParametersToEraseAfterChange
"ListTemplate"
AllowChildrenTypes
"Current SharePoint SiteCollection Site WebCollection Web"
SelectableTypes
"Web"
"Parent Web"
"Select a parent web"
/>
"ListTitle"
"Type a new name as you want it to appear in headings and links throughout the site"
"IsQuickLuanch"
Value
"Bool"
"Navigation"
"Specify whether a link to this document library appears in the Quick Launch."
ValueOptions
ValueOption
"Yes"
"No"
"False"
</
Graph
></