Giter Club home page Giter Club logo

activiti_merger's Introduction

What is this

A Maven project which merges activiti-rest and the activiti-explorer webapps in a single webapp and deploys it into a Tomcat instance.

Tested with

  • Ubuntu Server 14.04 LTS
  • Maven 2
  • Oracle JDK 1.7
  • Activiti 5.15.1
  • Tomcat 7.0.54
  • mysql 5.5.33

How to use it

  1. Set all properties according to your environment (see properties section below for more details).
  2. From the root folder (activiti_merger) run: mvn clean install.
  3. Untar the artifact (activiti_merger/com.mana.activiti.merger.assembly/target/com.mana.activiti.merger.assembly-0.0.1-SNAPSHOT.tar.gz).
  4. Run the startup script (apache-tomcat-7.0.54/bin/startup.sh).
  5. Check http://localhost:8080/activiti/ to test the UI.
  6. Check http://localhost:8080/activiti/api/ to test the REST API.

Use another JDBC driver

  1. Open activiti_merger/com.mana.activiti.merger.assembly/pom.xml.
  2. Locate the dependency section and replace the mysql connector with your jdbc driver.
  3. Locate the "generate-resources" phase and replace the mysql references (i.e. artifactId and groupId) with the ones for your JDBC driver.
  4. Update your database properties in activiti_merger/com.mana.activiti.merger.assembly/src/main/resources/override/tomcat/bin/appenv.sh accordingly.
  5. Run: mvn clean install

Additional notes

  • This example uses an external LDAP server for authentication and authorization (using the default activiti-ldap).

  • All the demo stuff have been removed.

  • The REST services are mapped to /api/. Haven't had any problem with that, yet. My understanding is that this is the old api and has been deprecated... I suppose one can probably just modify org.activiti.explorer.filter.ExplorerFilter...

  • If all you want is the WAR without Tomcat then compress the activiti folder in a WAR and that's it...

  • And I know it's obvious but just in case, $JAVA_HOME must be set.

##################### #ACTIVITI PROPERTIES# ##################### Properties located in activiti_merger/com.mana.activiti.merger.assembly/src/main/resources/override/tomcat/bin/appenv.sh"

Activiti Database Properties

  • JDBC_DRIVER
  • JDBC_URL
  • JDBC_USERNAME
  • JDBC_PASSWORD

Activiti LDAP Properties

  • LDAP_URL
  • LDAP_PORT
  • LDAP_BASE_DN
  • LDAP_USER_DN
  • LDAP_USER_PASSWORD
  • LDAP_QUERY_USER_BY_UID
  • LDAP_QUERY_USER_BY_CN
  • LDAP_QUERY_GROUP
  • LDAP_ATTR_UID
  • LDAP_ATTR_GIVENNAME
  • LDAP_ATTR_SURNAME
  • LDAP_ATTR_GROUP_ID
  • LDAP_ATTR_GROUP_NAME
  • LDAP_GROUP_ADMIN_1
  • LDAP_GROUP_USER_1

activiti_merger's People

Contributors

raimana avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.