In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly introduces "how to build the activiti engineering environment". In the daily operation, I believe many people have doubts about how to build the activiti engineering environment. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts about "how to build the activiti engineering environment". Next, please follow the editor to study!
Environment building
1. Select the jar package.
Download activiti-5.13, open it, and test all the packages under activiti-5.13\ wars\ activiti-rest\ WEB-INF\ lib in the lib folder under the project WEB-INF. Of course, you also need a driver jar package for mysql, so that we have all the jar packages we need.
two。 Configuration file
Open the activiti-5.13 folder-- > Open wars. We will see the activit-content.xml file, copy it, paste it into the resource folder under the project, rename it to acitiviti.cfg.xml, and delete everything except references after opening it, and write the following code:
[html] view plain copy
3. Create a database
Here we use the database that comes with activiti, because we have all the entities in activitie.jar, we need some test methods to create the database. Open the database (mySql), then create the database activitiDemo, and then create the test class to be given in the original folder of test, as follows:
[java] view plain copy
@ Test
Public void test () {
ProcessEngine processEngine = ProcessEngineConfiguration
.createProcessEngineConfigurationFromResource ("activiti.cfg.xml")
.buildProcessEngine ()
System.out.println ("processEngine:" + processEngine)
}
Now create a new database in mysql called activitiDemo, and then execute the above code to create the table, which takes a little longer, just wait patiently.
Such a basic environment has been set up. With the jar package, the configuration file, and the database, we'll wear a simple leave flow chart.
WorkFlow drawing
Under resource, create page-- > diagrams, right-click New-- > other-- > Activiti Diagram, and see the following interface:
Such as the above picture: the left half is the drawing area, and the right half is the toolbar, so we can draw. Let's draw a simple leave first.
Click in the blank, set the ID of the flowchart and, then, click on the task and set the corresponding name, is it very simple?
At this point, the study on "how to build the activiti engineering environment" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
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.