cancel
Showing results for 
Search instead for 
Did you mean: 

Multi tenancy support

feldmani
Champ in-the-making
Champ in-the-making
Hi,
I would like to install the Activiti engine embedded in an application that supports multi-tenant environment (offering a Software As A Service for several customers on the same DB).
Is there a way / somebody who already did this?

thanks,
Nir
31 REPLIES 31

frederikherema1
Star Contributor
Star Contributor
Alfresco does some "smart" things indeed. So no, no out of the box support for MT is in activiti right now, but we're thinking about this in future releases. Nothing concrete yet, though…

I would like to also put in my $.02 for the addition of multi tenancy to Activiti. 

trademak
Star Contributor
Star Contributor
Starting from the just released Activiti 5.15, Activiti contains multi tenancy support.

Best regards,

dan_
Champ in-the-making
Champ in-the-making
Hi,

Does Activiti multi-tenancy support multi-schema on different databases? I have clients who needs their schemas on Oracle and others on Postgres. Is that possible. In other words, is it possible for Activiti to change the database type dynamically according to tenant database type?

Is there an example that shows how to configure the engine to that effect?

Thanks!

Dan

martin_grofcik
Confirmed Champ
Confirmed Champ
Hi Dan,

Does Activiti multi-tenancy support multi-schema on different databases?
No.

Regards
Martin

dan_
Champ in-the-making
Champ in-the-making
Thank you!

dan_
Champ in-the-making
Champ in-the-making
In fact, what I am planning to to is have different engines per database type. All embedded within the same application server.

martin_grofcik
Confirmed Champ
Confirmed Champ
In that case you can have different DBs in your application.

Regards
Martin

dan_
Champ in-the-making
Champ in-the-making
Hi Martin,

Is multi-tenancy support available within a single database (physical) server? or it is available across two independent databases of the same type, say Oracle type? In other words, can my tenants be in different, independent, separate oracle databases?

I think the answer is no, the tenants' schemas must be within the same database? I just want to clarify this, since it is not clear from the example (see link below) whether the registered tenants' datasources are strictly for different schemas within the same database or not. 

http://www.jorambarrez.be/blog/2015/10/06/multi-tenancy-separate-database-schemas-in-activiti/

Many thanks,

Dan

jbarrez
Star Contributor
Star Contributor
>  Is multi-tenancy support available within a single database (physical) server?

Yes: http://activiti.org/userguide/index.html#advanced.tenancy

My blog post you link to is about a NEW feature that we added.

So to answer: both options are possible with Activiti.