03-09-2017 06:45 PM
Hello everyone,
Please if anyone can help me to setup a MySql database in Activiti to be able to use the data models
The existing tutorial is not helping me.
Thank you
03-10-2017 08:14 AM
You can create a bean in your activiti.cfg.xml like below
<?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.cdi.CdiStandaloneProcessEngineConfiguration">
<property name="dataSourceJndiName" value="java:jboss/datasources/<name of your datasource>" />
<property name="jobExecutorActivate" value="false" />
<property name="history" value="audit" />
<property name="databaseSchemaUpdate" value="true"></property>
</bean>
</beans>
03-10-2017 08:14 AM
You can create a bean in your activiti.cfg.xml like below
<?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.cdi.CdiStandaloneProcessEngineConfiguration">
<property name="dataSourceJndiName" value="java:jboss/datasources/<name of your datasource>" />
<property name="jobExecutorActivate" value="false" />
<property name="history" value="audit" />
<property name="databaseSchemaUpdate" value="true"></property>
</bean>
</beans>
Explore our Alfresco products with the links below. Use labels to filter content by product module.