Code Workflow Plug-ins
Plug-ins are python classes which can be installed in Tracardi and become a part of Tracardi workflow. Plug-ins are sometimes called actions or action plug-ins.
Below you will find information how to write plug-ins and how to install them in the system.
Plug-in prerequisites
- Plug-in must return
Resultobject. - Value inside
Resultobject must be serializable to json. - Value can not be bigger than x bytes.
- Value inside
Resultshould bedictin order to be processed by other nodes. - Plug-in must extend
ActionRunnerclass. - Resources that need closing should be closed in
close()method. - Async Method
set_upshould be used to initiate async objects.