Framework to automate workflows