To install Activiti refer to getting started guide:
- Be sure to use the same database for activiti-explorer and activiti-rest applications - internal H2 in-memory database does not satisfy this requirement.
- Put Latera Activiti extension jar and its dependencies to
WEB-INF/libdirectory of each applications. - Create user with id
user, emailuser@example.com, passwordchangemeand include him inuserssecurity-role group. - Deploy demo processes.
One of the possible ways of Activiti installation with PostgreSQL database on Debian Linux is described below.
sudo apt-get install tomcat8 tomcat8-admin postgresql- Add user with role
manager-guito tomcat-users.xml (/etc/tomcat8/tomcat-users.xml):
<role rolename="manager-gui"/>
<user username="tomcat" password="tomcat" roles="manager-gui"/>
- Restart Tomcat:
sudo service tomcat8 restart- Connect to PostgreSQL as super user:
sudo -u postgres psql- Create database, user and grant privileges:
CREATE DATABASE activiti;
CREATE USER activiti WITH password 'activiti';
GRANT ALL privileges ON DATABASE activiti TO activiti;
- Download Activiti 5.19.x and unzip it.
- Unzip
wars/activiti-explorer.warandwars/activiti-rest.war. - For each application:
-
Replace content of
WEB-INF/classes/db.propertieswith:db=postgres jdbc.driver=org.postgresql.Driver jdbc.url=jdbc:postgresql://localhost:5432/activiti jdbc.username=activiti jdbc.password=activiti -
Download PostgreSQL JDBC jar and put it to
WEB-INF/libdirectory. -
Download Latera Activiti extension full pack and put it to
WEB-INF/libdirectory.
- Zip back
activiti-explorer.warandactiviti-rest.war. - Deploy
activiti-explorer.warandactiviti-rest.warvia Tomcat manager interface: http://loclahost:8080/manager/html
- Login at http://localhost:8080/activiti-explorer with user
kermitand passwordkermit. - Create user with id
user, emailuser@example.com, passwordchangemeand include him inuserssecurity-role group. - Deploy demo processes.
homs is a familiar Ruby On Rails 4 application with PostgreSQL backend. To install it you need bundler and probably rvm.
One of the possible ways of homs installation on Debian Linux is described below.
sudo apt-get install git postgresql libpq-dev nodejs libqtwebkit-dev- Connect to PostgreSQL as super user:
sudo -u postgres psql- Create database, user, and grant privileges to him:
CREATE DATABASE homs;
CREATE USER homs WITH password 'homs';
GRANT ALL privileges ON DATABASE homs TO homs;
Follow RVM installation guide.
- Clone homs git repository:
git clone https://github.com/latera/homs.git- Install ruby:
rvm install ruby-2.2.4- Create homs RVM gemset:
rvm use ruby-2.2.4@homs --create- Install bundler:
gem install bundler- Install gems:
bundle --without oracle- Make configs from samples:
find config -name '*.sample' | xargs -I{} sh -c 'cp $1 ${1%.*}' -- {}- Run migrations:
bundle exec rake db:migrate- Fill db with test data:
bundle exec rake db:seedthin start --threadedLogin at http://localhost:3000 with user@example.com/changeme.