AnsweredAssumed Answered

configuration of process engine

Question asked by fahad1 on Apr 3, 2014
Latest reply on Apr 7, 2014 by trademak
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>

Outcomes