Content:
1, design logistics distribution process
2. Start the logistics distribution process
3. Query Group task, pick Group task
4. Query personal tasks and personal tasks
1. Design the logistics distribution process
Logistics and distribution process
Task assignment based on group tasks, using exclusive gateways, branching selection using process variable implementations
Activiti Graphical Interface:
The ID value of the process corresponds to th
Download Activiti designer file Address: http://activiti.org/designer/archived/Note: My is myeclipse9.0, I downloaded the version is: (When I download a high version of the installation of a problem)Unzip the file to:%myeclipse_install_folder%\myeclipse 9\dropins folder: (%myeclipse_install_folder% represents your MyEclipse installation folder)You will see as file:Then steps such as:Then open your myeclipse to see as the representative installs
The example of this article tells the Activiti to obtain the flowchart method, the concrete procedure is as follows:
1. The release process code is as follows:
Repositoryservice.createdeployment ()
. Name ("Expense-process.bar")
. Addclasspathresource ("org/activiti/ ExpenseProcess.bpmn20.xml ")
. Addclasspathresource (" Org/activiti/expenseprocess.pn
1. Error description
Java.lang.noclassdeffounderror:org/activiti/bpmn/model/startevent at Org.activiti.image.impl.defaultprocessdiagramgenerator.
2. Error reason
Known by the error hint, is missing Activiti-bpmn-model-related jar
3. Solutions
(1) Copy the Activiti-bpmn-model-5.21.0.jar to the Lib directory
(2) Add in Pom.xml
Activiti 5.17 uses spring to load the configuration file.
The implemented method is in the Org.activiti.engine.impl.cfg.BeansConfigurationHelper class.
public static processengineconfiguration parseprocessengineconfiguration (Resource springresource, String beanname) {
defaultlistablebeanfactory beanfactory = new Defaultlistablebeanfactory ();
Xmlbeandefinitionreader Xmlbeandefinitionreader = new Xmlbeandefinitionreader (beanfactory);
Activiti adds comment information, activiticomment
You need to describe some comments when submitting a task each time. For example, you need to describe the reason for asking for leave when submitting the leave process. If the leader rejects the request, you can annotate the reason for rejection.
1. Add comments
// Because the process user context object is thread-independent, you must set it at the desired position to ensure that the setting and
*///Processengine.getrepositoryservice ()//Service related to process definition and deployment objects//. Deletedeployment (Deploymentid); /** The deletion of the energy level Union * can delete the initiating process, will delete all the information related to the current rule, the information being executed, also includes the historical information*/Processengine.getrepositoryservice ()//Service related to process definition and deployment objects. Deletedeployment (Deploymentid,true);
(); System.out.println (processinstances); for(ProcessInstance processinstance:processinstances1) {System.out.println (processinstance); } }Mode 2:Use Businesskey to set Businesskey as the association key for the business object Association Process instance when the process instance is opened Setup Process :/*** Use Businesskey as the Association key of the business object associated with the process instance * *@throwsException*/@Test Public voidTestbuskey ()throwsException {//Set B
This is used to manage Activiti series label articles, and Activiti's analysis is based on the current latest version 5.21.Official instruction manual Link: http://www.activiti.org/userguide/index.htmlThis series will involve the activitie of the building and source code analysis, understanding, if wrong, please point out. PS: I also just contact soon, still in the study, the article update may be very slow, also may be no one to see, just to summariz
I. PrefaceThe basic operations such as process deployment, definition, and initiation of process instances are described earlier, and we continue to learn about process instances, execution objects, and tasks.Two. Process instance, Execution object descriptionThe entire Activiti life cycle has undergone several steps as follows: 1. Process Deployment---> 2. Start the process instance---> 3. The execution Process object (a process instance contains mul
For built-in forms, you can customize data types, such as adding a JavaScript data type, in addition to the original supported data types (string, long, enum, date, Boolean, collection) you need to add a processing class for a custom data typepublic class Javascriptformtype extends abstractformtype{@overridepublic string GetName (){return "javascript";}@overridePublic Object Convertformvaluetomodelvalue (String propertyvalue){return property;}@overridePublic String Convertmodelvaluetoformvalue (
points add in. Architects, not covered.
------------------------------------------------------ Noon in the official group of Lemonoa, and predecessors understand, drools generally in the supermarket like there are thousands of items, different products have different discount strategy, at this time, the rule engine has his application scenario. A simple strategy like OA is that you don't need to configure the rule engine. ------------------------------------------------------ In the after
integrate with your workflow when querying?Let's look at the task node: /** * Task List error [stderr] (http-localhost/127.0.0.1:8080-3) Scriptenginemanager providers.next (): Javax.script.ScriptE Nginefactory:provider com.sun.script.javascript.RhinoScriptEngineFactory not found * * @param leave */@Re Questmapping (value = "List/task") public Modelandview TaskList (HttpSession session, HttpServletRequest request) {Li Stthe way we do this is by using Businesskey , does not use the business da
The first is because the server lacks the necessary fonts to this problem:SolutionsThe second case is the client's problem:Although the file you provided at the beginning of the description is UTF-8, but actually the kanji is the GBK character set,byte[] Bpmnbytes = xmlconverter.converttoxml (model, "GBK");Activiti View flowchart, Chinese garbled
sources 8 Express Number Logistics query interface (no need to select logistics company, automatic identification according to the number) 9 Call camera to take photos custom crop edit avatar, Avatar picture chroma Adjustment 10 Code Editor, online template editing, copy development tool editor, PDF online Preview, File conversion encoding 11 video playback Technology video barrage technology, multiplayer instant Messenger screen chat Span style= "COLOR: #000" >
Blog Source: http://ww
, 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
This example shows the implementation of the Activiti flowchart view, as follows:
1, test case view picture code as follows:
public void Viewimage () throws Exception {
//Create warehouse service to object
repositoryservice Repositoryservice = Processengine.getrepositoryservice ();
Find the file you need to show from the warehouse
String Deploymentid = "701";
list
Description
1) Deploymentid for process deployment ID
2) ResourceNa
The Activiti process data is stored in the act_ru_* datasheet, corresponding to the Runtimeservice, and the historical data is stored in the act_hi_* datasheet, corresponding to Historyservice. The following is primarily a view of historical data
Historictest.java
Package com.activiti.test;
Import java.util.List;
Import Org.activiti.engine.ProcessEngine;
Import Org.activiti.engine.ProcessEngines;
Import org.activiti.engine.history.HistoricActivityIns
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.