cancel
Showing results for 
Search instead for 
Did you mean: 

configuration of process engine

fahad1
Champ in-the-making
Champ in-the-making
how can i configure process engine in activiti cfg xml file so that The processes should deploy in memory and not in DB type h2. Or how can I configure my own db.

book cdi app from activiti in action has the following configuration. Can someone tel me how to change it?

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="http://www.springframework.org/schema/beans
             http://www.springframework.org/schema/beans/spring-beans.xsd">

    <!– lookup the JTA-Transaction manager –>
  <bean id="transactionManager" class="org.springframework.jndi.JndiObjectFactoryBean">
    <property name="jndiName" value="java:jboss/TransactionManager"></property>
    <property name="resourceRef" value="true" />
  </bean>

  <!– process engine configuration –>
  <bean id="processEngineConfiguration" class="org.activiti.cdi.CdiJtaProcessEngineConfiguration">
    <property name="dataSourceJndiName" value="java:jboss/datasources/ExampleDS" />
    <property name="databaseType" value="h2" />
    <property name="transactionManager" ref="transactionManager" />
    <property name="transactionsExternallyManaged" value="true" />
    <property name="databaseSchemaUpdate" value="true" />
   
    <property name="customPostBPMNParseListeners">
      <list>
        <bean class="org.activiti.cdi.impl.event.CdiEventSupportBpmnParseListener" />
      </list>
    </property>
  </bean>
</beans>
3 REPLIES 3

martin_grofcik
Confirmed Champ
Confirmed Champ
Hi,

Default activiti H2 configuration is memory. Activiti uses in memory database.
How to change DB configuration:
http://www.activiti.org/userguide/#databaseConfiguration

Regards
Martin

fahad1
Champ in-the-making
Champ in-the-making
the problem I am facing is that I want to use a new DB table. And "databaseSchemaUpdate: true" mean If the schema doesn't exist, it is created. But i am getting exception. It only works with the existing one and not with new one.
Can tel me how to generate a new table  of H2 type within activiti-cfg.xml file ?

trademak
Star Contributor
Star Contributor
What kind of exception are you getting?
databaseSchemaUpdate should work fine with existing schema's as well.

Best regards,