Activiti 6.0.0 and postgres database how to achieve multi tenancy using? - multi-tenant

How do I achieve multi tenancy using activiti 6.0.0 and postgres database? I want to design my own angular UI with activiti 6.0.0 as a base. This is where I want to achieve the multi tenancy where my tenant A, tenant B, and tenant N can access.

Have you looked at http://www.jorambarrez.be/blog/2015/10/06/multi-tenancy-separate-database-schemas-in-activiti/ ? I'm guessing you've a specific domain/focus for your app and you've decided you don't need all the general-purpose features that the activiti 6 UI provides (especially modeling). In that case you might want to run the backend using spring boot (https://spring.io/blog/2015/03/08/getting-started-with-activiti-and-spring-boot) rather than the Activiti 6 WAR distribution that includes the general-purpose features and user interface. (I mention this because activiti-rest alone doesn't include the API that backs the modeller used by the v6 Activiti UI - happy to discuss further if you've more questions.)

Related

I am developing a website I know bootstrap and learned spring I want to know what else can be done to make it better?

I want to know what spring dependencies should I use on my website to make the work easy and spring or spring boot which one is better. also, suggest some frontend technologies that I can use to make the website smart.
It's a very broad question. And it all depends on what features you want in your web site. Just listing few basic module to give you some hints.
Spring MVC - For web application with MVC Pattern
Spring Security - To secure your app
Spring ORM - If using any ORM tool like hibernate
You need to explore more on the basis of your need.
Spring Boot vs Spring:
You should use Spring Boot if you are starting new project. Spring Boot came to make development process easier when using Spring Framework. In Spring, developer had to write lots of code to configure beans and dependencies. Spring Boot automated this process so that you no longer do it by yourself but Spring Boot will take care of it. Plus it provides some extra tools (In built Web Server, in Memory DB, tool to monitor and manage Spring Boot App )
Try to create a simple web app in Spring and Spring Boot to understand the difference.
Front-end Technologies:
JavaScript based framework/lib like Angular,React,Vue etc. are the trend for front-end now a days. Again there are pros and cons of each of them. Hence you need to evaluate, what suits you better as per your requirement.

BPMN for spring boot 2

We have started new project on spring stack and using latest versions. But we have workflow requirement and I used activiti in past. But as I see there is no spring boot 2 support for activiti and camunda. Can anybody suggest which BPM is best that can be integrated with spring boot 2.
You will find a bunch of Spring Boot 2 starters in the Flowable github repo.
The documentation explains step-by-step how to create a BPM enabled Spring Boot application. There is also the blog post The road to Spring Boot 2.0 that the improved support for Flowable within Spring Boot as part of the Flowable 6.3.0 release.
You ask for suggestions on which BPM is best. Well, I cannot be objective since I am part of the Flowable Team, but I can say that our Spring Boot implementation is pretty neat:
All engines are supported (BPMN, CMMN, DMN), both embedded and exposing their respective REST APIs.
There is an automatic configuration of Spring Security to use the Flowable IDM engine (in case no other custom security is configured).
There is no "EE" version of the starter. Flowable provides Spring Boot 2 support 100% Open Source.
The Spring Actuator integration is quite powerful.
Did I mention Open Source? ;-)
In order to get the all engines you would need to use the flowable-spring-boot-starter(-rest) dependency. The (-rest) needs to be used if you want the Flowable REST APIs to be automatically configured.
There is also the option to run the BPMN, CMMN or DMN engines in standalone mode. For that you would need one of the following dependencies:
flowable-spring-boot-starter-process(-rest)
flowable-spring-boot-starter-cmmn(-rest)
flowable-spring-boot-starter-dmn(-rest)
So, compare for yourself, but for me, it's pretty clear and of course I am open to discussion.
The Activiti is working on Activiti Cloud fully based on Spring Boot 2 and Spring Cloud Finchley (targeting kubernetes deployments, but it can be used outside kubernetes if that is not your thing) if you are looking for a BPMN runtime for Cloud Native applications. We are working hard on releasing the first Beta1 release at the moment, and we will very welcome feedback about it. Hope this helps.
If you use the camunda-bpm-spring-boot-starter you can write self contained services running camunda process engine with spring boot 2.

Developing a simple CRUD App with Spring Boot and an existing Database

Is there a way to create a simple CRUD App using Spring Boot and an Existing Database?
You could look at Spring Roo. Its entire purpose is to allow rapid application generation. There is also support for reverse engineering an app from an existing database.
Version 2 will apparently also support Spring Boot, but I don't know if database reverse engineering already made it into v2. You could always try generating your application and adding Spring Boot later on.
I haven't much used it myself so unfortunately I can't offer you much guidance on its actual use - but you should be able to find some tutorials on Google, and StackOverflow contains several questions and answers on Spring Roo as well.

Do the Spring Framework, Boot etc. have ECCN classifications?

I need to know whether the Spring Framework or any of the other projects e.g. Boot have ECCN classifications.
And would also like to know whether a table of Spring projects vs. ECCN exists.
There is no official communication from Spring Community.
The fact is Spring frameworks have no entry in the Commerce Control List (CCL) so they have no Export Control Classification Number (ECCN).
They are designed as EAR99.

Is Liferay the same as Spring?

Is Liferay the same as Spring? Are they two different types of products? I can't tell if Liferay is a CMS, framework, or all of the above. Do I need something like JBoss to run it Liferay?
Is Liferay the same as Spring?
No. Liferay is a Portal. Spring is a framework for application development.
Spring is mainly used to address Inverion of Control and Dependency Injection.
A portal can be seen as a collection of small/mini web-applications
(providing limited features and information) normally called as portlets.
Please check SO info about Portal and Spring for more details.
Are they two different types of products?
Purpose for which they are used is different, but one can integrate Liferay with Spring
to make application development faster and efficient.
I can't tell if Liferay is a CMS, framework, or all of the above.
Liferay is a Portal which among other features supports CMS.
Do I need something like JBoss to run it Liferay?
Liferay comes as a bundled package with Servlet Container like Tomcat or
a fully fledged Java EE container like Jboss, Glass fish etc.
You can download community edition here.

Resources