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
workflow
to theckan.plugins
setting 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.json
file to your/etc/ckan
directory and name it something likeworkflow.settings.json
cd /app/ckan/default/src/ckanext-workflow cp example.settings.json /etc/ckan/workflow.settings.json
-
Add the
ckan.workflow.json_config
config setting to yourdevelopment.ini
orproduction.ini
file and set it to the filename used in previous step:ckan.workflow.json_config = /etc/ckan/workflow.settings.json
-
Add
datavic_hierarchy_form
tockan.plugins
setting indevelopment.ini
andproduction.ini
files, e.g.ckan.plugins = [...] datavic_hierarchy_form
-
Remove the
hierarchy_form
from theckan.plugins
setting indevelopment.ini
andproduction.ini
files, e.g. -
Restart CKAN. For example if you've deployed CKAN with Docker:
docker-compose restart ckan