CN111880871A - Optimization method and system for viewing activti process progress - Google Patents
Optimization method and system for viewing activti process progress Download PDFInfo
- Publication number
- CN111880871A CN111880871A CN202010570173.2A CN202010570173A CN111880871A CN 111880871 A CN111880871 A CN 111880871A CN 202010570173 A CN202010570173 A CN 202010570173A CN 111880871 A CN111880871 A CN 111880871A
- Authority
- CN
- China
- Prior art keywords
- node
- activiti
- file
- flow
- information
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 109
- 230000008569 process Effects 0.000 title claims abstract description 82
- 238000005457 optimization Methods 0.000 title claims abstract description 27
- 230000000694 effects Effects 0.000 claims abstract description 58
- 238000010586 diagram Methods 0.000 claims abstract description 13
- 238000012545 processing Methods 0.000 claims abstract description 13
- 238000004590 computer program Methods 0.000 claims description 12
- 238000012552 review Methods 0.000 claims description 10
- 230000000977 initiatory effect Effects 0.000 claims description 6
- 230000006870 function Effects 0.000 abstract description 8
- 238000012827 research and development Methods 0.000 abstract description 7
- 238000011160 research Methods 0.000 abstract description 6
- 238000013461 design Methods 0.000 description 3
- 238000011161 development Methods 0.000 description 3
- 238000001914 filtration Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000002360 preparation method Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T11/00—2D [Two Dimensional] image generation
- G06T11/60—Editing figures and text; Combining figures or text
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- General Engineering & Computer Science (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The invention provides an optimization method and system for viewing the progress of an Activiti process, which are used for searching an Activiti process data table, reading coordinate data of task nodes in a process configuration file by combining with an Activiti self-contained process diagram picture generation service, displaying a native process diagram in a background diagram mode on a front end page, dynamically positioning and displaying attribute information of the task nodes according to returned node coordinate information, binding click events, customizing transaction processing by research personnel, displaying more information in the Activiti process diagram in a simpler, more convenient and faster mode, enriching the functions of the task nodes in the Activiti process diagram, solving the problem of single function of the existing Activiti self-contained process diagram and greatly improving the research and development efficiency. Therefore, research personnel can quickly display the flow node information and bind the processing event without having higher drawing programming capability.
Description
Technical Field
The invention relates to the technical field of workflow, in particular to an optimization method and system for looking up the progress of an Activiti process.
Background
Activiti, an open source framework for business process management, can quickly design a customized development process flow, for example, hardware development standard IPD flow refinement, and can quickly design a development flow for each post using Activiti, and meanwhile, Activiti can also provide a flow chart viewing function, so that a user can conveniently and accurately view the progress condition of the flow.
When an active flowchart is currently viewed, the active self-service is mainly called, the active returns a picture file content of a flow design style, and the browser renders and displays the file content in a front-end page. The activti self-contained service only returns one picture when viewing the progress of the flow, cannot display the relevant processing information of the nodes in the flow chart, such as the starting time, the executant, the completion time, the execution result and the like, and cannot trigger the relevant event processing by clicking the nodes, such as viewing the form information bound by the nodes, so that the user is inconvenient to view the specific conditions of the flow.
In the prior art (patent application No. CN201811099473), "redrawing method of actinti flowchart", apparatus, computer device and storage medium "discloses a method for redrawing actinti flowchart, which includes: by redrawing elements (rect, polyline and the like) of the flow chart, new SVG elements are formed, interaction events are added to the newly drawn SVG elements, and the events trigger the display nodes to process information such as people.
Disclosure of Invention
The invention aims to provide an optimization method and an optimization system for viewing the progress of an Activiti process, and aims to solve the problem of single function of a process diagram carried by the Activiti in the prior art, realize that research and development personnel can quickly display process node information and bind processing events without higher drawing programming capacity, and improve the research and development efficiency.
In order to achieve the technical purpose, the invention provides an optimization method aiming at the progress check of an activti process, which comprises the following operations:
a user selects a certain flow instance on a Web interface and initiates a flow progress checking task;
the background analyzes the uploaded process instance ID, an Activiti service interface is called to obtain the byte stream of the original process diagram file content, the file stream is written into a specified file, and the process instance ID is used as a file name;
searching an Activiti own data table ACT _ HI _ ACTINST according to the process instance ID, and acquiring information of the executed task node in the process;
retrieving an Activiti self-contained data table ACT _ RE _ PROC according to the process definition ID of executed task node information to obtain a process definition file;
circularly reading a node coordinate system label in the flow definition file, matching the node ID of the executed task node information, acquiring X, Y coordinate axis data in the coordinate label under each task node, and returning the node information and the picture file path to the front-end page;
the front end sets the picture file path as the background picture of the new page, circularly reads the coordinate information in the node, adds the label to display the node information, adds the click event, and processes the event according to the node ID by self definition.
Preferably, the executed task node information includes a process definition ID, a node ID, a task ID, a node name, a start time, and an end time.
Preferably, the front end sets the position attribute to a relative path mode.
The invention also provides an optimization system for the process progress check of the Activiti, which comprises the following steps:
the task initiating module is used for selecting a certain flow example on a Web interface by a user and initiating a flow progress checking task;
the original flow chart acquisition module is used for analyzing the uploaded flow example ID by a background, calling an Activiti service interface to acquire the original flow chart file content byte stream, writing the file stream into a specified file, and taking the flow example ID as a file name;
the executed node information acquisition module is used for retrieving an Activiti self-contained data table ACT _ HI _ ACTINST according to the process instance ID and acquiring the executed task node information under the process;
the flow definition file acquisition module is used for retrieving an Activiti self-contained data table ACT _ RE _ PROC according to the flow definition ID of the executed task node information to acquire a flow definition file;
the node information returning module is used for circularly reading the node coordinate system label in the flow definition file, matching the node ID of the executed task node information, acquiring X, Y coordinate axis data in the coordinate label under each task node, and returning the node information and the picture file path to the front-end page;
and the node event self-defining module is used for setting the picture file path as a background picture of a new page at the front end, circularly reading coordinate information in the node, adding a label to display node information, adding a click event and self-defining the processing event according to the node ID.
Preferably, the executed task node information includes a process definition ID, a node ID, a task ID, a node name, a start time, and an end time.
Preferably, the front end sets the position attribute to a relative path mode.
The invention also provides an optimizing device for the view of the process progress of the Activiti, which comprises the following components:
a memory for storing a computer program;
and the processor is used for executing the computer program to realize the optimization method aiming at the Activiti process progress check.
The invention also provides a readable storage medium for storing a computer program, wherein the computer program realizes the optimization method for the activti process progress check when being executed by a processor.
The effect provided in the summary of the invention is only the effect of the embodiment, not all the effects of the invention, and one of the above technical solutions has the following advantages or beneficial effects:
compared with the prior art, the method has the advantages that the Activiti flow data table is retrieved, the Activiti self-contained flow chart picture generation service is combined, the coordinate data of the task nodes in the flow configuration file are read, the native flow chart is displayed on the front end page in a background picture mode, the attribute information of the task nodes is dynamically positioned and displayed according to the returned node coordinate information, click events are bound, and the research personnel define transaction processing, so that more information is displayed in the Activiti flow chart in a simpler and faster mode, the functions of the task nodes in the Activiti flow chart are enriched, the problem that the existing Activiti self-contained flow chart is single in function is solved, and the research and development efficiency is greatly improved. Therefore, research personnel can quickly display the flow node information and bind the processing event without having higher drawing programming capability.
Drawings
Fig. 1 is a flowchart of an optimization method for view on activti process progress provided in an embodiment of the present invention;
fig. 2 is a block diagram of an optimization system for view on the progress of an activti process provided in the embodiment of the present invention.
Detailed Description
In order to clearly explain the technical features of the present invention, the following detailed description of the present invention is provided with reference to the accompanying drawings. The following disclosure provides many different embodiments, or examples, for implementing different features of the invention. To simplify the disclosure of the present invention, the components and arrangements of specific examples are described below. Furthermore, the present invention may repeat reference numerals and/or letters in the various examples. This repetition is for the purpose of simplicity and clarity and does not in itself dictate a relationship between the various embodiments and/or configurations discussed. It should be noted that the components illustrated in the figures are not necessarily drawn to scale. Descriptions of well-known components and processing techniques and procedures are omitted so as to not unnecessarily limit the invention.
The following describes in detail an optimization method and system for activti process progress review according to an embodiment of the present invention with reference to the accompanying drawings.
As shown in fig. 1, the present invention discloses an optimization method for activit process progress check, which comprises the following operations:
a user selects a certain flow instance on a Web interface and initiates a flow progress checking task;
the background analyzes the uploaded process instance ID, an Activiti service interface is called to obtain the byte stream of the original process diagram file content, the file stream is written into a specified file, and the process instance ID is used as a file name;
searching an Activiti own data table ACT _ HI _ ACTINST according to the process instance ID, and acquiring information of the executed task node in the process;
retrieving an Activiti self-contained data table ACT _ RE _ PROC according to the process definition ID of executed task node information to obtain a process definition file;
circularly reading a node coordinate system label in the flow definition file, matching the node ID of the executed task node information, acquiring X, Y coordinate axis data in the coordinate label under each task node, and returning the node information and the picture file path to the front-end page;
the front end sets the picture file path as the background picture of the new page, circularly reads the coordinate information in the node, adds the label to display the node information, adds the click event, and processes the event according to the node ID by self definition.
And (4) preparing a Java environment, and completing the downloading of the dependency packages of the Activiti and the matched components thereof in the Java environment.
And (4) putting the Activiti flow file into an application specified directory, starting the Java application, issuing and starting the Activiti flow, and calling the flow progress viewing service after the preparation work is finished.
And the user selects a certain flow instance in the Web interface and initiates a flow progress viewing task.
After receiving the request service, the back end analyzes the uploaded process instance ID, calls a process viewing service interface carried by Activiti, obtains the byte stream of the original process diagram file content, writes the file stream into the file under the appointed path in a covering manner, and takes the process instance ID as the file name.
And searching Activiti ACT _ HI _ ACTIINST with a data table, and acquiring information of executed Task nodes under the process, wherein the information comprises process definition ID, node ID, Task ID, node name, start time, end time and the like, and the filtering condition is process instance ID and ACT _ TYPE fuzzily contains Task characters so as to exclude non-Task node records. And searching an Activiti own data table ACT _ RE _ PROC according to the acquired flow definition ID to acquire a flow definition file.
And circularly reading the label BPMNShape in the flow definition file, reading the attribute value of bpmnElement, matching the node ID searched in the previous step, obtaining the coordinate label dc of each task node, namely X, Y coordinate axis data in Bounds, and returning the searched node information and the picture file path to the front-end page.
The front-end page pops up a new window after receiving the returned data, sets a background picture of a DIV of the new window as a returned flow picture path, sets a position attribute as a relative path mode, circularly reads coordinate information in a node, increases a span tag used for combining inline elements in a document, sets top and left attributes in a style in the span tag, displays node information including attributes such as personnel and time, binds a click event, and displays a data form by a research and development worker according to a node ID in a user-defined mode.
The embodiment of the invention searches an Activiti flow data table, combines an Activiti self-carried flow chart picture generation service, reads the coordinate data of task nodes in a flow configuration file, displays a primary flow chart in a background picture mode on a front end page, dynamically positions and displays the attribute information of the task nodes according to the returned node coordinate information, binds click events, and carries out self-defined transaction processing by research personnel, so that more information is displayed in the Activiti flow chart in a simpler, more convenient and faster mode, the task node functions in the Activiti flow chart are enriched, the problem of single function of the existing Activiti self-carried flow chart is solved, and the research and development efficiency is greatly improved. Therefore, research personnel can quickly display the flow node information and bind the processing event without having higher drawing programming capability.
As shown in fig. 2, the embodiment of the present invention further discloses an optimization system for activit process progress review, where the system includes:
the task initiating module is used for selecting a certain flow example on a Web interface by a user and initiating a flow progress checking task;
the original flow chart acquisition module is used for analyzing the uploaded flow example ID by a background, calling an Activiti service interface to acquire the original flow chart file content byte stream, writing the file stream into a specified file, and taking the flow example ID as a file name;
the executed node information acquisition module is used for retrieving an Activiti self-contained data table ACT _ HI _ ACTINST according to the process instance ID and acquiring the executed task node information under the process;
the flow definition file acquisition module is used for retrieving an Activiti self-contained data table ACT _ RE _ PROC according to the flow definition ID of the executed task node information to acquire a flow definition file;
the node information returning module is used for circularly reading the node coordinate system label in the flow definition file, matching the node ID of the executed task node information, acquiring X, Y coordinate axis data in the coordinate label under each task node, and returning the node information and the picture file path to the front-end page;
and the node event self-defining module is used for setting the picture file path as a background picture of a new page at the front end, circularly reading coordinate information in the node, adding a label to display node information, adding a click event and self-defining the processing event according to the node ID.
And the user selects a certain flow instance in the Web interface and initiates a flow progress viewing task.
After receiving the request service, the back end analyzes the uploaded process instance ID, calls a process viewing service interface carried by Activiti, obtains the byte stream of the original process diagram file content, writes the file stream into the file under the appointed path in a covering manner, and takes the process instance ID as the file name.
And searching Activiti ACT _ HI _ ACTIINST with a data table, and acquiring information of executed Task nodes under the process, wherein the information comprises process definition ID, node ID, Task ID, node name, start time, end time and the like, and the filtering condition is process instance ID and ACT _ TYPE fuzzily contains Task characters so as to exclude non-Task node records. And searching an Activiti own data table ACT _ RE _ PROC according to the acquired flow definition ID to acquire a flow definition file.
And circularly reading the label BPMNShape in the flow definition file, reading the attribute value of bpmnElement, matching the node ID searched in the previous step, obtaining the coordinate label dc of each task node, namely X, Y coordinate axis data in Bounds, and returning the searched node information and the picture file path to the front-end page.
The front-end page pops up a new window after receiving the returned data, sets a background picture of a DIV of the new window as a returned flow picture path, sets a position attribute as a relative path mode, circularly reads coordinate information in a node, increases a span tag used for combining inline elements in a document, sets top and left attributes in a style in the span tag, displays node information including attributes such as personnel and time, binds a click event, and displays a data form by a research and development worker according to a node ID in a user-defined mode.
The embodiment of the invention also discloses an optimization device for the view of the process progress of the Activiti, which comprises the following steps:
a memory for storing a computer program;
and the processor is used for executing the computer program to realize the optimization method aiming at the Activiti process progress check.
The embodiment of the invention also discloses a readable storage medium for storing the computer program, wherein the computer program realizes the optimization method aiming at the view of the Activiti process progress when being executed by the processor.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents and improvements made within the spirit and principle of the present invention are intended to be included within the scope of the present invention.
Claims (8)
1. An optimization method for an activti procedure progress view, the method comprising the operations of:
a user selects a certain flow instance on a Web interface and initiates a flow progress checking task;
the background analyzes the uploaded process instance ID, an Activiti service interface is called to obtain the byte stream of the original process diagram file content, the file stream is written into a specified file, and the process instance ID is used as a file name;
searching an Activiti own data table ACT _ HI _ ACTINST according to the process instance ID, and acquiring information of the executed task node in the process;
retrieving an Activiti self-contained data table ACT _ RE _ PROC according to the process definition ID of executed task node information to obtain a process definition file;
circularly reading a node coordinate system label in the flow definition file, matching the node ID of the executed task node information, acquiring X, Y coordinate axis data in the coordinate label under each task node, and returning the node information and the picture file path to the front-end page;
the front end sets the picture file path as the background picture of the new page, circularly reads the coordinate information in the node, adds the label to display the node information, adds the click event, and processes the event according to the node ID by self definition.
2. The optimization method for activit process progress review according to claim 1, wherein the executed task node information includes process definition ID, node ID, task ID, node name, start time, and end time.
3. The optimization method for activit process progress review according to claim 1, wherein the front end sets location attributes to relative path patterns.
4. An optimization system for activti procedure progress review, the system comprising:
the task initiating module is used for selecting a certain flow example on a Web interface by a user and initiating a flow progress checking task;
the original flow chart acquisition module is used for analyzing the uploaded flow example ID by a background, calling an Activiti service interface to acquire the original flow chart file content byte stream, writing the file stream into a specified file, and taking the flow example ID as a file name;
the executed node information acquisition module is used for retrieving an Activiti self-contained data table ACT _ HI _ ACTINST according to the process instance ID and acquiring the executed task node information under the process;
the flow definition file acquisition module is used for retrieving an Activiti self-contained data table ACT _ RE _ PROC according to the flow definition ID of the executed task node information to acquire a flow definition file;
the node information returning module is used for circularly reading the node coordinate system label in the flow definition file, matching the node ID of the executed task node information, acquiring X, Y coordinate axis data in the coordinate label under each task node, and returning the node information and the picture file path to the front-end page;
and the node event self-defining module is used for setting the picture file path as a background picture of a new page at the front end, circularly reading coordinate information in the node, adding a label to display node information, adding a click event and self-defining the processing event according to the node ID.
5. The optimization system for activit process progress review according to claim 4, wherein the executed task node information includes process definition ID, node ID, task ID, node name, start time, and end time.
6. The optimization system for activit process progress review according to claim 4, wherein the front end sets location attributes to relative path patterns.
7. An optimization device for activti flow progress review, comprising:
a memory for storing a computer program;
a processor for executing said computer program to implement the optimization method for activti procedure progress review according to any one of claims 1-3.
8. A readable storage medium for storing a computer program, wherein the computer program when executed by a processor implements the optimization method for activti flow progress review according to any one of claims 1-3.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010570173.2A CN111880871B (en) | 2020-06-21 | 2020-06-21 | Optimization method and system for viewing activti process progress |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010570173.2A CN111880871B (en) | 2020-06-21 | 2020-06-21 | Optimization method and system for viewing activti process progress |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111880871A true CN111880871A (en) | 2020-11-03 |
CN111880871B CN111880871B (en) | 2022-05-31 |
Family
ID=73156916
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010570173.2A Active CN111880871B (en) | 2020-06-21 | 2020-06-21 | Optimization method and system for viewing activti process progress |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111880871B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120047078A1 (en) * | 2010-08-18 | 2012-02-23 | Software Ag | System and method for ad-hoc modification of a process during runtime |
CN105989440A (en) * | 2015-02-12 | 2016-10-05 | 杨波 | Process customization processing method and workflow engine thereof |
CN109343924A (en) * | 2018-09-20 | 2019-02-15 | 北京锐安科技有限公司 | Activiti flow chart redraws method, apparatus, computer equipment and storage medium processed |
CN109542556A (en) * | 2018-10-30 | 2019-03-29 | 珠海伟诚科技股份有限公司 | A kind of process based on Activiti and list exchange method and system |
-
2020
- 2020-06-21 CN CN202010570173.2A patent/CN111880871B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120047078A1 (en) * | 2010-08-18 | 2012-02-23 | Software Ag | System and method for ad-hoc modification of a process during runtime |
CN105989440A (en) * | 2015-02-12 | 2016-10-05 | 杨波 | Process customization processing method and workflow engine thereof |
CN109343924A (en) * | 2018-09-20 | 2019-02-15 | 北京锐安科技有限公司 | Activiti flow chart redraws method, apparatus, computer equipment and storage medium processed |
CN109542556A (en) * | 2018-10-30 | 2019-03-29 | 珠海伟诚科技股份有限公司 | A kind of process based on Activiti and list exchange method and system |
Also Published As
Publication number | Publication date |
---|---|
CN111880871B (en) | 2022-05-31 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US6851089B1 (en) | Software application and associated methods for generating a software layer for structuring semistructured information | |
US7265755B2 (en) | Method and system for dynamic visualization of multi-dimensional data | |
JP4972254B2 (en) | Integrated method for creating refreshable web queries | |
CA2456771C (en) | Linking elements of a document to corresponding fields, queries and/or procedures in a database | |
WO2018049869A1 (en) | Device and method for displaying extension point in page | |
US9171132B1 (en) | Electronic note management system and user-interface | |
CN111367976B (en) | Method and device for exporting EXCEL file data based on JAVA reflection mechanism | |
US20050234894A1 (en) | Techniques for maintaining collections of generated web forms that are hyperlinked by subject | |
US20090217153A1 (en) | Document processing and management approach to editing a document in a mark up language environment using undoable commands | |
CN112579722B (en) | Automatic rapid image cutting method for high-customization remote sensing image | |
CN108762743B (en) | Data table operation code generation method and device | |
US20080288861A1 (en) | Generating a word-processing document from database content | |
US20100070491A1 (en) | Dynamic Contextual Table Headers | |
CN110347954B (en) | Complex Web application-oriented servitization method | |
KR20150028174A (en) | Application cooperation system, application cooperation method and application cooperation program | |
CN110334302B (en) | Complex Web application front-end runtime analysis method | |
CN114218906A (en) | Vue-based table data formatting component implementation method | |
CN111880871B (en) | Optimization method and system for viewing activti process progress | |
Robitaille et al. | Bridging program comprehension tools by design navigation | |
US8645105B1 (en) | Methods and systems for round-trip editing of component artwork | |
US20050171966A1 (en) | Relational to hierarchical tree data conversion technique | |
CN116467433A (en) | Knowledge graph visualization method, device, equipment and medium for multi-source data | |
US7831633B1 (en) | Methods and apparatus for implementing a custom driver for accessing a data source | |
CN114816408A (en) | Information processing method and device | |
CN112817590B (en) | Method for batch generation of page cards, storage medium and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |