bptlab / chimera

Chimera: Execution Engine for Case Management
MIT License
13 stars 2 forks source link

Welcome to Chimera

Chimera is an engine for executing fragment-based case models, an approach that allows for modelling flexible business processes. It is developed and maintained by the Business Process Technology (BPT) group at the Hasso Plattner Institute (HPI).

Chimera is not a modeling tool for case models! Creation and deployment of case models is handled by the Gryphon case modeler also available at GitHub.

Features of Chimera

Getting started

The easiest way to try out Chimera is using the publicly available instance at ~https://bpt-lab.org/chimera-demo~, which contains several exemplary case models demonstrating the features of Chimera. Please refer to the user guide on how to start and enact cases.

The following instructions will get the Chimera case engine up and running on your local machine.

Pre-requisites

The following software is necessary to build and run Chimera:

Installation

  1. Checkout out the source code from github. From the command line you can run git clone https://github.com/bptlab/chimera.git to download the repository to your machine.
  2. Start your MySQL server and create a database, either using the MySQL Workbench or from the command line: mysql -u USER_NAME -p PASSWORD -e "create schema SCHEMA_NAME where SCHEMA_NAME should be something like 'chimeradb'.
  3. Similarily, create a second database to be used for running test cases and name it something like 'chimeradb_test'.
  4. Build the source code using Maven: mvn install -Ddb.user=USER_NAME -Ddb.password=PASSWORD -Ddb.schema=SCHEMA_NAME -Ddb.test.schema=TEST_SCHEMA_NAME -DskipTests Replace USER_NAME, PASSWORD, SCHEMA_NAME, and TEST_SCHEMA_NAME with the values from the previous steps.
  5. Check whether the configuration file config.properties was copied to the main directory and whether the variables (mysql.username, mysql.password etc.) have been replaced correctly.
  6. Deploy the created war file target/Chimera.war to Tomcat by copying it to the webapps folder in your Tomcat installation.
    • Alternatively, use mvn tomcat7:deploy -DskipTests from the command line to automatically deploy the war file. Note however, that you need to configure your Tomcat credentials as described in this article.
  7. Start your Tomcat application server and visit http://localhost:8080/Chimera in your browser, replacing the default port 8080 with the one you configured in Tomcat. You should now be able to see the Chimera frontend.

Creating & Deploying Case Models

Now that you have the Chimera case engine running, you probably want to execute some case models. To create case models and deploy them into Chimera you will need the Gryphon Case Modeler.

Executing Cases

To manually start a new case select the case model from the left menu and click on the green Start Instance button. This will open the case view. Enabled activities are displayed on the right; you can begin an activity by clicking on its name. If the activity has a data pre-condition you will need to select a data object on which it operates.

Running activities are displayed in the middle. You can terminate them by clicking on the checkmark symbol. This will open a modal dialog, which allows to terminate the activity and set state and values of a potential output data object.

For further information check the Chimera user guide.

Deployment

Chimera offers two main deployment options: 1) using a Java Servlet container like Apache Tomcat, 2) using a Docker image.

Deploying to a Servlet container

This was already described in the installation section. If you deploy the war file to a remote server, you need to make sure, that a MySQL server is running with the configured database schema.

:warning: Deployment was only tested with Apache Tomcat

Deploying Docker image

Use the Dockerfile in the main directory of the project repository to create a docker image. To start the image in a container follow the instructions in the wiki.

Up to date docker images of the Chimera case engine are also hosted on our dockerhub. You can pull these images with docker pull bptlab/chimera.

TODO: connect with MySQL container

Developing & Deploying with Docker/Compose

To simplify the local development workflow, you can make use of the Makefile. Todo: mention requirements for this approach.

Contributing

You want to help us? Great :+1:

Please check out Contributing.md for information how you can contribute to the Chimera project, including templates for bug reports, feature suggestions, and pull requests. For in-depth information about the architecture and the individual components of Chimera, the developer documentation in the wiki is the best starting point.

License

The Chimera case engine is provided under the MIT free and open source software license - see LICENSE.md for details.