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
Let's see how we can run the Activiti Engine.
Firstly, we can create an instance of
ProcessEngine as follows: