O'Reilly logo

Activiti 5.x Business Process Management Beginner's Guide by Irshad Mansuri, Dr. Zakir Laliwala

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action – running the Activiti Engine

So far, we have created a process using the Designer and Modeler and deployed it using the Activiti Explorer. We have seen that configuration can be done using activiti-standalone-context.xml. Similar configurations can also be done using the ProcessEngine class. In this section, we will take a look at this and in Chapter 6, The Activiti ProcessEngine API, we will see more details regarding various APIs.

We can create the Activiti Process Engine using the org.activiti.engine.ProcessEngines class. To configure the Process Engine, we have to create the activiti.cfg.xml file.

Let's see how we can run the Activiti Engine.

Firstly, we can create an instance of ProcessEngine as follows:

ProcessEngineprocessEngine ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required