Recently I was working on a .NET based tool to simulate business processes. Thanks to BPMN 2.0 and its XML specification there is a widely adopted file format to exchange business process models between tools of different vendors. Today I was playing around with Activiti and created a small Java application with Maven that runs the Activiti Engine on a demo business model. Assuming you have Java, Maven and GIT properly installed on your system, you can take this project as a starting point to try your own ideas with it.
Open up a console window and execute the following commands:
1 2 3
$ git clone https://github.com/choffmeister/activiti-demo.git $ cd activiti-demo $ mvn test
Thats all. The unit test provided with the project creates a process engine, deploys a BPMN 2.0 XML into it, starts a process instance and completes the two manual tasks in it.
// Assert that no process instance is running anymore assertEquals(0L, runtimeService.createProcessInstanceQuery().count()); } }
For simulations (thats what I was actually interested in) the process engine seems to be much to slow. By now I did not search the internet for this concern. But it might be worth a try, to investigate how suitable the Activiti Engine is for simulation purposes with some customizations…