In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article introduces you how the official example of Activiti7 integration SpringBoot2 is, the content is very detailed, interested friends can refer to, hope to be helpful to you.
Introduction
Activiti 7 is the evolution of Alfresco's field-tested Activiti workflow engine, which is completely adopted to run in the cloud. It is built on the concept of Cloud Native applications and is architecturally different from previous versions of Activiti.
We will use the new Activiti 7 Process Runtime and Task Runtime Java API to try out the Activiti 7 process engine. We will do this from the Spring Boot 2 application. All the Activiti 7 Java artifacts we need can be found in Alfresco's Maven Repository (Nexus).
The Spring Boot application will also contain Web components (that is, Spring MVC), so we can create a small ReST API to start processes and interact with processes and tasks. Activiti 7 provides a ReST API, but when we only use the core library, we do not intend to use it in this section. Here, we only create our own simple ReST API, which uses the Activiti 7 Java library (that is, Process Runtime and Task Runtime).
The new API is designed to provide a clear approach to the Cloud Native approach. They also include security and identity management as first-class citizens. The new API also simplifies some common use cases.
We will actually build a simple business process management (BPM) application / solution using the Activiti 7 Core library. This is not usually what you need to do, but being able to understand the API provided by Activiti 7 is a good exercise.
precondition
JDK has been installed
Maven has been installed
source code
You can find the source code related to this article here: https://github.com/gravitonian/activiti7-api-basic-process
Generate a Spring Boot 2 application
It is very easy to use Spring Boot applications. Simply access https://start.spring.io/ and fill in the application's data as follows: make sure that Spring Boot version 2.0.x is used with Activiti 7 Beta 1-3, and Beta 4 should be consistent with version 2.1.x.
You don't have to use the same Group (org.activiti.training) and Artifact (activiti7-api-basic-process-usertask-servicetask-events) names as I do, just use any name you like. However, if you copy the code from this article, it may be easier to use the same package name (that is, the same group). Search for H2 and Web dependencies so that they are included in Maven POM. Then click the build Project button. The completed Spring Boot 2 Maven project will be automatically downloaded as ZIP. Open the package somewhere.
Test standard Spring Boot App
Before continuing with Activiti, let's make sure that the Spring Boot application works properly. This involves two steps. First build the application JAR, and then run the application JAR.
Build the application JAR:
$cd activiti7-api-basic-process-usertask-servicetask-events / activiti7-api-basic-process-usertask-servicetask-events mbergljung $mvn clean package on Activiti7 integration SpringBoot2 official example is shared here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.