CN112231011B - Activiti-based flow chart adjustment method and device, electronic equipment and storage medium - Google Patents

Activiti-based flow chart adjustment method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN112231011B
CN112231011B CN202011073053.8A CN202011073053A CN112231011B CN 112231011 B CN112231011 B CN 112231011B CN 202011073053 A CN202011073053 A CN 202011073053A CN 112231011 B CN112231011 B CN 112231011B
Authority
CN
China
Prior art keywords
flow
flow chart
node
application program
program interface
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.)
Active
Application number
CN202011073053.8A
Other languages
Chinese (zh)
Other versions
CN112231011A (en
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.)
Beijing Ruian Technology Co Ltd
Original Assignee
Beijing Ruian Technology Co Ltd
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 Beijing Ruian Technology Co Ltd filed Critical Beijing Ruian Technology Co Ltd
Priority to CN202011073053.8A priority Critical patent/CN112231011B/en
Publication of CN112231011A publication Critical patent/CN112231011A/en
Priority to PCT/CN2021/115535 priority patent/WO2022073401A1/en
Application granted granted Critical
Publication of CN112231011B publication Critical patent/CN112231011B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • G06F9/44526Plug-ins; Add-ons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/901Indexing; Data structures therefor; Storage structures
    • G06F16/9024Graphs; Linked lists
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/60Editing 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)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the invention discloses a activiti-based flow chart adjusting method, a activiti-based flow chart adjusting device, electronic equipment and a storage medium. The method comprises the following steps: receiving an adjustment request for adjusting the flow chart; based on the adjustment request, scanning a first application program interface, wherein class files corresponding to the flow chart are configured in the first application program interface; when detecting that the class file corresponding to the flow chart exists in the first application program interface, acquiring the flow chart based on the class file, and analyzing the flow chart; and adjusting the flow chart based on the adjustment request and the analysis result of the flow chart. The method and the system realize dynamic adjustment of the flow so as to meet the flexibility of the business flow and the effect of business requirements.

Description

Activiti-based flow chart adjustment method and device, electronic equipment and storage medium
Technical Field
Embodiments of the present invention relate to computer technologies, and in particular, to a method, an apparatus, an electronic device, and a storage medium for adjusting a flowchart based on activiti.
Background
With the development of the internet and activiti, activiti can draw a flow chart through a drag control, and complete the management of the flow. How to implement the adjustment of the flow chart with the change of the actual business scene is an important problem facing now.
In the prior art, after a flow chart of a service is designated and fixed, if a user needs to change service logic in the flow chart, for example, a service has 4 flows, i.e. A, B, C and D, and the execution sequence is A-B-C-D, if the flow chart is determined at this time, after the flow chart is determined, the user finds that the flow chart needs to return to the flow chart B after the execution of the flow chart D is completed, at this time, the user cannot change the flow chart because the flow chart is determined, so that the flexibility of the flow chart is greatly influenced, and the service requirement cannot be met.
Disclosure of Invention
The embodiment of the invention provides a activiti-based flow chart adjusting method, a activiti-based flow chart adjusting device, electronic equipment and a storage medium, so as to dynamically adjust a flow, and meet the flexibility of a business flow and the effect of business requirements.
In a first aspect, an embodiment of the present invention provides a method for adjusting a flowchart based on activiti, where the method includes:
receiving an adjustment request for adjusting the flow chart;
based on the adjustment request, scanning a first application program interface, wherein class files corresponding to the flow chart are configured in the first application program interface;
When detecting that the class file corresponding to the flow chart exists in the first application program interface, acquiring the flow chart based on the class file, and analyzing the flow chart;
and adjusting the flow chart based on the adjustment request and the analysis result of the flow chart.
In a second aspect, an embodiment of the present invention further provides a flowchart adjusting device based on activiti, where the device includes:
an adjustment request receiving module, configured to receive an adjustment request for adjusting the flowchart;
The first scanning module is used for scanning a first application program interface based on the adjustment request, wherein class files corresponding to the flow chart are configured in the first application program interface;
the first analysis module is used for acquiring the flow chart based on the class file when the class file corresponding to the flow chart is detected to be in the first application program interface, and analyzing the flow chart;
And the adjusting module is used for adjusting the flow chart based on the adjusting request and the analysis result of the flow chart.
In a third aspect, an embodiment of the present invention further provides an electronic device, including:
One or more processors;
A storage means for storing one or more programs;
The one or more programs, when executed by the one or more processors, cause the one or more processors to implement the activiti-based flowchart tuning method as described in any one of the embodiments of the present invention.
In a fourth aspect, embodiments of the present invention also provide a storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform the activiti-based flowchart-adjustment method of any one of the embodiments of the present invention.
According to the technical scheme, the first application program interface is scanned based on the adjustment request by receiving the adjustment request for adjusting the flow chart, wherein class files corresponding to the flow chart are configured in the first application program interface, the class files of the flow chart are pre-configured in the first application program interface so as to call the flow chart based on the class files, and therefore the problem that the flow chart cannot be called because the class files corresponding to the flow chart are not available in the first application program interface in the prior art is solved, and further the flow chart cannot be dynamically adjusted is solved. When the class file corresponding to the flow chart is detected in the first application program interface, the flow chart is acquired based on the class file, the flow chart is analyzed, and based on the adjustment request and the analysis result of the flow chart, the flow chart is adjusted, so that the dynamic adjustment of the determined flow chart is realized, and the flexibility of the business flow and the effect of business requirements are met.
Drawings
FIG. 1 is a flow chart of a activiti-based flow chart adjustment method in accordance with a first embodiment of the present invention;
FIG. 2 is a flowchart of a activiti-based flowchart tuning method in a second embodiment of the present invention;
FIG. 3 is a schematic structural diagram of a flow chart adjusting device based on activiti in a fourth embodiment of the present invention;
Fig. 4 is a schematic structural diagram of an electronic device in a fifth embodiment of the present invention.
Detailed Description
The invention is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting thereof. It should be further noted that, for convenience of description, only some, but not all of the structures related to the present invention are shown in the drawings.
Example 1
Fig. 1 is a flowchart of a activiti-based flowchart adjusting method according to an embodiment of the present invention, where the method may be performed by a activiti-based flowchart adjusting device, the activiti-based flowchart adjusting device may be implemented by software and/or hardware, and the activiti-based flowchart adjusting device may be configured on an electronic computing device, and the method specifically includes the following steps:
S110, receiving an adjustment request for adjusting the flow chart.
The adjustment request may be, for example, a request to adjust the flow chart.
Alternatively, the adjustment request may be: at least one of splitting any flow node in the flow chart, adding a flow node in the flow chart, backing from any current flow node to a last flow node of the current flow node, or jumping from any current flow node to other flow nodes.
For example, splitting any flow node in a flow chart may be dividing any flow node in the flow chart into a plurality of flow nodes. For example, for any flow node a in the flow chart, it may be split into flow node A1 and flow node A2.
Adding a flow node in a flow chart may be adding a flow node before any flow node in the flow chart and/or adding a flow node after any flow node. For example, a flow chart has 4 flow nodes, namely, a flow node a, a flow node B, a flow node C and a flow node D, and for any one flow node a, a flow node E may be added before it, a flow node F may be added after it, or a flow node E may be added before it, and a flow node F may be added after it.
The last flow node to fall back from any current flow node to the current flow node may be, for any current flow node, from the current flow node to its last flow node. For example, a flow chart has 4 flow nodes, namely, flow node a, flow node B, flow node C, and flow node D, and the flow logic between the flow nodes is: the flow node A, the flow node B, the flow node C and the flow node D are sequentially executed, namely, the execution sequence is the flow node A-the flow node B-the flow node C-the flow node D, and for any flow node B, after the flow node B is executed, the flow node A can be executed in a rollback mode.
It should be noted that, for the first flow node in the flow chart, it may fall back according to a preset rule. The preset rule here may be to roll back the flow node to itself, for example, if the flow node a in the above example is taken as the current flow node, the flow node a may be rolled back to execute itself after being executed. Of course, other preset rules may be used herein, and specific preset rules may be set according to the user's requirement, which is not limited herein.
The jump from any current flow node to any other flow node may be for any current flow node in the flow chart, from which the jump to any other flow node may be made. For example, a flow chart has 4 flow nodes, namely, flow node a, flow node B, flow node C, and flow node D, and the flow logic between the flow nodes is: the flow node A, the flow node B, the flow node C and the flow node D are sequentially executed, namely, the execution sequence is the flow node A-the flow node B-the flow node C-the flow node D, and for any flow node B, after the flow node B is executed, the flow node B can be directly jumped to the execution flow node D.
It should be noted that the foregoing only exemplifies some adjustment requests, and may also have other adjustment requests, where the adjustment requests may be added according to the needs of the user, and are not specifically exemplified herein.
S120, based on the adjustment request, scanning a first application program interface, wherein class files corresponding to the flow chart are configured in the first application program interface.
The first application program interface may be an interface for invoking a flow chart, for example.
It should be noted that, the class file corresponding to the flowchart is configured in the first application program interface. After receiving the adjustment request, the system may scan the files in the first application program interface.
The class files corresponding to the flow chart are pre-configured in the first application program interface, so that the class files can be scanned when the first application program interface is scanned later, and the flow chart is called based on the class files, and the problem that the flow chart cannot be called because the class files corresponding to the flow chart are not available in the first application program interface in the prior art is solved, and further the problem that the flow chart cannot be dynamically adjusted is solved.
And S130, acquiring the flow chart based on the class file when the class file corresponding to the flow chart is detected in the first application program interface, and analyzing the flow chart.
The method and the device have the advantages that after the first application program interface is scanned, all files in the first application program interface can be scanned, when the class files corresponding to the flow chart are determined to be scanned, the flow chart can be called according to the class files, so that the effect that the flow chart can be obtained after the flow chart is determined so as to dynamically adjust the flow chart later is achieved, and the problem that the flow chart cannot be obtained after the flow chart is determined and the flow chart is dynamically adjusted in the prior art is solved.
When the flow chart is obtained, the flow chart can be analyzed, and the specific analysis can be that the flow chart is analyzed by utilizing an analysis algorithm, analysis software and the like, so as to obtain flow logic between each flow node and each flow node in the flow chart.
It should be noted that, the specific manner of analyzing the flowchart is not limited herein, and any manner of analyzing the flowchart belongs to the protection scope of the embodiments of the present invention. In addition, the manner in which the flowcharts are parsed belongs to the prior art, and will not be described in detail herein.
And S140, adjusting the flow chart based on the adjustment request and the analysis result of the flow chart.
Illustratively, the parsing result may be a result obtained after parsing the flowchart. Alternatively, the parsing result may be each flow node in the flow chart, and flow logic between each flow node.
According to the adjustment request and the analysis result of the flow chart, the flow chart can be dynamically adjusted, so that the adjusted flow chart is obtained, and the dynamic adjustment of the determined flow chart is realized, so that the flexibility of the business flow and the effect of business requirements are met.
Optionally, the adjusting the flowchart based on the adjustment request and the analysis result of the flowchart may specifically be: based on the adjustment request, adjusting the flow logic among the flow nodes to obtain an adjusted flow logic; and generating an adjusted flow chart based on the adjusted flow logic and each flow node.
The initial flow logic between the flow nodes can be adjusted according to the adjustment request, so as to obtain adjusted flow logic, and an adjusted flow chart is generated according to the adjusted flow logic and the flow nodes.
Specifically, for example, a flow chart has 4 flow nodes, namely, a flow node a, a flow node B, a flow node C and a flow node D, and initial flow logic between the flow nodes is: the flow node A, the flow node B, the flow node C and the flow node D are sequentially executed, namely, the execution sequence is the flow node A-the flow node B-the flow node C-the flow node D, the flow node B is jumped to after the adjustment request is the flow node D is executed, the initial flow logic is adjusted, and the adjusted flow logic is obtained as follows: after the flow node A, the flow node B, the flow node C and the flow node D are sequentially executed, the flow node D is jumped to the flow node B, and then the flow node B, the flow node C and the flow node D are sequentially executed. Then an adjusted flow chart may be formed based on the adjusted flow logic and the flow nodes. Dynamic adjustment of the flow chart is realized, and the service requirement is met.
According to the technical scheme, the first application program interface is scanned based on the adjustment request by receiving the adjustment request for adjusting the flow chart, wherein class files corresponding to the flow chart are configured in the first application program interface, the class files of the flow chart are pre-configured in the first application program interface so as to call the flow chart based on the class files, and therefore the problem that the flow chart cannot be called because the class files corresponding to the flow chart are not available in the first application program interface in the prior art is solved, and further the flow chart cannot be dynamically adjusted is solved. When the class file corresponding to the flow chart is detected in the first application program interface, the flow chart is acquired based on the class file, the flow chart is analyzed, and based on the adjustment request and the analysis result of the flow chart, the flow chart is adjusted, so that the dynamic adjustment of the determined flow chart is realized, and the flexibility of the business flow and the effect of business requirements are met.
Example two
Fig. 2 is a flowchart of a method for adjusting a flow chart based on activiti according to a second embodiment of the present invention, and the embodiments of the present invention may be combined with each of the alternatives in the foregoing embodiments. In an embodiment of the present invention, optionally, before the receiving the adjustment request for adjusting the flowchart, the method further includes: receiving a generation request for generating a flow chart; scanning a second application program interface based on the generation request; and generating a flow chart based on the scanning result of the second application program interface and the generation request.
As shown in fig. 2, the method in the embodiment of the present invention specifically includes the following steps:
s210, receiving a generation request for generating a flow chart.
For example, the generation request may be a request to generate a flow chart.
Optionally, each flow node in the flow chart to be generated and flow logic in each flow node are included in the generation request. So that the flow chart is subsequently generated based on the flow nodes in the flow chart to be generated and the flow logic in the flow nodes.
S220, scanning the second application program interface based on the generation request.
The second application program interface may be, for example, an interface for invoking a file or software for generating a flow chart.
The second application program interface is configured with a generation file preset generator call file for generating the flowchart. Upon receiving the generation request, the system may scan the files in the second application program interface.
A preset generator calling file of a generation file of the generation flow chart is preconfigured in the second application program interface so that the preset generator calling file can be scanned when the second application program interface is scanned later, the generation file can be generated based on the preset generator calling file, and the flow chart is generated based on the generation file.
S230, generating a flow chart based on the scanning result of the second application program interface and the generation request.
The scan result may be, for example, a result obtained after scanning the second application program interface. Alternatively, the scan results herein may include files or software that may generate a flowchart.
The flow chart may be generated using the scan results of the second application program interface according to the generation request.
Optionally, the generating a flowchart based on the scan result and the generating request of the second application program interface may specifically be: when a preset generator calling file with a generating file for generating a flow chart in the second application program interface is detected, generating the generating file based on the preset generator calling file; the flow chart is obtained based on the generation file and the generation request.
The preset generator call file may be a file that calls a preset generator, for example. The preset generator may be a pre-extended custom activiti generated file generator.
It should be noted that, the pre-extended custom activiti generated file generator may be a custom activiti generated file generator that is extended in advance by using a code or the like.
The generation file may be a file that may generate a flow chart.
After the second application program interface is scanned, a preset generator calling file for generating the generating file of the flow chart can be scanned, a preset generator can be called based on the preset generator calling file, and the generating file of the flow chart to be generated can be generated based on the preset generator; according to the generation file and the flow logic between each flow node and each flow node in the generation request of the generation flow chart, the flow chart corresponding to the generation request can be automatically generated.
Therefore, the flow chart can be automatically generated independent of other plug-ins, and the decoupling effect of the business and the self-contained drawing page or plug-in of activiti is realized. The problem that in the prior art, the drawing efficiency of the flow chart is low because the drawing page or the plug-in is required to be called activiti and then the user manually draws the flow chart by using the plug-in or the drawing page, and errors can occur in drawing depending on the drawing page or the plug-in which is activiti is solved, and in the prior art, the mode of generating the flow chart requires the user to have high professional capability.
S240, receiving an adjustment request for adjusting the flow chart.
S250, based on the adjustment request, scanning a first application program interface, wherein class files corresponding to the flow chart are configured in the first application program interface.
And S260, when the class file corresponding to the flow chart is detected in the first application program interface, acquiring the flow chart based on the class file, and analyzing the flow chart.
S270, adjusting the flow chart based on the adjustment request and the analysis result of the flow chart.
It should be noted that, the steps S210 to S270 are steps for generating a flowchart, determining the flowchart, and finding an execution method for adjusting the flowchart. The adjustment may be preset during the process of generating the flowchart, so that the subsequent steps of adjusting the generated flowchart according to the adjustment request in S240-S270 need not be executed.
Specifically, the generating request of the generating flow chart may further include a preset adjustment request; the preset adjustment request includes: at least one of splitting any flow node in the flow chart, adding a flow node in the flow chart, backing from any current flow node to a last flow node of the current flow node, or jumping from any current flow node to other flow nodes.
Correspondingly, the flowchart may be obtained according to the generated file and the generation request, which specifically may be: based on the generated file, connecting each flow in the flow chart according to flow logic among the flow nodes, and based on a preset adjustment request, predefining operations of splitting the flow node, adding the flow node, backing to the last flow node or jumping to other flow nodes at the flow node corresponding to the preset adjustment request, so as to generate the flow chart.
Illustratively, based on the generated file, according to the flow logic between the flow nodes, each flow node in the flow chart is connected to predefine, based on the preset adjustment request, an operation of performing preset adjustment on the flow node at the flow node corresponding to the preset adjustment request, and then the flow chart is generated.
For example, the generation request includes 4 flow nodes, namely, a flow node a, a flow node B, a flow node C and a flow node D, and the flow logic between the flow nodes is as follows: the flow node A, the flow node B, the flow node C and the flow node D are sequentially executed, namely, the execution sequence is the flow node A-the flow node B-the flow node C-the flow node D, and the flow node A, the flow node B, the flow node C and the flow node D are connected according to the flow logic. If the preset adjustment request is to add the flow node E after the flow node a, predefining an operation of adding the flow node E after the flow node a at the flow node a corresponding to the preset adjustment request, and generating a final flow chart according to the operation, wherein each flow node in the generated final flow chart is as follows: the flow logic among the flow nodes is as follows: the flow node A, the flow node E, the flow node B, the flow node C and the flow node D are sequentially executed, namely, the execution sequence is the flow node A-the flow node E-the flow node B-the flow node C-the flow node D.
If the adjustment request is determined in advance, the flow chart to be generated can be adjusted in advance, and then the adjusted flow chart is directly generated according to the adjustment request in advance, so that the steps of S240-S270 are not needed to be executed afterwards.
According to the technical scheme, the generation request for generating the flow chart is received, the second application program interface is scanned based on the generation request, and the preset generator can be called according to the preset generator calling file which is provided with the preset generator calling file for generating the generation file of the flow chart in the second application program interface, so that the generation file of the flow chart to be generated can be generated based on the preset generator, and the flow chart can be generated according to the generation file and the generation request. Therefore, the flow chart can be automatically generated independent of other plug-ins, and the decoupling effect of the business and the self-contained drawing page or plug-in of activiti is realized. The problem that in the prior art, the drawing efficiency of the flow chart is low because the drawing page or the plug-in is required to be called activiti and then the user manually draws the flow chart by using the plug-in or the drawing page, and errors can occur in drawing depending on the drawing page or the plug-in which is activiti is solved, and in the prior art, the mode of generating the flow chart requires the user to have high professional capability.
Example III
In the embodiment of the present invention, the improvement of other functions is realized by activiti, specifically, in the prior art, if a service table of a certain system is to be acquired, since activiti in the prior art has a service table of its own structure, each system also has a service table of its own structure. When a service table of a certain system is acquired based on activiti, a service table of a structure form of activiti is fed back instead of the service table of the system.
Specifically, for example, for company a, it has its own business table in which the names, sexes, contact addresses, and home addresses of all employees in the company are recorded. Activiti also has its own business form, and the names, sexes, and contact addresses of all employees in company A are recorded in the business form of Activiti's own business form. When the business table of the company a is to be acquired based on the activity, the business table of the structure form of the activity is fed back, namely the fed back business table only has the names, the sexes and the contact modes of all employees in the company a, but does not have the home addresses of all employees. The service table fed back in this way is not the service table of the self structural form of company A, and the user requirements cannot be met.
The embodiment of the invention improves the problems, and can obtain the business table of the company A in the self structural form by accessing the action. The specific embodiments are as follows:
And customizing a user hosting component, defining a user group relation management strategy by using the user hosting component, and expanding the query of the Activiti on the business table.
The user group relation management policy may be defined in such a way that when the service table is queried based on the activity, the service table of the structure form of the activity itself is linked to the service table of the structure form of the target to be queried, then the service table of the structure form of the target to be queried is fed back to the user, and the service table is displayed on a display interface of the user, so that the dependency of the activity on the user table is replaced in a display manner.
Specifically, the service table of the structure form of the action can be self-defined and linked to the service table of the structure form of the target to be queried. If company a is involved, the business table of its own structure records the names, sexes, contact addresses and home addresses of all employees in the company. The names, sexes and contact modes of all employees in company A are recorded in a business table of the structure form of the Activiti. When the business table of the company A is to be obtained based on the activity, the business table of the structure form of the activity can be linked to the business table of the structure form of the company A, and the business table of the structure form of the company A is displayed, namely, names, sexes, contact ways and home addresses of all staff in the company are displayed, so that the dependence of the activity on the user table is replaced in a display mode, and the effect of meeting the user requirement is achieved.
It should be noted that, the service table in the embodiment of the present invention may be replaced by another type of table.
According to the technical scheme, the service table of the structure form of the action is linked to the service table of the structure form of the target to be inquired through self definition, so that if the service table of the structure form of the target is required to be inquired, the service table of the structure form of the target can be obtained, the service table of the structure form of the action is not obtained, the dependence of the action on the user table is replaced in a display mode, and the effect of meeting the user requirement is achieved.
Example IV
Fig. 3 is a schematic structural diagram of a flow chart adjustment device based on activiti according to a fourth embodiment of the present invention, as shown in fig. 3, the device includes: the device comprises an adjustment request receiving module 31, a first scanning module 32, a first analyzing module 33 and an adjustment module 34.
Wherein, the adjustment request receiving module 31 is configured to receive an adjustment request for adjusting the flowchart;
a first scanning module 32, configured to scan a first application program interface based on the adjustment request, where the first application program interface is configured with a class file corresponding to the flowchart;
The first parsing module 33 is configured to, when detecting that the first application program interface has a class file corresponding to the flowchart, obtain the flowchart based on the class file, and parse the flowchart;
And the adjustment module 34 is configured to adjust the flowchart based on the adjustment request and the analysis result of the flowchart.
Optionally, the analysis result includes: each flow node in the flow chart, and flow logic between each flow node.
Based on the technical solutions of the foregoing embodiments, the adjustment module 34 is specifically configured to:
Based on the adjustment request, adjusting the flow logic among the flow nodes to obtain an adjusted flow logic; and generating an adjusted flow chart based on the adjusted flow logic and each flow node.
Optionally, the adjustment request includes: at least one of splitting any flow node in the flow chart, adding a flow node in the flow chart, backing from any current flow node to a last flow node of the current flow node, or jumping from any current flow node to other flow nodes.
On the basis of the technical solution of the foregoing embodiment, the apparatus further includes:
A generation request receiving module, configured to receive a generation request for generating the flowchart;
A second scanning module for scanning a second application program interface based on the generation request;
And the flow chart generating module is used for generating the flow chart based on the scanning result of the second application program interface and the generating request.
Optionally, a preset generator calling file for generating the generating file of the flow chart is configured in the second application program interface.
On the basis of the technical solution of the above embodiment, the flowchart generating module includes:
a generation file generating unit, configured to generate, when a preset generator call file having a generation file of a generation flowchart in the second application program interface is detected, the generation file based on the preset generator call file;
and the flow chart generating unit is used for acquiring the flow chart based on the generated file and the generation request.
Optionally, the generating request includes: flow logic between each flow node and each flow node of the flow chart.
Based on the technical solution of the foregoing embodiment, the flowchart generating unit is specifically configured to:
And connecting all the processes in the flow chart according to the flow logic among all the process nodes based on the generated file, and generating the flow chart.
Optionally, the generating request further includes: presetting an adjustment request; the preset adjustment request includes: at least one of splitting any flow node in the flow chart, adding a flow node in the flow chart, backing from any current flow node to a last flow node of the current flow node, or jumping from any current flow node to other flow nodes.
On the basis of the technical solution of the foregoing embodiment, the flowchart generating unit may be further specifically configured to:
and based on the generated file, connecting each flow in the flow chart according to flow logic among the flow nodes, and based on the preset adjustment request, predefining operations of splitting the flow node, adding the flow node, backing to the last flow node or jumping to other flow nodes at the flow node corresponding to the preset adjustment request, so as to generate the flow chart.
The activiti-based flow chart adjusting device provided by the embodiment of the invention can execute the activiti-based flow chart adjusting method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the executing method.
Example five
Fig. 4 is a schematic structural diagram of an electronic device according to a fifth embodiment of the present invention, and as shown in fig. 4, the electronic device includes a processor 70, a memory 71, an input device 72, and an output device 73; the number of processors 70 in the electronic device may be one or more, one processor 70 being taken as an example in fig. 4; the processor 70, the memory 71, the input means 72 and the output means 73 in the electronic device may be connected by a bus or by other means, in fig. 4 by way of example.
The memory 71 is a computer readable storage medium, and may be used to store a software program, a computer executable program, and modules, such as program instructions/modules (e.g., the adjustment request receiving module 31, the first scanning module 32, the first parsing module 33, and the adjustment module 34) corresponding to the activiti-based flowchart adjustment method in the embodiment of the present invention. The processor 70 executes various functional applications of the electronic device and data processing by running software programs, instructions and modules stored in the memory 71, i.e. implements the above-described activiti-based flowchart-adjustment method.
The memory 71 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, at least one application program required for functions; the storage data area may store data created according to the use of the terminal, etc. In addition, memory 71 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid-state storage device. In some examples, memory 71 may further include memory remotely located relative to processor 70, which may be connected to the electronic device via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 72 may be used to receive entered numeric or character information and to generate key signal inputs related to user settings and function control of the electronic device. The output means 73 may comprise a display device such as a display screen.
Example six
A sixth embodiment of the present invention also provides a storage medium containing computer-executable instructions for performing a activiti-based flowchart-adjustment method when executed by a computer processor.
Of course, the storage medium containing the computer executable instructions provided in the embodiments of the present invention is not limited to the method operations described above, but may also perform the related operations in the activiti-based flowchart adjustment method provided in any embodiment of the present invention.
From the above description of embodiments, it will be clear to a person skilled in the art that the present invention may be implemented by means of software and necessary general purpose hardware, but of course also by means of hardware, although in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a computer readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a FLASH Memory (FLASH), a hard disk, or an optical disk of a computer, etc., and include several instructions for causing a computer electronic device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the embodiments of the present invention.
It should be noted that, in the embodiment of the flow chart adjustment device based on activiti, each unit and module included are only divided according to the functional logic, but are not limited to the above-mentioned division, so long as the corresponding functions can be implemented; in addition, the specific names of the functional units are also only for distinguishing from each other, and are not used to limit the protection scope of the present invention.
Note that the above is only a preferred embodiment of the present invention and the technical principle applied. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, while the invention has been described in connection with the above embodiments, the invention is not limited to the embodiments, but may be embodied in many other equivalent forms without departing from the spirit or scope of the invention, which is set forth in the following claims.

Claims (10)

1. A activiti-based flow chart adjustment method, comprising:
receiving an adjustment request for adjusting the flow chart;
Based on the adjustment request, scanning a first application program interface, wherein class files corresponding to the flow chart are configured in the first application program interface, and the first application program interface is an interface for calling the flow chart;
When detecting that the class file corresponding to the flow chart exists in the first application program interface, acquiring the flow chart based on the class file, and analyzing the flow chart;
and adjusting the flow chart based on the adjustment request and the analysis result of the flow chart.
2. The method of claim 1, wherein the parsing result comprises: each flow node in the flow chart and flow logic between each flow node;
the adjusting the flowchart based on the adjustment request and the analysis result of the flowchart includes:
based on the adjustment request, adjusting the flow logic among the flow nodes to obtain an adjusted flow logic;
and generating an adjusted flow chart based on the adjusted flow logic and each flow node.
3. The method according to claim 1 or 2, wherein the adjustment request comprises: at least one of splitting any flow node in the flow chart, adding a flow node in the flow chart, backing from any current flow node to a last flow node of the current flow node, or jumping from any current flow node to other flow nodes.
4. The method of claim 1, wherein prior to the receiving the adjustment request to adjust the flow chart, the method further comprises:
Receiving a generation request for generating the flow chart;
scanning a second application program interface based on the generation request;
And generating the flow chart based on the scanning result of the second application program interface and the generation request.
5. The method of claim 4, wherein the second application program interface has a preset generator call file configured therein to generate a generation file of the flowchart;
The generating the flowchart based on the scan result of the second application program interface and the generation request includes:
when a preset generator calling file with a generation file for generating a flow chart in the second application program interface is detected, generating the generation file based on the preset generator calling file;
and acquiring the flow chart based on the generated file and the generation request.
6. The method according to claim 5, wherein the generating the request includes: flow logic between each flow node and each flow node of the flow chart;
the step of obtaining the flow chart based on the generated file and the generation request comprises the following steps:
And connecting all the processes in the flow chart according to the flow logic among all the process nodes based on the generated file, and generating the flow chart.
7. The method of claim 5, wherein the generating the request further comprises: presetting an adjustment request; the preset adjustment request includes: splitting any flow node in the flow chart, adding a flow node in the flow chart, backing from any current flow node to a last flow node of the current flow node, or jumping from any current flow node to other flow nodes;
the step of obtaining the flow chart based on the generated file and the generation request comprises the following steps:
and based on the generated file, connecting each flow in the flow chart according to flow logic among the flow nodes, and based on the preset adjustment request, predefining operations of splitting the flow node, adding the flow node, backing to the last flow node or jumping to other flow nodes at the flow node corresponding to the preset adjustment request, so as to generate the flow chart.
8. A activiti-based flow chart adjustment device, comprising:
an adjustment request receiving module, configured to receive an adjustment request for adjusting the flowchart;
The first scanning module is used for scanning a first application program interface based on the adjustment request, wherein class files corresponding to the flow chart are configured in the first application program interface;
the first analysis module is used for acquiring the flow chart based on the class file when the class file corresponding to the flow chart is detected to be in the first application program interface, and analyzing the flow chart;
And the adjusting module is used for adjusting the flow chart based on the adjusting request and the analysis result of the flow chart.
9. An electronic device, the electronic device comprising:
One or more processors;
A storage means for storing one or more programs;
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the activiti-based flowchart tuning method of any one of claims 1-7.
10. A storage medium containing computer executable instructions which, when executed by a computer processor, are for performing the activiti-based flowchart conditioning method of any one of claims 1-7.
CN202011073053.8A 2020-10-09 2020-10-09 Activiti-based flow chart adjustment method and device, electronic equipment and storage medium Active CN112231011B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202011073053.8A CN112231011B (en) 2020-10-09 2020-10-09 Activiti-based flow chart adjustment method and device, electronic equipment and storage medium
PCT/CN2021/115535 WO2022073401A1 (en) 2020-10-09 2021-08-31 Activiti-based flow chart adjustment method and apparatus, electronic device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011073053.8A CN112231011B (en) 2020-10-09 2020-10-09 Activiti-based flow chart adjustment method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112231011A CN112231011A (en) 2021-01-15
CN112231011B true CN112231011B (en) 2024-05-10

Family

ID=74121160

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011073053.8A Active CN112231011B (en) 2020-10-09 2020-10-09 Activiti-based flow chart adjustment method and device, electronic equipment and storage medium

Country Status (2)

Country Link
CN (1) CN112231011B (en)
WO (1) WO2022073401A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112231011B (en) * 2020-10-09 2024-05-10 北京锐安科技有限公司 Activiti-based flow chart adjustment method and device, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102376036A (en) * 2010-08-18 2012-03-14 软件股份公司 System and method for ad-hoc modification of a process during runtime
CN106600238A (en) * 2016-12-26 2017-04-26 上海轻维软件有限公司 Network service fulfillment realization method based on Activiti flow engine and apparatus thereof
CN111522534A (en) * 2020-03-25 2020-08-11 中国平安人寿保险股份有限公司 Flow chart visualization method and device and computer readable storage medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8887152B1 (en) * 2011-11-04 2014-11-11 Trend Micro, Inc. Android application virtual environment
US9990411B2 (en) * 2015-12-03 2018-06-05 Successfactors, Inc. Platform for visually configuring a process flow across multiple discrete processes
CN109684057B (en) * 2018-12-11 2021-10-29 咪咕文化科技有限公司 Task processing method and device and storage medium
CN110610352B (en) * 2019-09-16 2023-09-19 中国铁塔股份有限公司 Flow processing method and device, electronic equipment and computer readable storage medium
CN111738700B (en) * 2020-07-24 2021-05-28 南京梦饷网络科技有限公司 Method, computing device and storage medium for controlling business process
CN112231011B (en) * 2020-10-09 2024-05-10 北京锐安科技有限公司 Activiti-based flow chart adjustment method and device, electronic equipment and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102376036A (en) * 2010-08-18 2012-03-14 软件股份公司 System and method for ad-hoc modification of a process during runtime
CN106600238A (en) * 2016-12-26 2017-04-26 上海轻维软件有限公司 Network service fulfillment realization method based on Activiti flow engine and apparatus thereof
CN111522534A (en) * 2020-03-25 2020-08-11 中国平安人寿保险股份有限公司 Flow chart visualization method and device and computer readable storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于 Activiti 流程管理关键技术设计与实现;李秋荻 等;科研信息化技术与应用;第7卷(第5期);第85-91页 *

Also Published As

Publication number Publication date
CN112231011A (en) 2021-01-15
WO2022073401A1 (en) 2022-04-14

Similar Documents

Publication Publication Date Title
US20200195511A1 (en) Network management method and related device
CN111814089B (en) Page rendering method and device, rendering server and storage medium
WO2021068765A1 (en) Web page screenshot method and apparatus, device, and computer-readable storage medium
CN111818175A (en) Enterprise service bus configuration file generation method, device, equipment and storage medium
CN111047434B (en) Operation record generation method and device, computer equipment and storage medium
CN110888672B (en) Expression engine implementation method and system based on metadata architecture
CN111190727B (en) Asynchronous memory destructor method and device, computer equipment and storage medium
CN112231011B (en) Activiti-based flow chart adjustment method and device, electronic equipment and storage medium
CN113407560B (en) Update message processing method, data synchronization method and configuration information configuration method
CN110515979B (en) Data query method, device, equipment and storage medium
CN111901383A (en) Data request processing method and device, computer equipment and storage medium
CN114070820B (en) Domain name redirection method, device, medium and electronic equipment
CN112131263B (en) Software package acquisition method, system, device, electronic equipment and storage medium
CN106936643B (en) Equipment linkage method and terminal equipment
CN112187761B (en) Message parsing method, message construction method, message parsing device, message construction device, computer equipment and storage medium
CN114969603A (en) 5G message-based picture acquisition and picture generation method and system
CN112328598A (en) ID generation method, device, electronic equipment and storage medium
CN112380828A (en) PDF document generation method and device, storage medium and electronic equipment
CN112835573A (en) Data query method and device, electronic equipment and storage medium
CN111078736A (en) Data aggregation processing method and device, terminal and storage medium
CN112181391A (en) Method and system capable of dynamically expanding data
CN113836405B (en) Information query method, device and computer readable storage medium
CN113687882B (en) Activiti-based flow rollback method, activiti-based flow rollback device and storage medium
CN113010151B (en) Method, system, equipment and medium for traversing dynamic options in HII database
CN112732664B (en) Evidence extraction method, device, electronic equipment and storage medium

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