CN109816754A - Creation method, display methods and the system and storage medium of flow chart - Google Patents

Creation method, display methods and the system and storage medium of flow chart Download PDF

Info

Publication number
CN109816754A
CN109816754A CN201811628232.6A CN201811628232A CN109816754A CN 109816754 A CN109816754 A CN 109816754A CN 201811628232 A CN201811628232 A CN 201811628232A CN 109816754 A CN109816754 A CN 109816754A
Authority
CN
China
Prior art keywords
node
flow chart
information
workflow system
creation method
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.)
Pending
Application number
CN201811628232.6A
Other languages
Chinese (zh)
Inventor
朱天祥
谢建军
董亚伟
郭佩华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Aisino Corp
Original Assignee
Aisino Corp
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Aisino Corp filed Critical Aisino Corp
Priority to CN201811628232.6A priority Critical patent/CN109816754A/en
Publication of CN109816754A publication Critical patent/CN109816754A/en
Pending legal-status Critical Current

Links

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The present invention relates to a kind of creation methods of flow chart characterized by comprising generates the bpmn template of json format, the bpmn template includes multiple standard nodes, and each standard nodes are packaged with corresponding attribute information;Information product process figure is indicated according to user, and the flow chart includes the final coordinate information of each selected standard nodes and the coordinate information of line;The flow chart is inserted into json according to instruction information is saved.The present invention also provides a kind of Workflow system, a kind of method showing history flow chart and a kind of computer readable storage mediums.User when front-end interface creation, deletion of node and line into json by adding, deleting related data, without complicated conversion when saving flow chart.Also, since the coordinate information of node and line is inserted into json when user saves flow chart, it, can be to avoid drawing tool xml to the conversion process of bpmn file when frequently dragging node, adjustment position in user's drawing course.

Description

Creation method, display methods and the system and storage medium of flow chart
Technical field
The present invention relates to a kind of creation sides of flow chart in workflow information management domain more particularly to Workflow system Method, the display methods of the history flow chart, a kind of Workflow system and a kind of computer readable storage medium.
Background technique
Workflow refers to the movable flow direction sequence of work item, including the working link in practical work process, step And program.In the conventional implementation of operation flow, many companies are by the way of paper list, transmitting of knocking off, level-one one Grade is signed after examination, under working efficiency is very low.
With the development of information technology, Workflow system has been had already appeared.In Workflow system flow chart generated, Flow graph construction is to be bound together with node configuration, needs to redeploy flow definition file when modifying node configuration, Efficiency is lower.
Therefore, how a kind of technical problem that the work process flow figure being easily modified is urgently to be resolved as this field is provided.
Summary of the invention
To overcome the problems in correlation technique, the present invention provides a kind of creation side of flow chart in Workflow system Method, the display methods of history flow chart, a kind of Workflow system and a kind of computer readable storage medium.
According to a first aspect of the embodiments of the present invention, a kind of creation method of flow chart in work system is provided, comprising:
The bpmn template of json format is generated, the bpmn template includes multiple standard nodes, and each standard nodes are sealed Equipped with corresponding attribute information;
Information product process figure is indicated according to user, and the flow chart includes the final coordinate of each selected standard nodes The coordinate information of information and line;
The flow chart is inserted into json according to instruction information is saved.
Preferably, the standard nodes include start node, end node, task node, judge node, branch node and Merge node.
Preferably, the attribute information includes nodename, node i d and node size.
Preferably, the flow chart further includes that transactor's relevant information of each selected node and/or node handle mode phase Close information.
Preferably, the creation method further include:
Save the xml document of third party library.
As the second aspect of the invention, a kind of method for showing history flow chart is provided, so-called history flow chart, just It is the stream that (can be in being carrying out, be also possible to be finished) is created in the creation method after process is initiated On the basis of journey figure, shows the practical path that executes or should execute, hide the path that is not carried out or should not execute, be primarily upon Point is how to show the execution route after judging node, wherein includes:
When showing the judgement node executed, process for using log selects to judge the Egress node of node;
When showing the judgement node being not carried out, Egress node is selected using the configuration information for judging node.
As the third aspect of the invention, a kind of Workflow system is provided, wherein the Workflow system includes:
Template generation module, the template generation module are used to generate the bpmn template of json format, the bpmn template Including multiple standard nodes, each standard nodes are packaged with corresponding attribute information;
Flow chart generation module, the flow chart generation module is used to indicate information product process figure according to user, described Flow chart includes the final coordinate information of each selected standard nodes and the coordinate information of line;
Preserving module, the preserving module are used to that the flow chart to be inserted into json according to preservation instruction information.
Preferably, the standard nodes include start node, end node, task node, judge node, branch node and Merge node.
Preferably, the attribute information includes nodename, node i d and node size.
Preferably, the flow chart further includes that transactor's relevant information of each selected node and/or node handle mode phase Close information.
Preferably, the preserving module is also used to save the xml document of third party library.
Preferably, the Workflow system further includes display module, and the display module is used to show history flow chart, and The display module be also used to show executed judgement node when, process for using log selection judge node Egress node, When showing the judgement node being not carried out, Egress node is selected using the configuration information for judging node.
As the fourth aspect of the invention, a kind of computer readable storage medium is provided, wherein described computer-readable For storage medium for storing executable program, the executable program is able to carry out above-mentioned creation method provided by the present invention.
The technical solution that the embodiment of the present invention provides can include the following benefits: in order to create Workflow system Flow chart, user need to interact by the front-end interface with Workflow system.In creation method provided by the present invention, After the interactive instruction for receiving user and front-end interface, the bpmn template of json format is generated in step s 110.Bpmn template In the standard nodes that are easily selected by a user be the selected standard nodes, in the step s 120, selected to generate stream according to user Cheng Tu.User saves process by adding when front-end interface creation, deletion of node and line into json, deleting related data Without complicated conversion when figure.Also, since the coordinate information of node and line is inserted into when user saves flow chart It, therefore, can be to avoid drawing tool xml to bpmn when frequently dragging node, adjustment position in user's drawing course in json The conversion process of file.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not It can the limitation present invention.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows and meets implementation of the invention Example, and be used to explain the principle of the present invention together with specification.
Fig. 1 is the process of the creation method of flow chart in a kind of Workflow system shown according to an exemplary embodiment Figure.
Fig. 2 is a kind of block diagram of Workflow system shown according to an exemplary embodiment.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment Described in embodiment do not represent all embodiments consistented with the present invention.On the contrary, they be only with it is such as appended The example of device and method being described in detail in claims, some aspects of the invention are consistent.
As one aspect of the present invention, a kind of creation method of Workflow system intermediate range figure is provided, wherein such as Fig. 1 institute Show, the creation method includes:
In step s 110, the bpmn template of json format is generated, the bpmn template includes multiple standard nodes, each Standard nodes are all packaged with corresponding attribute information;
In the step s 120, information product process figure is indicated according to user, the flow chart includes each selected standard The final coordinate information of node and the coordinate information of line;
In step s 130, the flow chart is inserted into json according to preservation instruction information.
For visioning procedure figure, user needs to interact by the front-end interface with Workflow system.In institute of the present invention In the creation method of offer, after the interactive instruction for receiving user and front-end interface, then json format is generated in step S110 Bpmn template.The standard nodes being easily selected by a user in bpmn template are the selected standard nodes, in the step s 120, root Product process figure is selected according to user.User when front-end interface creation, deletion of node and line into json by adding, deleting phase Data are closed, without complicated conversion when saving flow chart.Also, it is flowed since the coordinate information of node and line is saved in user It is inserted into json when journey figure, it therefore, can be to avoid drawing when frequently dragging node, adjustment position in user's drawing course Conversion process of the tool xml to bpmn file.
When using creation method visioning procedure figure provided by the present invention, it is able to achieve the wound of flow nodes and node line It builds, delete, modifying, arranging and the operation such as customized pattern.
In the present invention, particular provisions are not done to the concrete type of standard nodes.Any process all include start node and Therefore end node can set standard nodes for start node and end node.
Preferably, the standard nodes can also include task node, judge node, branch node and merge node.
Preferably, the attribute information includes nodename, node i d and node size.
Preferably, in step s 110, the window that the bpmn template of json format is stored in page javascript becomes In amount, as shown in table 1.
Table 1
As shown in table 1, flow chart description is divided into process and bpmndi:BPMNDiagram two parts by Bpmn, Middle process is used to storage node name, node i d, the information such as line outlet and Ingress node, bpmndi:BPMNDiagram master Want the coordinate of storage node and line.StartEvent and endEvent is start node and end node, and userTask is to appoint Business node, parallelGateway are branch's merge node, and exclusiveGateway is to judge node, sequenceFlow For line.As above described in, when user is by front-end interface creation, deletion of node and line, by case mechanism, according to section Point (or line) id is added into json immediately, is deleted related data, avoids to do complicated turn when saving flow chart in this way It changes.In view of user can frequently drag node in drawing course, adjust position, thus the coordinate information of node and line with When family saves flow chart in insertion json, avoid frequently changing.
Preferably, the flow chart further includes that transactor's relevant information of each selected node and/or node handle mode phase Close information.
In the present invention, the nodal information of each selected node, underlying attribute such as 2 institute of table are saved in the form of json character string Show.
Table 2
Cnodeid and cnodename in table 2, cnodetype distinguish memory node id, node name, node type, Checkusers records node transactor's relevant information, and nodeinfo record node handles mode relevant information.Process flow operation When, dynamic acquisition node configuration information, therefore modification process define can influence existing flow instance handle mode.
As a kind of preferred embodiment of the invention, the creation method further include:
Save the xml document of third party library.
When showing flowchart template, directly the xml document of third party library is imported.
Due to that can increase node newly when approver endorse and operates, system can modify bpmn file, increase new examination & approval Node, thus cannot third party library when directly process for using defines preservation xml document, but read work process is needed to draw Bpmn file currently in use is held up, and is converted into the xml document of third party library.
As the second aspect of the invention, a kind of method for showing history flow chart is provided, so-called history flow chart, just It is the stream that (can be in being carrying out, be also possible to be finished) is created in the creation method after process is initiated On the basis of journey figure, shows the practical path that executes or should execute, hide the path that is not carried out or should not execute, be primarily upon Point is how to show the execution route after judging node, wherein the method for the display history flow chart includes:
When showing the judgement node executed, process for using log selects to judge the Egress node of node;
When showing the judgement node being not carried out, Egress node is selected using the configuration information for judging node.
Since in visioning procedure figure, flowage structure and node configuration information (including judging node branch node) phase are divided From mode Stored Procedure figure, user judge that node configuration information can influence current running process and move towards by modification. Therefore, to judging that the processing of node is roughly divided into node and do not pass by and passed by two kinds of situations.
If judging, node is not passed by, uses the trend for the Rule of judgment flow for displaying that node configuration information saves.Judgement The main configuration information of node is as follows:
Target is array object, and inner element is the execution condition of Egress node, and underlying attribute includes: condition To execute condition, the specified variable name for needing to compare of conditioncol, rel is comparison operator, comparisoncol be than Compared with the r value of operator, condition can have multiple, and when there is multiple conditions, the logical connector for using logicalcol specified connects Narrow bars part, targetdefault specify whether the node is default egress, can hold when all nodes are all unsatisfactory for Rule of judgment Row default egress.When history flow chart is shown, system can take out the list variable of current process example, match confidence with node is judged Condition in breath is matched, and determines Egress node.
If judging, node has been passed by, and node configuration information cannot be used to determine Egress node, this is because if judgement section Point had been performed, and selected Egress node for a according to configuration information when execution, when user has modified the judgement item in flow definition After part, qualified Egress node is b, then the path that history flow chart is shown can not be inconsistent with the path actually executed before. Therefore the approval information of process for using log of the present invention determines the outlet pathway for judging node executed.Process log record Underlying attribute it is as shown in table 3.
Table 3
Node in process log includes the task that executed and current pending task, but does not include that judgement and branch close And node, the only data of its Egress node.If in process log including the child node for judging node, in process for using log Child node as Egress node.Specifically to consider following several typical cases:
There is the operation for retracting promoter in process, judges that multiple child nodes of node may be all performed in this case It crosses, exists simultaneously in process log, take finally handling for task as Egress node in this case;
If retracting promoter's operation, and promoter has modified form data, judges that the outlet pathway of node will be by new Form data outlet cannot use the data in process log, therefore there is the child node for judging node only in process log And Pending tasks be judge node it is subsequent when could usage log data;
Multiple Pending tasks can be existed simultaneously when there is branch node;
The child node of node is judged for branch or judgement, when taking the execution of the child node of branch or judgement in this case Between judge path.
As the third aspect of the invention, a kind of Workflow system is provided, wherein as shown in Fig. 2, the workflow system System includes template generation module 310, flow chart generation module 320 and preserving module 330.
Template generation module 310 is for executing step S110, that is, template generation module 310 is for generating json format Bpmn template, the bpmn template include multiple standard nodes, and each standard nodes are packaged with corresponding attribute information.
Flow chart generation module 320 is for executing step S320, that is, flow chart generation module 320 according to user for referring to Show that information product process figure, the flow chart include the final coordinate information of each selected standard nodes and the coordinate of line Information.
Preserving module 330 is for executing step S130, that is, preserving module 330 is used for will be described according to preservation instruction information Flow chart is inserted into json.
Workflow system provided by the present invention is used to execute the creation method of above-mentioned flow chart provided by the present invention.On The creation method of the flow chart is described in detail in text, which is not described herein again.
Preferably, the standard nodes include start node, end node, task node, judge node, branch node and Merge node.
Preferably, the attribute information includes nodename, node i d and node size.
Preferably, the flow chart further includes that transactor's relevant information of each selected node and/or node handle mode phase Close information.
Preferably, the preserving module is also used to save the xml document of third party library.
Workflow system provided by the present invention is also used to execute above-mentioned display history flow chart provided by the present invention Method, correspondingly, the Workflow system further include display module 340, and the display module is used to show history flow chart, and The display module be also used to show executed judgement node when, process for using log selection judge node Egress node, When showing the judgement node being not carried out, Egress node is selected using the configuration information for judging node.
As the fourth aspect of the invention, a kind of computer readable storage medium is provided, wherein described computer-readable For storage medium for storing executable program, the executable program is able to carry out above-mentioned creation method provided by the present invention.
Those skilled in the art will readily occur to other embodiment party of the invention after considering specification and the practice present invention Case.This application is intended to cover any variations, uses, or adaptations of the invention, these modifications, purposes or adaptability The common knowledge or usual skill in the art that variation follows general principle of the invention and do not invent including the present invention Art means.The description and examples are only to be considered as illustrative, and true scope and spirit of the invention are by following claim It points out.
It should be understood that the present invention is not limited to the precise structure already described above and shown in the accompanying drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present invention is limited only by the attached claims.

Claims (13)

1. the creation method of flow chart in a kind of Workflow system characterized by comprising
The bpmn template of json format is generated, the bpmn template includes multiple standard nodes, and each standard nodes are packaged with Corresponding attribute information;
Information product process figure is indicated according to user, and the flow chart includes the final coordinate information of each selected standard nodes And the coordinate information of line;
The flow chart is inserted into json according to instruction information is saved.
2. creation method according to claim 1, which is characterized in that the standard nodes include start node, terminate section Point, judges node, branch node and merge node at task node.
3. creation method according to claim 1, which is characterized in that the attribute information includes nodename, node i d And node size.
4. creation method as claimed in any of claims 1 to 3, which is characterized in that the flow chart further includes each The transactor's relevant information and/or node of selected node handle mode relevant information.
5. creation method as claimed in any of claims 1 to 3, which is characterized in that the creation method further include:
Save the xml document of third party library.
6. a kind of method for showing history flow chart, which is characterized in that the history flow chart is according in claim 2 to 5 The path that process corresponding to the flow chart that creation method described in any one is created generates after initiating shows history process The method of figure includes:
When showing the judgement node executed, process for using log selects to judge the Egress node of node;
When showing the judgement node being not carried out, Egress node is selected using the configuration information for judging node.
7. a kind of Workflow system, which is characterized in that the Workflow system includes:
Template generation module, the template generation module are used to generate the bpmn template of json format, and the bpmn template includes Multiple standard nodes, each standard nodes are packaged with corresponding attribute information;
Flow chart generation module, the flow chart generation module are used to indicate information product process figure, the process according to user Figure includes the final coordinate information of each selected standard nodes and the coordinate information of line;
Preserving module, the preserving module are used to that the flow chart to be inserted into json according to preservation instruction information.
8. Workflow system according to claim 7, which is characterized in that the standard nodes include start node, terminate Node, task node judge node, branch node and merge node.
9. Workflow system according to claim 7, which is characterized in that the attribute information includes nodename, node Id and node size.
10. the Workflow system according to any one of claim 7 to 9, which is characterized in that the flow chart further includes The transactor's relevant information and/or node of each selected node handle mode relevant information.
11. the Workflow system according to any one of claim 7 to 9, which is characterized in that the preserving module is also used In the xml document for saving third party library.
12. Workflow system according to claim 8 or claim 9, which is characterized in that the Workflow system further includes display mould Block, the display module is for showing history flow chart, and when the display module is also used to show the judgement node executed, When process for using log selection judges the judgement node that the Egress node of node, display are not carried out, the configuration for judging node is used Information selects Egress node.
13. a kind of computer readable storage medium, which is characterized in that the computer readable storage medium is executable for storing Program, the executable program are able to carry out creation method described in any one of claim 1 to 6.
CN201811628232.6A 2018-12-28 2018-12-28 Creation method, display methods and the system and storage medium of flow chart Pending CN109816754A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811628232.6A CN109816754A (en) 2018-12-28 2018-12-28 Creation method, display methods and the system and storage medium of flow chart

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811628232.6A CN109816754A (en) 2018-12-28 2018-12-28 Creation method, display methods and the system and storage medium of flow chart

Publications (1)

Publication Number Publication Date
CN109816754A true CN109816754A (en) 2019-05-28

Family

ID=66602747

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811628232.6A Pending CN109816754A (en) 2018-12-28 2018-12-28 Creation method, display methods and the system and storage medium of flow chart

Country Status (1)

Country Link
CN (1) CN109816754A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112597741A (en) * 2020-12-14 2021-04-02 北京中电普华信息技术有限公司 Data adaptation method and device
CN113391736A (en) * 2020-12-02 2021-09-14 腾讯科技(深圳)有限公司 Method and device for determining object connection line, storage medium and electronic equipment
CN113421316A (en) * 2021-06-30 2021-09-21 亿图软件(湖南)有限公司 Connection line path construction method and device, computer equipment and readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120062574A1 (en) * 2010-09-13 2012-03-15 International Business Machines Corporation Automated recognition of process modeling semantics in flow diagrams
CN106600238A (en) * 2016-12-26 2017-04-26 上海轻维软件有限公司 Network service fulfillment realization method based on Activiti flow engine and apparatus thereof
CN106845744A (en) * 2015-12-04 2017-06-13 北大医疗信息技术有限公司 The generation method and generating means of operation flow template
CN106897809A (en) * 2015-12-17 2017-06-27 北京奇虎科技有限公司 Workflow creation method, workflow designer and workflow system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120062574A1 (en) * 2010-09-13 2012-03-15 International Business Machines Corporation Automated recognition of process modeling semantics in flow diagrams
CN106845744A (en) * 2015-12-04 2017-06-13 北大医疗信息技术有限公司 The generation method and generating means of operation flow template
CN106897809A (en) * 2015-12-17 2017-06-27 北京奇虎科技有限公司 Workflow creation method, workflow designer and workflow system
CN106600238A (en) * 2016-12-26 2017-04-26 上海轻维软件有限公司 Network service fulfillment realization method based on Activiti flow engine and apparatus thereof

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
张泽江等: "基于SVG的产品测试工作流编辑器的设计与实现", 《中国科技信息》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113391736A (en) * 2020-12-02 2021-09-14 腾讯科技(深圳)有限公司 Method and device for determining object connection line, storage medium and electronic equipment
CN112597741A (en) * 2020-12-14 2021-04-02 北京中电普华信息技术有限公司 Data adaptation method and device
CN113421316A (en) * 2021-06-30 2021-09-21 亿图软件(湖南)有限公司 Connection line path construction method and device, computer equipment and readable storage medium

Similar Documents

Publication Publication Date Title
CN108345456A (en) Page code generation method, device, computer equipment and storage medium
US7814427B2 (en) Object model tree diagram
US7716253B2 (en) Centralized KPI framework systems and methods
KR101794373B1 (en) Temporary formatting and charting of selected data
US20140310320A1 (en) Creating mapping rules from meta data for data transformation utilizing visual editing
US9449405B2 (en) Systems and methods to display dependencies within a graph of grouped elements
US20080010597A1 (en) Error handling using declarative constraints in a graphical modeling tool
CN109816754A (en) Creation method, display methods and the system and storage medium of flow chart
JP2009508227A (en) Browse mode designer
CN109614424A (en) Page layout generation method, calculates equipment and medium at device
US20100325605A1 (en) Graphical modeling tool
US20090089299A1 (en) Declarative model editor generation
CN105808244A (en) Dynamic data visualized analysis tool based on workflows
CN107622080A (en) A kind of data processing method and equipment
CN106843820A (en) Code process method and apparatus
CN107423270B (en) Method for realizing real-time mutual conversion between on-line flow chart and code
US8230319B2 (en) Web-based visualization, refresh, and consumption of data-linked diagrams
US20170300461A1 (en) Representation of an Interactive Document as a Graph of Entities
US20100325587A1 (en) Incremental run-time layout composition
US20090307200A1 (en) System and Method For Providing Suppression of Zero, Null, Overflow, and Divide by Zero Values in Sparse Query Results
CN116245052A (en) Drawing migration method, device, equipment and storage medium
CN111078217A (en) Brain graph generation method, apparatus and computer-readable storage medium
US9250925B2 (en) Adding inheritance support to a computer programming language
US20090187881A1 (en) Difference log production for model merging
US20160299880A1 (en) Method and device for updating web page

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190528