Configure Custom Activity without any Properties
- Last UpdatedJun 10, 2024
- 1 minute read
Create a new XML file with the following code template and update as required.
<?xml version="1.0" encoding="utf-8"?>
<actionsdata>
<version number="3.0" />
<propertytypes>
<propertytype name="SampleCustomPropertyModified" classname="Workflow.NET.SampleCustomPropertyModified.SampleProperty" assemblyname="bin\SampleCustomPropertyModified.dll" webuiclassname="Workflow.NET.SampleCustomPropertyModified.SamplePropertyWebUI" webuiassemblyname="bin\SampleCustomPropertyModified.dll" />
</propertytypes>
<category name="Custom Files" sortorder="15">
<action name="CustomActivity" displayname="Custom Activity">
<description>Custom activity. </description>
<image resourcename="bell.png"></image>
<handler classname="SampleCustomAction.CustomAction" assembly="bin\SampleCustomAction.dll"></handler>
<properties></properties>
<return>
<value helpstring="Success">Success</value>
<value helpstring="UnSuccess">UnSuccess</value>
</return>
</action>
</category>
</actionsdata>
If the properties tag exists, then append to the existing properties instead of creating additional properties tag. Otherwise, add an empty properties tag to the XML file as follows.
<properties></properties>
Note: We recommend to create a new XML file instead of editing the existing XML files.
When you package a workflow with custom activity, if you need to correct the custom
activity in the target repository, follow the steps mentioned in "Resolving Custom Activities" and "Correcting Custom Activities". For more information, see Resolve Custom Activities and Correct Custom Activities.