Installation
Configure OKMFlow
Section titled “Configure OKMFlow”Steps to install and configure the workflow engine in OpenKM v8.2:
- The workflow engine is available at the OpenKM download center (OKMFlow)
- Unzip the OKMFlow ZIP.
- Create the database:
CREATE DATABASE okmflow DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_bin;CREATE USER 'okmflow'@'%' IDENTIFIED BY 'choose-any-pass';GRANT ALL ON okmflow.* TO 'okmflow'@'%' WITH GRANT OPTION;- Create the configuration file $TOMCAT_HOME/okmflow.properties
# Databasespring.datasource.driver-class-name=org.mariadb.jdbc.Driverspring.datasource.url=jdbc:mariadb://localhost:3306/okmflow?autoReconnect=true&useUnicode=true&characterEncoding=UTF8spring.datasource.username=okmflowspring.datasource.password=choose-any-pass
# JPA Stuffspring.jpa.hibernate.ddl-auto=validatespring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MariaDBDialect
# Flywayspring.flyway.enabled=true
# Authopenkm.rest.user=adminopenkm.rest.password=*s3cr3t0*- Create the OKMFlow service in /etc/systemd/system/okmflow.service
[Unit]Description=OKMFlowAfter=network.target
[Service]Type=forkingUser=openkmWorkingDirectory=/opt/okmflowExecStart=/bin/bash /opt/okmflow/bin/startup.shExecStop=/bin/bash /opt/okmflow/bin/shutdown.sh
[Install]WantedBy=multi-user.target- Reload the daemon and enable the service
sudo systemctl daemon-reload
sudo systemctl enable okmflow- Start the OKMFlow service
OpenKM Configuration steps:
- Log in to OpenKM and go to Administration > Config
- Set the workflow.adapter configuration property to com.openkm.workflow.adapter.FlowWorkflowAdapter
- Set the workflow.adapter.url to the OKMFlow URL (for example, http://localhost:8180/okmflow)
- Set the workflow.adapter.login to the OKMFlow admin user (by default it’s “admin”)
- Set the workflow.adapter.password to the OKMFlow “admin” password (by default it’s “admin”)
OKMFlow usage:
- By default, the OKMFlow application will be available at http://localhost:8180/okmflow. The Admin section is restricted.
- By default, the user and password are set to “admin” and “admin”. To change them, please go to http://localhost:8180/okmflow and edit the corresponding user.
- Remember to change the OpenKM configuration property workflow.adapter.password to match the new password.
- To deploy a workflow, go to http://localhost:8180/okmflow
- On this page, you can also access previously deployed workflows, process instances and so on.
Configure the database
Section titled “Configure the database”Configuring MariaDB
Section titled “Configuring MariaDB”- Create the database:
CREATE DATABASE okmflow DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_bin;CREATE USER 'okmflow'@'%' IDENTIFIED BY 'choose-any-pass';GRANT ALL ON okmflow.* TO 'okmflow'@'%' WITH GRANT OPTION;- Create the configuration file $TOMCAT_HOME/okmflow.properties
# Databasespring.datasource.driver-class-name=org.mariadb.jdbc.Driverspring.datasource.url=jdbc:mariadb://localhost:3306/okmflow?autoReconnect=true&useUnicode=true&characterEncoding=UTF8spring.datasource.username=okmflowspring.datasource.password=choose-any-pass
# JPA Stuffspring.jpa.hibernate.ddl-auto=validatespring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MariaDBDialect
# Flywayspring.flyway.enabled=true
# Authopenkm.rest.url=http://localhost:8080/openkmopenkm.rest.user=okmAdminopenkm.rest.password=*s3cr3t0*Configuring PostgreSQL
Section titled “Configuring PostgreSQL”- Create a database
DROP DATABASE IF EXISTS okmflow;CREATE USER okmflow WITH PASSWORD 'choose-any-pass';CREATE DATABASE okmflow WITH OWNER okmflow ENCODING 'UTF8';Or use the command line.
$ createuser --pwprompt okmflow$ createdb --owner=okmflow --encoding=UTF8 okmflow- Create the configuration file $TOMCAT_HOME/okmflow.properties
# Databasespring.datasource.driver-class-name=org.postgresql.Driverspring.datasource.url=jdbc:postgresql://localhost:5432/okmflowspring.datasource.username=okmflowspring.datasource.password=choose-any-pass
# JPA Stuffspring.jpa.hibernate.ddl-auto=validatespring.jpa.properties.hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect
# Flywayspring.flyway.enabled=true
# Authopenkm.rest.url=http://localhost:8080/openkmopenkm.rest.user=okmAdminopenkm.rest.password=*s3cr3t0*Configuring Oracle
Section titled “Configuring Oracle”- Create the database
- Create a tablespace
create tablespace OKMFLOW_DATA datafile '/u01/app/oracle/oradata/XE/okmflow_data.dbf' size 100M;- Create a database and user
create user OKMFLOW identified by choose-any-pass default tablespace OKMFLOW_DATA quota unlimited on OKMFLOW_DATA;grant all privileges to OKMFLOW;grant create any context, create cluster, create dimension, create indextype, create job, create materialized view, create operator, create procedure, create sequence, create session, create synonym, create table, create trigger, create type, create view to OKMFLOW;- Create the configuration file $TOMCAT_HOME/okmflow.properties
# Databasespring.datasource.driver-class-name=oracle.jdbc.OracleDriverspring.datasource.url=jdbc:oracle:thin:@localhost:1521:OKMFLOWspring.datasource.username=OKMFLOWspring.datasource.password=choose-any-pass
# JPA Stuffspring.jpa.hibernate.ddl-auto=validatespring.jpa.properties.hibernate.dialect=org.hibernate.dialect.OracleDialect
# Flywayspring.flyway.enabled=true
# Authopenkm.rest.url=http://localhost:8080/openkmopenkm.rest.user=okmAdminopenkm.rest.password=*s3cr3t0*