CLEVR Auto Fix
Overview
The AutoFix module allows to run specific microflows exactly once after startup on a given database, simply by adding them to your model with a defined naming pattern.
This allows you to perform any operations needed to setup or maintain your application within these microflows, making sure any environment where you deploy that app is consistent.
Make sure to avoid long running processes as these might cause startup to fail due to timeout.
Documentation
Description
The AutoFix module allows to run specific microflows exactly once after startup on a given database, simply by adding them to your model with a defined naming pattern.
This allows you to perform any operations needed to setup or maintain your application within these microflows, making sure any environment where you deploy that app is consistent.
Typical usage scenario
If you add a new attribute to an entity which will be computed you have to update existing objects.
With the AutoFix module you just put this update operation in a new microflow, e.g. 'AutoFix0001_update_attribute'. The autofix module takes care of running this microflow after startup exactly once on a given database.
Make sure to avoid long running processes as these might cause startup to fail due to timeout.
Installation
Add the AutoFix.AfterStartup action to your AfterStartup actions.
Configuration
You can change the pattern of microflow names which are executed by the module. The default will search all microflows that start with 'AutoFix' followed by 1 or more digits. Microflows are executed in ascending order by their name.
You can register a custom error handling microflow.