cancel
Showing results for 
Search instead for 
Did you mean: 

help whit BD activiti

samuray258
Champ in-the-making
Champ in-the-making
I have a workflow project in eclipse indigo, I got connected to a postgresql database view. 9 …. but I need to connect and create activiti data base, I have no idea what I have to put in the "activiti.cnf.xml" methods or class or that I do … please respond promptly possible
3 REPLIES 3

jbarrez
Star Contributor
Star Contributor
<code>
    <property name="databaseSchemaUpdate" value="true" />
</code>

For automatic creation. The zip file from the website contains DDL sql scripts for each database.

"please respond promptly possible"

> We always do. But we get itchy from being pushed.

samuray258
Champ in-the-making
Champ in-the-making
<?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">

<bean id="processEngineConfiguration"
  class="org.activiti.engine.impl.cfg.StandaloneInMemProcessEngineConfiguration">
  <property name="databaseSchemaUpdate" value="true"/>
  <property name="dataSource" ref="dataSource"/>  
</bean>

    <bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource" >
    <property name="driverClassName" value="org.postgresql.Driver" />
    <property name="url" value="jdbcSmiley Tongueostgresql://localhost:5432/activiti" />
    <property name="username" value="postgres" />
    <property name="password" value="******secret*******" />
    <property name="defaultAutoCommit" value="false" />
</bean>
  
</beans>     

samuray258
Champ in-the-making
Champ in-the-making
thanks for your answer, i resolved with this :


<?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">

<bean id="processEngineConfiguration"
  class="org.activiti.engine.impl.cfg.StandaloneInMemProcessEngineConfiguration">
  <property name="databaseSchemaUpdate" value="true"/>
  <property name="dataSource" ref="dataSource"/>  
</bean>

    <bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource" >
    <property name="driverClassName" value="org.postgresql.Driver" />
    <property name="url" value="jdbcSmiley Tongueostgresql://localhost:5432/activiti" />
    <property name="username" value="postgres" />
    <property name="password" value="******secret*****" />
    <property name="defaultAutoCommit" value="false" />
</bean>
  
</beans>