Extender Activation Script
With Extender PU13 and above, you can add Extender scripts to an Extender module to run as part of importing the module in another database.
When to use
This feature lets you run a script to validate certain values before importing a module.
A very common use case is to run a script after importing a module to insert the required configuration records that support the module.
Example: The Workflow Module includes a workflow.activation script to insert records in the Workflow View Default table.
How to create an Activation script
The script needs to be called myModuleName.Activation.myDesc.py
When you create a new script in the Extender Scripts screen, if the name includes .activation. , Extender includes details about the available options.
Activation scripts options
op = e.getValue("op")
# op is:
# "install.before"
# The module is about to be installed.
# Returning non-zero will prevent installation.
#
# "install.after"
# The module was just installed.
# Any custom tables are not available yet.
#
# "install.restart"
# The module was installed and the desktop has been restarted.
# Custom tables are now available.
#
# "upgrade.before"
# The module is about to be installed.
# Returning non-zero will prevent installation.
#
# "upgrade.after"
# The module was just installed.
# Any custom tables are not available yet.
#
# "upgrade.restart"
# The module was installed and the desktop has been restarted.
# Custom tables are now available.