Label:Activiti's background is supported by the database, and all tables start with act_. The second part is a two-letter identifier that represents the purpose of the table. The use also corresponds to the API of the service. act_re_*: ' RE ' represents repository. The table for this prefix contains the process definition and process static resources (pictures, rules, etc.).act_ru_*: ' RU ' indicates runtime. These run-time tables contain process instances, tasks, variables, asynchronous tasks,
According to the previous article's configuration, Servicetask has been able to invoke WebService with @webparam and @webresult releases, but how to invoke the webservice of these publications without these parameters, Because other languages do not @webparam these parameters, consider the following example:Counter.javaAfter publishing, the WSDL file is as follows (key content):We will find that the first parameter name of the Prettyprintcounttwo method defaults to arg0, and the second parameter
1, change the default database: Modify the db.properties.2. Disable default users and groups, process definition, data model: Modify Activiti-standalone-context.xml
Id="Demodatagenerator" Class="Org.activiti.explorer.demo.DemoDataGenerator"> Name="Processengine" Ref="Processengine" /> Name="Createdemousersandgroups" Value= "false" /> name = "createdemoprocessdefinitions" value "false" /> name = "createdemomodels" value
Label:First find the Db.properties file under the Classes folder under Web-inf, and change the contents to the following:Db=activitiJdbc.driver=com.mysql.jdbc.driverJdbc.url=jdbc:mysql://localhost:3306/activitiJdbc.username=rootjdbc.password=123456Note that the Activiti database exists in MySQL.Then copy the Mysql-connector-java-5.1.29.jar to the Lib directory under Web-inf and then start Tomcat, which initializes the
write, to generate a complete module, with pages, SQL scripts, processing classes, service and other complete modules2 Ali database Connection pool Druid, security permissions Framework Shiro, cache framework Ehcache, Tool class interface Redis3 Integrated WX Interface Development WX custom menu (support multiple public numbers)4 Image crawler Technology Enter the URL of the picture, can crawl and download the picture of this page to the local server5 SQL Editor, supports complex SQL statements
, Main table, schedule, tree table, rapid development tool) + fast form BuilderFreemaker template technology, 0 code not to write, to generate a complete module, with pages, SQL scripts, processing classes, service and other complete modules2 Ali database Connection pool Druid, security permissions Framework Shiro, cache framework Ehcache, Tool class interface Redis3 Integrated WX Interface Development WX custom menu (support multiple public numbers)4 Image crawler Technology Enter the URL of th
Tags: logs. com case New Cat ack convert technology share AceFirst, eclipse itself downloadOpen the Eclipse software and click the Help option in the menu bar to select Install New software, as shown in the following example:The following dialog box appears:Click the Add button and the following dialog box appearsEnter the following address: Location: http://activiti.org/designer/update/ Name:activiti:If this form appears, it indicates that eclipse is downloading the appropriate plugin for y
libraries) support n data sources8 Express Number Logistics query interface (no need to select logistics company, according to the automatic identification of the number)9 Call camera photo Customize crop edit avatar, avatar picture chroma Adjust10 code Editor, online template editing, copy development tool editor, PDF online Preview, file conversion code11 Video playback Technology video barrage technology, multi-person instant communication bomb screen ChatBlog Source: http://www.fhadmin.org/
libraries) support n data sources8 Express Number Logistics query interface (no need to select logistics company, according to the automatic identification of the number)9 Call camera photo Customize crop edit avatar, avatar picture chroma Adjust10 code Editor, online template editing, copy development tool editor, PDF online Preview, file conversion code11 Video playback Technology video barrage technology, multi-person instant communication bomb screen ChatBlog Source: http://www.fhadmin.org/
, Main table, schedule, tree table, rapid development tool) + fast form BuilderFreemaker template technology, 0 code not to write, to generate a complete module, with pages, SQL scripts, processing classes, service and other complete modules2 Ali database Connection pool Druid, security permissions Framework Shiro, cache framework Ehcache, Tool class interface Redis3 Integrated WX Interface Development WX custom menu (support multiple public numbers)4 Image crawler Technology Enter the URL of th
Tags: get group Type use case property Val from Target Desc lastActiviti Workflow Engine database table structure one,Naming a database tableThe names of tables in the Acitiviti database begin with Act_. The second part is the identification of a two-character use case table. This use case is broadly matched to the service API.
L act_re_*: ' RE ' means repository. The table with the prefix contains static information, such as the process definition, the flow of resources (pictures, rule
1. By using the previous section, you know that the process starts with a process instance and a user task that is stored in the Act_ru_task and Act_hi_task tables, indicating that RU is Runtime,hi history. However, it should be noted that, unlike
1. All tasks completed, the process is over, query history task or historical process to operate Act_hi_taskinst table, with the Historyservice to invoke the relevant methods.
This section samples query history tasks, and the history process no
————————————————————————————————————————————————— – Java Architect Project Combat, high concurrency cluster distributed, large data high availability video tutorials, total 760G
Download Address:
https://item.taobao.com/item.htm?id=555888526201
01.
Sometimes we want to bind a global listener to every task in activiti, but we cannot manually add listeners to the task every time (too tedious ), therefore, a custom task parser is used.
First look at the activiti configuration, so that you can use a custom task parser to replace activiti's default task Parser (the principle can be self-query source code)
Next is the implementation of the task parser.
Pac
1. view images for test cases
Public void viewimage () throws exception {// create a repository service to object repositoryservice = processengine. getrepositoryservice (); // find the file to be displayed from the repository string deploymentid = "
1. Start the process
/*** 1 Start Process ** when the process reaches a node, one piece of data will be generated in the act_ru_execution table * if the current node is a user task node, in this case, the act_ru_task table will generate one piece of
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.