I am currently working on an activiti prototype where in I have added activiti process flow to an existing JavaEE dynamic web project.
The whole point of the prototype is to access the database of activiti mainly their ACT_RU table and add our own table which uses process instance ID as the foreign key.
According to what I have read, activiti database tables are created the minute you start a process flow.
Here is what I ahve done till now : 1. activiti cfg.jar has activiti.cfg file :
<bean id="processEngineConfiguration" class="org.activiti.engine.impl.cfg.StandaloneProcessEngineConfiguration">
<property name="databaseType" value="h2" />
<property name="databaseSchemaUpdate" value="true" />
<property name="jdbcUrl" value="jdbc:h2:~/test/db/activiti" />
<property name="jdbcDriver" value="org.h2.Driver" />
<property name="jdbcUsername" value="sa" />
<property name="jdbcPassword" value=""/>
there is an applicationContext.xml in my project classpath :
I have added a data source in tomcat as follows :
<Resource name="jdbc/H2DB" auth="Container" type="javax.sql.DataSource" maxActive="100" maxIdle="30" maxWait="10000" username="sa" password="" driverClassName="org.h2.Driver" url="jdbc:h2:~/test/db/activiti"/>
Despite all of this, the activiti tables are never created. I cannot see them on H2 console. Is this the right approach, am I missing any other xml files?