This project shows how one can use Angular with the standard Camunda REST API. It is an example implementation of how one could build a Tasklist for Camunda using Front End technology only.
The Task Forms are defined within this application and not on the Server-Side to make it very easy to use.
This project was generated with Angular CLI version 1.6.7.
Within this project you can find some example task forms that were defined for an example process.
The example process can be found in the folder examples/myprocess
.
The forms can be found in src/components/forms/myprocess
.
This project can be seen as an example implementation or as a starting point for your custom Tasklist. As it uses standard react mechanisms it should be very easy for a React developer to adapt and change or reuse the code.
- Prerequisite: Install NPM or Yarn
- run
npm install
or runyarn install
- run
npm run start
oryarn start
- Start the Camunda Engine (standard distribution with REST-API at
localhost:8080/engine-rest
) - Open Browser (e.g. Chrome) on
locahost:4200
- Deploy the example BPMN Process given in
examples/myprocess
using the example Tasklist - Start Instance & fill in forms
- Click on Tasklist and complete tasks
This application can start all BPMN process that are deployed on the process engine via the rest API.
You have to make sure that your UserTasks within the BPMN files are configured correctly, so that the forms are displayed in the Tasklist.
Within the src/components/forms
folder you have to create a new folder for every new BPMN Process and name it with the PROCESS_DEFINITION_KEY of your process.
Then you need to place js forms (similar to the once in the myprocess folder) in this new folder. The name of each file has to be used as the FORM_KEY for your UserTask.
- So far this application only supports very basic variables like String & Integer & Boolean. The application will check automatically if variables for defined fields already exist within the process instance in camunda.
- So far now Tests were written...