Use Custom Content Handler
- Last UpdatedJun 10, 2024
- 1 minute read
AVEVA Work Tasks allows us to create custom content handlers which can be used for fetching data to workflow in custom logic.
To implements Custom Content Handler
-
Create a Class Library Project. Code for the sample custom Class Library
-
Compile and put the dll in the AVEVA Work Tasks Bin folder.
-
The entry for default content handler will be already there in the SKAddInProviders table. Rename the 'Name' field of the specific entry from 'IContentHandler' to some other name.
-
Make the following entry in the SKAddInProviders table in the repository database.
INSERT INTO [SKAddInProviders]
(Type,[Name],[ClassName],[Assembly],[Settings],[IsGacAssembly])
VALUES('ContentHandler','IContentHandler','CustomContentHandler.DatabaseContentHandler',bin\CustomContentHandler.dll','',0)
-
Follow the steps in Using Default Content Handler which will successfully create the Custom Content handler.