Is it mandatory to use activiti database tables

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

Is it mandatory to use activiti database tables

I am using activiti workflow embedded inside spring boot application.

I want to know whether use of activiti tables is mandatory or not. (I am more concerned about use of Task and User table).

4 Replies
ratik_singhal
Established Member

Re: Is it mandatory to use activiti database tables

I think NO.. It is not mandatory to use activiti DB. You can configure own like 

# In Memory Database
#db=h2
#jdbc.driver=org.h2.Driver
#jdbc.url=jdbc:h2:mem:activiti;DB_CLOSE_DELAY=1000
#jdbc.username=sa
#jdbc.password=

# Persistent Database
db=mysql
jdbc.driver=com.mysql.jdbc.Driver
jdbc.url=jdbc:mysql://localhost:3306/activiti?autoReconnect=true&useSSL=false
jdbc.username=*****
jdbc.password=*****

Please mark useful, if it is. 

Thanks

ashish123
Member II

Re: Is it mandatory to use activiti database tables

What i mean to ask is, activiti has 25 different tables, So is it really mandatory to use activiti Task & activiti user table ?when we embed activiti workflow inside spring we app.

ratik_singhal
Established Member

Re: Is it mandatory to use activiti database tables

If you will not use Activiti user table than in workflow (which run on the activiti engine) transaction, you might face problem to show assign task to which user. 

Activiti Task table has data when we complete workflow so it is easy to use Activiti tables else you have to handle complete scheme. 

ryandawson
Alfresco Employee

Re: Is it mandatory to use activiti database tables

If it's the user table that you're interested in is this because you're looking to use an external provider for identity? If so this is certainly possible - see for example java - Configure Activiti to reuse the existing user/group data in Spring Boot - Stack Overflow