Custom Hooks
Important Classes
Here are some important things to know when writing custom hooks:
- Interfaces: These interfaces expose supported methods. You can implement these directly or inherit available base classes. This applies to C# only.
- Base Classes: These classes can be inherited, allowing you to write your implementation in the overridden methods. You do not need to implement the interface explicitly if you use these.
- Code Samples: We have provided some simple code samples. You can use these as a starting point for your hooks.
The base classes can be used as they are linked in the API reference. However, for ease of use, all base classes have been imported into the tableau_migration
namespace without the Py
prefix.
For example: PyContentFilterBase
has been imported as tableau_migration.ContentFilterBase
.
Pre-Migration
Post-Migration
Registration
To register Python hooks, register the object with the appropriate hook type list in the plan builder.