This is a simple workflow solution for CKAN. Configuration is available in the form of json config files to set out workflow steps and transitions.
To install ckanext-workflow:
Refer to Extending guide
-
Activate your CKAN virtual environment, for example:
. /app/ckan/default/bin/activate -
Install the ckanext-workflow Python package into your virtual environment:
cd /app/ckan/default/src/ckanext-workflow python setup.py develop -
Add
workflowto theckan.pluginssetting in your CKAN config file (by default the config file is located at/app/ckan/default/ckan.ini). -
Copy the
./ckanext-workflow/ckanext/workflow/example.settings.jsonfile to your/etc/ckandirectory and name it something likeworkflow.settings.jsoncd /app/ckan/default/src/ckanext-workflow cp example.settings.json /etc/ckan/workflow.settings.json -
Add the
ckan.workflow.json_configconfig setting to yourdevelopment.iniorproduction.inifile and set it to the filename used in previous step:ckan.workflow.json_config = /etc/ckan/workflow.settings.json -
Add
datavic_hierarchy_formtockan.pluginssetting indevelopment.iniandproduction.inifiles, e.g.ckan.plugins = [...] datavic_hierarchy_form -
Remove the
hierarchy_formfrom theckan.pluginssetting indevelopment.iniandproduction.inifiles, e.g. -
Restart CKAN. For example if you've deployed CKAN with Docker:
docker-compose restart ckan