How to override activiti database?

Showing results for 
Search instead for 
Did you mean: 
Member II

How to override activiti database?

Hello everyone,

I would like to override activiti database and when run my processinstance i don't want to create activiti tables..

Means i don't want to use any of the activiti tables like ACT_GE_BYTEARRAY,ACT_GE_PROPERTY,ACT_RU_EXECUTION etc.

Instead i would like to use my own database tables.

How can i do configurations for this?



2 Replies
Alfresco Employee

Re: How to override activiti database?

In Activiti 6, you can use your own persistence layer if you want. Basically you will need to configure Activiti to use some custom DataManager implementations that you provide. Check out this blog post Pluggable persistence in Activiti 6 | Small steps with big feet and prototype GitHub - Activiti/activiti-in-mem-prototype  

Member II

Re: How to override activiti database?

Hi Bassam,

I went through the prototype code. I just download the project and tried to run the application.But i am facing few issue.Not able to find the Entity class from package org.activiti.engine.impl.db.Entity. And import org.activiti.engine.impl.persistence.entity.Entity class.

Where is the database configuration available in prototype project?. Once i run below error message it is giving

Exception in thread "main" java.lang.NullPointerException
at org.activiti.engine.impl.persistence.entity.AbstractEntityManager.findById(
at org.activiti.engine.impl.cmd.ValidateExecutionRelatedEntityCountCfgCmd.execute(
at org.activiti.engine.impl.cmd.ValidateExecutionRelatedEntityCountCfgCmd.execute(
at org.activiti.engine.impl.interceptor.CommandInvoker$
at org.activiti.engine.impl.interceptor.CommandInvoker.executeOperation(
at org.activiti.engine.impl.interceptor.CommandInvoker.executeOperations(
at org.activiti.engine.impl.interceptor.CommandInvoker.execute(
at org.activiti.engine.impl.interceptor.TransactionContextInterceptor.execute(
at org.activiti.engine.impl.interceptor.CommandContextInterceptor.execute(
at org.activiti.engine.impl.interceptor.LogInterceptor.execute(
at org.activiti.engine.impl.cfg.CommandExecutorImpl.execute(
at org.activiti.engine.impl.cfg.CommandExecutorImpl.execute(
at org.activiti.engine.impl.cfg.ProcessEngineConfigurationImpl.postProcessEngineInitialisation(
at org.activiti.engine.impl.cfg.ProcessEngineConfigurationImpl.buildProcessEngine(
at org.activiti.Main.main(


Thanks in advance. I really appreciate your help.