Datapolis Process System SDK
Function XMLs
Functions need to be defined to be shown in Workflow Designer and properly deployed. It is done by xml files which are described below.
Files and theirs location
For properly define function you need two files:
You need to prepare that files and put them in 15\WorkBox\Functions folder.
*.Functions.xml content
This file describes details of function that you have developed. The name of the file is not important, but the extension must match. Datapolis Process System scans whole directory for files that have Functions.xml extension, then merge them for designer's use. Do not remove any file there, unless you are sure it won't harm the designer.
Please note that below elements of xml must match those in code:
Below you can see example of function definition file. You can find more about xml schema here.
<
Functions
xmlns
=
"http://www.datapolis.com.pl/WorkBox/Functions.xsd"
>
Function
Name
"Datapolis.WorkBox.Sdk.Samples.Functions.WBHour"
Title
"Hour"
Description
"Returns the hour of a time value. The hour is given as an integer, ranging from 0 (12:00 A.M.) to 23 (11:00 P.M.)."
Assembly
"Datapolis.WorkBox.Sdk.Samples, Version=1.0.0.0, Culture=neutral, PublicKeyToken=0a68baededa28155"
Category
"SDK.Date"
Parameter
"Value"
"Date"
"Enter the date that contains the hour you want to find."
Type
"String"
></
</
*.Functions.Categories.xml content
Please note that Name attribute of category must match the one in *.Functions.xml file to show function in specified category.
Below you can see example of category definition file. You can find more about xml schema here.
FunctionCategories
"http://www.datapolis.com.pl/WorkBox/FunctionCategories.xsd"
FunctionCategory
"$Resources:Datapolis.WorkBox.Sdk.Samples.Functions,FunctionCategoryDate;"