WO2022073401A1 - 基于activiti的流程图调整方法、装置、电子设备和存储介质 - Google Patents

基于activiti的流程图调整方法、装置、电子设备和存储介质 Download PDF

Info

Publication number
WO2022073401A1
WO2022073401A1 PCT/CN2021/115535 CN2021115535W WO2022073401A1 WO 2022073401 A1 WO2022073401 A1 WO 2022073401A1 CN 2021115535 W CN2021115535 W CN 2021115535W WO 2022073401 A1 WO2022073401 A1 WO 2022073401A1
Authority
WO
WIPO (PCT)
Prior art keywords
flowchart
flow chart
process node
adjustment
request
Prior art date
Application number
PCT/CN2021/115535
Other languages
English (en)
French (fr)
Inventor
陈蔚胜
万月亮
程强
Original Assignee
北京锐安科技有限公司
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 北京锐安科技有限公司 filed Critical 北京锐安科技有限公司
Publication of WO2022073401A1 publication Critical patent/WO2022073401A1/zh

Links

Images

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

Definitions

  • the present application relates to computer technology, for example, to an activiti-based flow chart adjustment method, apparatus, electronic device and storage medium.
  • activiti can manage the process by dragging and dropping controls, drawing flowcharts. But how activiti adjusts the flow chart as the actual business scenario changes is a very important problem.
  • the present application provides an activiti-based flow chart adjustment method, device, electronic device, and storage medium, so as to dynamically adjust the flow to meet the flexibility of the business flow and the effect of business requirements.
  • an embodiment of the present application provides an activiti-based flow chart adjustment method, the method comprising:
  • the flow chart is adjusted based on the adjustment request and the result of parsing the flow chart.
  • the embodiment of the present application also provides a flow chart adjustment device based on activiti, and the device includes:
  • an adjustment request receiving module configured to receive an adjustment request for adjusting the flow chart
  • a first scanning module configured to scan a first application program interface based on the adjustment request, wherein a class file corresponding to the flowchart is configured in the first application program interface;
  • a first parsing module configured to acquire the flowchart based on the class file, and parse the flowchart when it is detected that the first application program interface has a class file corresponding to the flowchart;
  • An adjustment module configured to adjust the flow chart based on the adjustment request and the analysis result of the flow chart.
  • an embodiment of the present application also provides an electronic device, the electronic device comprising:
  • processors one or more processors
  • storage means arranged to store one or more programs
  • the one or more processors When the one or more programs are executed by the one or more processors, the one or more processors implement the activiti-based flowchart adjustment method described in any one of the embodiments of this application.
  • an embodiment of the present application further provides a storage medium containing computer-executable instructions, where the computer-executable instructions, when executed by a computer processor, are used to execute the activiti-based activiti method described in any of the embodiments of the present application. flow chart adjustment method.
  • FIG. 3 is a schematic structural diagram of an activiti-based flow chart adjustment device provided in Embodiment 4 of the present application;
  • FIG. 4 is a schematic structural diagram of an electronic device provided in Embodiment 5 of the present application.
  • FIG. 1 is a flowchart of an activiti-based flowchart adjustment method provided in Embodiment 1 of the present application. This embodiment is applicable to the case of dynamically adjusting a flowchart, and the method can be performed by an activiti-based flowchart adjustment device,
  • the activiti-based flowchart adjusting apparatus may be implemented by software and/or hardware, and the activiti-based flowchart adjusting apparatus may be configured on an electronic computing device, including the following steps.
  • the adjustment request may be a request to adjust the flow chart.
  • the adjustment request may be: splitting any process node in the flowchart, adding a process node in the flowchart, rolling back from any current process node to the previous process node of the current process node, or from Any current process node jumps to at least one of the other process nodes.
  • the splitting of any process node in the flowchart may be dividing any process node in the flowchart into multiple process nodes.
  • the process node A can be split into a process node A1 and a process node A2.
  • Adding a process node in the flowchart may be adding a process node before any process node in the flowchart and/or adding a process node after any process node.
  • a flowchart has four process nodes: process node A, process node B, process node C, and process node D.
  • a process node E can be added before process node A, or a process node E can be added before process node A.
  • a process node F is added after node A, or a process node E can be added before process node A, and a process node F is added after process node A.
  • the previous process node that rolls back from any current process node to the current process node may be the previous process node that rolls back from the current process node to the current process node for any current process node.
  • a flowchart has four process nodes: process node A, process node B, process node C, and process node D.
  • the process logic between multiple process nodes is: process node A, process node B, process node C and
  • the process nodes D are executed in sequence, that is, the execution sequence is process node A - process node B - process node C - process node D.
  • the process node A can be rolled back.
  • the preset rule may be to roll back the process node to the process node itself.
  • the process node A in the above example is used as the current process node, after the process node A is executed, the process node A itself can be rolled back and executed.
  • Jumping from any current process node to other process nodes can be for any current process node in the flowchart, and can jump from the current process node to any other process node.
  • a flowchart has four process nodes: process node A, process node B, process node C, and process node D.
  • the process logic between multiple process nodes is: process node A, process node B, process node C and Process node D is executed in sequence, that is, the execution sequence is process node A-process node B-process node C-process node D, then for any process node B, after executing process node B, it can directly jump to the execution process node D.
  • the first application program interface may be an interface for invoking the flowchart.
  • the first application program interface here is configured with a class file corresponding to the flowchart. After receiving the adjustment request, the system may scan the plurality of files in the first application program interface.
  • a class file corresponding to the flowchart is preconfigured in the first application program interface, so that when the first application program interface is subsequently scanned, the class file can be scanned, and the flowchart can be called based on the class file, which solves the problem. Since there is no class file corresponding to the flow chart in the first application program interface, the flow chart cannot be called, and thus the flow chart cannot be dynamically adjusted.
  • all files in the first application program interface can be scanned, and when it is determined that the class file corresponding to the flowchart is scanned, the flowchart can be called according to the class file, so that After the flow chart is determined, the flow chart can be obtained so that the flow chart can be dynamically adjusted later, and the problem that the flow chart cannot be obtained and the flow chart can be dynamically adjusted after the flow chart is determined is solved.
  • the flow chart can be parsed, and the analysis can be performed by using an analysis algorithm or analysis software to parse the flow chart to obtain multiple process nodes in the flow chart and the process logic between the multiple process nodes.
  • the method used to parse the flowchart is not limited here, and any method that can parse the flowchart falls within the protection scope of the embodiments of the present application.
  • the way of parsing the flow chart belongs to the related art, and will not be described here.
  • the parsing result may be a result obtained after parsing the flowchart.
  • the parsing result here can be multiple process nodes in the flowchart, and process logic between multiple process nodes.
  • the flow chart can be dynamically adjusted, and then the adjusted flow chart can be obtained, which realizes the dynamic adjustment of the determined flow chart to meet the flexibility of the business process and business needs Effect.
  • the adjustment of the flowchart based on the adjustment request and the analysis result of the flowchart may be: based on the adjustment request, adjusting the process logic between multiple process nodes to obtain the adjusted process logic; Based on the adjusted process logic and multiple process nodes, an adjusted flowchart is generated.
  • the initial process logic between multiple process nodes can be adjusted to obtain the adjusted process logic, and the adjusted flow chart is generated according to the adjusted process logic and multiple process nodes. .
  • a flowchart has four process nodes: process node A, process node B, process node C, and process node D.
  • the initial process logic between multiple process nodes is: process node A, process node B, process node C and process node D are executed in sequence, that is, the execution order is process node A-process node B-process node C-process node D, and the adjustment request is to jump to process node B after executing process node D, then the initial process logic is performed.
  • the adjusted process logic is obtained: after process node A, process node B, process node C and process node D are executed in sequence, jump from process node D to process node B, and then execute process node B and process node C in turn and process node D.
  • an adjusted flowchart can be formed.
  • the dynamic adjustment of the flow chart is realized to meet the business requirements.
  • the technical solution of the embodiment of the present application is to receive an adjustment request for adjusting the flowchart, and based on the adjustment request, scan a first application program interface, wherein the first application program interface is configured with a class file corresponding to the flowchart, and the first application program interface is configured with a class file corresponding to the flowchart.
  • the class file of the flowchart is pre-configured in the application program interface, so that the flowchart can be called based on the class file later, which solves the problem that in the related art, because there is no class file corresponding to the flowchart in the first application program interface, the process cannot be called.
  • the problem of the diagram, and then the problem that the flow chart cannot be dynamically adjusted.
  • the flow chart is obtained based on the class file, and the flow chart is parsed, and the flow chart is adjusted based on the adjustment request and the analysis result of the flow chart, It realizes the dynamic adjustment of the determined flow chart to meet the flexibility of the business process and the effect of business requirements.
  • FIG. 2 is a flowchart of an activiti-based flowchart adjustment method provided in Embodiment 2 of the present application, and the embodiment of the present application may be combined with multiple optional solutions in the foregoing embodiments.
  • the method further includes: receiving a generation request for generating a flow chart; based on the generation request, scanning the second application program interface; A flowchart is generated based on the scan result and the generation request of the second application program interface.
  • the method of the embodiment of the present application includes the following steps.
  • the request to generate may be a request to generate a flowchart.
  • the generation request includes multiple process nodes in the flowchart to be generated, and process logic in the multiple process nodes.
  • process logic in the multiple process nodes In order to subsequently generate a flowchart based on the multiple process nodes in the flowchart to be generated and the process logic in the multiple process nodes.
  • the second application program interface may be an interface for invoking a file or software for generating the flowchart.
  • the second application program interface here is configured with a generated file preset generator call file for generating a flowchart.
  • the system may scan the plurality of files in the second application program interface.
  • the second application program interface is pre-configured with a generated file preset generator call file for generating a flowchart, so that when the second application program interface is scanned subsequently, the preset generator call file can be scanned, and based on the preset A generator call file can generate the makefile and generate the flowchart based on the makefile.
  • the scan result may be a result obtained after scanning the second application program interface.
  • the scan results here may include files or software that can generate flowcharts.
  • the flow chart may be generated by using the scanning result of the second application program interface.
  • generating a flowchart based on the scan result and the generation request of the second application program interface may be: when detecting that the second application program interface has a preset generator call file for generating a generated file of the flowchart , the generated file is generated based on the preset generator calling file; and the flowchart is obtained based on the generated file and the generation request.
  • the preset generator invocation file may be a file that invokes the preset generator.
  • the preset generator here can be a pre-extended custom activiti makefile generator.
  • the generated file generator of the pre-extended custom activiti may be a generated file generator of the custom activiti extended by means of code or the like in advance.
  • the makefile can be a file that can generate a flowchart.
  • the preset generator call file for generating the generated file of the flowchart can be scanned. Based on the preset generator call file, the preset generator can be called, and based on the preset generator, the preset generator can be generated.
  • the generated file of the flowchart to be generated; according to the generated file and the multiple process nodes and the process logic among the multiple process nodes in the generation request for generating the flowchart, the flowchart corresponding to the generation request can be automatically generated.
  • the flowchart can be automatically generated without relying on other plug-ins, and the effect of decoupling the business from the drawing page or plug-in that comes with activiti is realized.
  • the above steps S210-S270 are to generate a flow chart, and after the flow chart is determined, an execution method that needs to be adjusted to the flow chart is found.
  • the situation to be adjusted is preset, so that the steps of adjusting the generated flowchart according to the adjustment request in S240-S270 do not need to be performed subsequently.
  • the above-mentioned generation request for generating the flow chart may also include a preset adjustment request; the preset adjustment request includes: splitting any flow node in the flow chart, adding a flow node in the flow chart, changing from any one At least one of returning the current process node to the previous process node of the current process node or jumping from any current process node to other process nodes.
  • Obtaining the flowchart according to the generated file and the generation request may be: based on the generated file, according to the process logic between multiple process nodes, connecting multiple processes in the flowchart, and based on the preset adjustment request, in the
  • the process node corresponding to the preset adjustment request is pre-defined with operations of splitting the process node, adding a process node, rolling back to the previous process node, or jumping to another process node to generate a flowchart.
  • multiple process nodes in the flow chart are connected, so that based on the preset adjustment request, a preset adjustment request is performed at the process node corresponding to the preset adjustment request.
  • a preset adjustment request is performed at the process node corresponding to the preset adjustment request.
  • the generation request includes four process nodes: process node A, process node B, process node C, and process node D.
  • the process logic between multiple process nodes is: process node A, process node B, process node C and process node D are executed in sequence, that is, the execution sequence is process node A-process node B-process node C-process node D.
  • process node A, process node B, process node C and process node D are connected. .
  • an operation of adding a process node E after the process node A is predefined at the process node A corresponding to the preset adjustment request, and then according to the operation, Generate the final flowchart, and the multiple process nodes in the generated final flowchart are: process node A, process node B, process node C, process node D, and process node E, and the process logic between multiple process nodes is : Process node A, process node E, process node B, process node C, and process node D are executed sequentially, that is, the execution sequence is process node A-process node E-process node B-process node C-process node D.
  • the flow chart to be generated can be adjusted in advance, and then the adjusted flow chart is directly generated according to the pre-adjustment request, so that steps S240-S270 need not be executed afterwards.
  • the technical solution of the embodiment of the present application is that by receiving a generation request for generating a flowchart, and based on the generation request, the second application program interface is scanned, because the second application program interface has a preset generator call file for generating a generation file of the flowchart. , according to the preset generator calling file, the preset generator can be called, based on the preset generator can generate the generated file of the flow chart to be generated, according to the generated file and the generation request, the flow chart can be generated. In this way, the flowchart can be automatically generated without relying on other plug-ins, and the effect of decoupling the business from the drawing page or plug-in that comes with activiti is realized.
  • activiti which can be exemplified for related technologies. If you want to obtain the business table of a system, because activiti in related technologies has the structure of activiti itself Form business table, and each system also has its own business table of its own structure. When the business table of a system is obtained based on activiti, the business table of activiti's own structure is fed back, not the business table of the system.
  • company A has its own business table in which the name, gender, contact information and home address of all employees in the company are recorded.
  • Activiti also has its own structured business table. The name, gender and contact information of all employees in company A are recorded in the business table of activiti's own structured format.
  • the feedback is the business table of Activiti's own structure, that is, the returned business table only has the name, gender and contact information of all employees in the company A, not the business table. Have the home addresses of all employees.
  • the business table fed back is not a business table in the form of company A's own structure, and cannot meet the needs of users.
  • Embodiments are as follows.
  • Customize a user-hosted component use the user-hosted component to define the user group relationship management strategy, and expand Activiti's query on business tables.
  • the defined user group relationship management strategy here can be that when a business table is queried based on Activiti, the business table of Activiti's own structure can be linked to the business table of the target's own structure to be queried, and then the query to be queried can be used.
  • the business table in the form of the target's own structure is fed back to the user, and can be displayed on the user's display interface, replacing Activiti's dependence on the user table in a display manner.
  • Activiti's own structure It can be customized to link the business table of Activiti's own structure to the business table of its own structure of the target to be queried.
  • company A the name, gender, contact information and home address of all employees in the company are recorded in the business form of its own structured form.
  • Activiti's own structured business table records the names, genders and contact information of all employees in Company A.
  • the service table in this embodiment of the present application may also be replaced with other types of tables.
  • the business table of Activiti's own structure is linked to the business table of the target's own structure by self-definition, so that when you need to query the business table of the target's own structure, you can obtain To the business table of the target's own structure, but not to obtain the business table of Activiti's own structure, to achieve the effect of replacing Activiti's dependence on the user table in a display way to meet the needs of users.
  • FIG. 3 is a schematic structural diagram of an activiti-based flowchart adjustment apparatus provided in Embodiment 4 of the present application. As shown in FIG. 3 , the apparatus includes: an adjustment request receiving module 31 , a first scanning module 32 , a first parsing module 33 , and an adjustment request receiving module 31 . module 34.
  • the adjustment request receiving module 31 is configured to receive an adjustment request for adjusting the flow chart
  • the first scanning module 32 is configured to scan the first application program interface based on the adjustment request, wherein 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 flow chart, obtain the flow chart based on the class file, and parse the flow chart ;
  • the adjustment module 34 is configured to adjust the flow chart based on the adjustment request and the analysis result of the flow chart.
  • the parsing result includes: multiple process nodes in the flowchart, and process logic between the multiple process nodes.
  • the adjustment module 34 is set to:
  • the process logic among the plurality of process nodes is adjusted to obtain the adjusted process logic; based on the adjusted process logic and the plurality of process nodes, an adjusted flowchart is generated.
  • the adjustment request includes: splitting any process node in the flowchart, adding a process node in the flowchart, rolling back from any current process node to the previous process node of the current process node, or Jump from any current process node to at least one of the other process nodes.
  • the device further includes:
  • a generation request receiving module configured to receive a generation request for generating the flowchart
  • a second scanning module configured to scan the second application program interface based on the generation request
  • the flowchart generating module is configured to generate the flowchart based on the scanning result of the second application program interface and the generating request.
  • the second application program interface is configured with a preset generator call file for generating the generated file of the flowchart.
  • the flowchart generation module includes:
  • a generated file generating unit configured to generate the generated file based on the preset generator calling file when detecting a preset generator calling file having a generated file for generating a flowchart in the second application program interface
  • the flowchart generating unit is configured to acquire the flowchart based on the generating file and the generating request.
  • the generation request includes: multiple process nodes of the flowchart and process logic among the multiple process nodes.
  • the flow chart generation unit is set to:
  • the flowchart is generated by connecting multiple processes in the flowchart according to the process logic between multiple process nodes.
  • the generation request further includes: a preset adjustment request; the preset adjustment request includes: splitting any process node in the flow chart, adding a flow node in the flow chart, changing from any current flow The node rolls back to the previous process node of the current process node or jumps from any current process node to at least one of other process nodes.
  • the flow chart generating unit may also be set to:
  • the multiple processes in the flowchart are connected, and based on the preset adjustment request, in the process corresponding to the preset adjustment request.
  • the operations of splitting the process node, adding process nodes, rolling back to the previous process node or jumping to other process nodes are predefined at the node to generate the flowchart.
  • the activiti-based flowchart adjustment apparatus provided by the embodiment of the present application can execute the activiti-based flowchart adjustment method provided by any embodiment of the present application, and has functional modules and effects corresponding to the execution method.
  • FIG. 4 is a schematic structural diagram of an electronic device according to Embodiment 5 of the present application.
  • the electronic device includes a processor 70, a memory 71, an input device 72, and an output device 73;
  • the number can be one or more, and one processor 70 is taken as an example in FIG. 4; the processor 70, memory 71, input device 72 and output device 73 in the electronic device can be connected through a bus or other means, and in FIG. Take bus connection as an example.
  • the memory 71 may be configured to store software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the activiti-based flowchart adjustment method in the embodiments of the present application (for example, adjustment requests).
  • the processor 70 executes various functional applications and data processing of the electronic device by running the software programs, instructions and modules stored in the memory 71 , that is, to implement the above-mentioned activiti-based flowchart adjustment method.
  • the memory 71 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to use of the terminal, and the like.
  • the 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.
  • memory 71 may include memory located remotely from processor 70, which may be connected to the electronic device through 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 configured to receive input numerical or character information, and to generate key signal input related to user settings and function control of the electronic device.
  • the output device 73 may include a display device such as a display screen.
  • Embodiment 6 of the present application further provides a storage medium containing computer-executable instructions, where the computer-executable instructions are used to execute an activiti-based flowchart adjustment method when executed by a computer processor.
  • a storage medium containing computer-executable instructions provided by an embodiment of the present application the computer-executable instructions are not limited to the above method operations, and can also execute any of the activiti-based flowchart adjustment methods provided by any embodiment of the present application. related operations.
  • the present application can be implemented by means of software and general hardware, and can also be implemented by hardware. Based on this understanding, the technical solution of the present application can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as a floppy disk of a computer, a read-only memory (Read-Only Memory, ROM), Random access memory (Random Access Memory, RAM), flash memory (FLASH), hard disk or optical disk, etc., including several instructions to make a computer electronic device (which can be a personal computer, server, or network device, etc.) methods described in the examples.
  • a computer electronic device which can be a personal computer, server, or network device, etc.
  • the multiple units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be realized;
  • the names of the functional units are only for the convenience of distinguishing from each other, and are not used to limit the protection scope of the present application.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Stored Programmes (AREA)

Abstract

一种基于activiti的流程图调整方法、装置、电子设备和存储介质。所述方法包括:接收对流程图进行调整的调整请求(110);基于所述调整请求,扫描第一应用程序接口,其中,所述第一应用程序接口中配置有所述流程图对应的类文件(120);当检测到所述第一应用程序接口中具有所述流程图对应的类文件时,基于所述类文件,获取所述流程图,并对所述流程图进行解析(130);基于所述调整请求和对所述流程图的解析结果,对所述流程图进行调整(140)。

Description

基于activiti的流程图调整方法、装置、电子设备和存储介质
本申请要求在2020年10月09日提交中国专利局、申请号为202011073053.8的中国专利申请的优先权,该申请的全部内容通过引用结合在本申请中。
技术领域
本申请涉及计算机技术,例如涉及一种基于activiti的流程图调整方法、装置、电子设备和存储介质。
背景技术
随着互联网以及activiti项目的发展,activiti能够通过拖拽控件,绘制流程图,完成对流程的管理。但activiti如何随着实际业务场景的更改,来实现流程图的调整是面对的很重要的问题。
当一个业务的流程图指定固定下来后,若用户需要对流程图中的业务逻辑进行更改,例如,一个业务具有A、B、C和D这4个流程,其执行顺序是A-B-C-D,若此时,流程图确定下来后,用户发现执行完流程D后需要回归到流程B,则此时由于流程图已确定,则无法对流程图进行更改,极大影响了流程的灵活性,无法满足业务的需求。
发明内容
本申请提供一种基于activiti的流程图调整方法、装置、电子设备和存储介质,以实现动态对流程进行调整,以满足业务流程的灵活性,以及业务需求的效果。
第一方面,本申请实施例提供了一种基于activiti的流程图调整方法,该方法包括:
接收对流程图进行调整的调整请求;
基于所述调整请求,扫描第一应用程序接口,其中,所述第一应用程序接口中配置有所述流程图对应的类文件;
当检测到所述第一应用程序接口中具有所述流程图对应的类文件时,基于所述类文件,获取所述流程图,并对所述流程图进行解析;
基于所述调整请求和对所述流程图的解析结果,对所述流程图进行调整。
第二方面,本申请实施例还提供了一种基于activiti的流程图调整装置,该 装置包括:
调整请求接收模块,设置为接收对流程图进行调整的调整请求;
第一扫描模块,设置为基于所述调整请求,扫描第一应用程序接口,其中,所述第一应用程序接口中配置有所述流程图对应的类文件;
第一解析模块,设置为当检测到所述第一应用程序接口中具有所述流程图对应的类文件时,基于所述类文件,获取所述流程图,并对所述流程图进行解析;
调整模块,设置为基于所述调整请求和对所述流程图的解析结果,对所述流程图进行调整。
第三方面,本申请实施例还提供了一种电子设备,该电子设备包括:
一个或多个处理器;
存储装置,设置为存储一个或多个程序;
当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现本申请实施例中任一所述的基于activiti的流程图调整方法。
第四方面,本申请实施例还提供了一种包含计算机可执行指令的存储介质,所述计算机可执行指令在由计算机处理器执行时用于执行本申请实施例中任一所述的基于activiti的流程图调整方法。
附图说明
图1是本申请实施例一提供的基于activiti的流程图调整方法的流程图;
图2是本申请实施例二提供的基于activiti的流程图调整方法的流程图;
图3是本申请实施例四提供的基于activiti的流程图调整装置的结构示意图;
图4是本申请实施例五提供的一种电子设备的结构示意图。
具体实施方式
下面结合附图和实施例对本申请进行说明。此处所描述的实施例仅仅用于解释本申请,而非对本申请的限定。为了便于描述,附图中仅示出了与本申请相关的部分而非全部结构。
实施例一
图1为本申请实施例一提供的基于activiti的流程图调整方法的流程图,本实施例可适用于对流程图进行动态调整的情况,该方法可以由基于activiti的流程图调整装置来执行,该基于activiti的流程图调整装置可以由软件和/或硬件来实现,该基于activiti的流程图调整装置可以配置在电子计算设备上,包括如下步骤。
S110、接收对流程图进行调整的调整请求。
示例性的,调整请求可以是对流程图进行调整的请求。
可选的,所述调整请求可以是:对流程图中的任一个流程节点进行分裂、在流程图中增加流程节点、从任一个当前流程节点回退到当前流程节点的上一个流程节点或从任一个当前流程节点跳转到其他流程节点中的至少一项。
示例性的,对流程图中的任一个流程节点进行分裂可以是将流程图中的任一个流程节点划分为多个流程节点。例如,对于流程图中的任一个流程节点A,可以将流程节点A分裂为流程节点A1和流程节点A2。
在流程图中增加流程节点可以是在流程图中的任一个流程节点之前增加流程节点和/或在任一个流程节点之后增加流程节点。例如,一个流程图具有流程节点A、流程节点B、流程节点C和流程节点D这4个流程节点,对于任一个流程节点A,可以在流程节点A之前增加一个流程节点E,也可以在流程节点A之后增加一个流程节点F,或者也可以在流程节点A之前增加一个流程节点E,并在流程节点A之后增加一个流程节点F。
从任一个当前流程节点回退到当前流程节点的上一个流程节点可以是对于任一个当前流程节点,从该当前流程节点回退到当前流程节点的上一个流程节点。例如,一个流程图具有流程节点A、流程节点B、流程节点C和流程节点D这4个流程节点,多个流程节点之间的流程逻辑为:流程节点A、流程节点B、流程节点C和流程节点D依次执行,即执行顺序为流程节点A-流程节点B-流程节点C-流程节点D,则对于任一个流程节点B,当执行完流程节点B后,可回退执行流程节点A。
对于流程图中的首个流程节点,可按照预设规则进行回退。这里的预设规则可以是将该流程节点回退到该流程节点本身,例如,若将上述例子中的流程节点A作为当前流程节点,则执行完流程节点A后可回退执行流程节点A本身。这里也可以是其他的预设规则,预设规则可根据用户需求自行设定,这里不做限定。
从任一个当前流程节点跳转到其他流程节点可以是对于流程图中的任一个当前流程节点,可从该当前流程节点跳转到任一个其他流程节点。例如,一个 流程图具有流程节点A、流程节点B、流程节点C和流程节点D这4个流程节点,多个流程节点之间的流程逻辑为:流程节点A、流程节点B、流程节点C和流程节点D依次执行,即执行顺序为流程节点A-流程节点B-流程节点C-流程节点D,则对于任一个流程节点B,当执行完流程节点B后,可直接跳转到执行流程节点D。
上述只是列举了一些调整请求,可能还具有其他的调整请求,这里可根据用户需求,进行增加,这里不一一列举。
S120、基于调整请求,扫描第一应用程序接口,其中,第一应用程序接口中配置有流程图对应的类文件。
示例性的,第一应用程序接口可以是用于调用流程图的接口。
这里的第一应用程序接口中配置有流程图对应的类文件。当接收到调整请求后,系统可扫描第一应用程序接口中的多个文件。
在第一应用程序接口中预先配置有流程图对应的类文件,以便后续对第一应用程序接口进行扫描时,可扫描到该类文件,并基于该类文件,调用该流程图,这样解决了由于第一应用程序接口中没有流程图对应的类文件,而无法调用到流程图的问题,进而无法对流程图进行动态调整的问题。
S130、当检测到第一应用程序接口中具有流程图对应的类文件时,基于类文件,获取流程图,并对流程图进行解析。
示例性的,当扫描第一应用程序接口后,可扫描到第一应用程序接口中的所有文件,当确定扫描到流程图对应的类文件时,可根据该类文件,调用该流程图,这样实现了当流程图确定后,可获取到流程图,以便后续对流程图进行动态调整的效果,解决了当流程图确定后,无法获取流程图,对流程图进行动态调整的问题。
当获取到流程图后,可对流程图进行解析,解析可以是利用解析算法或解析软件等对流程图进行解析,得到流程图中多个流程节点和多个流程节点之间的流程逻辑。
利用何种方式对流程图进行解析,这里不做限定,任何可对流程图进行解析的方式均属于本申请实施例的保护范围。此外,对流程图进行解析的方式属于相关技术,这里不做描述。
S140、基于调整请求和对流程图的解析结果,对流程图进行调整。
示例性的,解析结果可以是对流程图进行解析后得到的结果。可选的,这里的解析结果可以是流程图中的多个流程节点,以及多个流程节点之间的流程 逻辑。
根据调整请求和对流程图的解析结果,可对流程图进行动态调整,进而得到调整后的流程图,实现了对确定后的流程图进行动态调整,以满足业务流程的灵活性,以及业务需求的效果。
可选的,所述基于调整请求和对流程图的解析结果,对流程图进行调整,可以是:基于调整请求,对多个流程节点之间的流程逻辑进行调整,得到调整后的流程逻辑;基于调整后的流程逻辑和多个流程节点,生成调整后的流程图。
示例性的,根据上述的调整请求,可对多个流程节点之间的初始流程逻辑进行调整,得到调整后的流程逻辑,根据调整后的流程逻辑和多个流程节点,生成调整后的流程图。
例如,一个流程图具有流程节点A、流程节点B、流程节点C和流程节点D这4个流程节点,多个流程节点之间的初始流程逻辑为:流程节点A、流程节点B、流程节点C和流程节点D依次执行,即执行顺序为流程节点A-流程节点B-流程节点C-流程节点D,以调整请求为执行完流程节点D后跳转到流程节点B,则对初始流程逻辑进行调整,得到调整后的流程逻辑为:流程节点A、流程节点B、流程节点C和流程节点D依次执行后,从流程节点D跳转到流程节点B,再依次执行流程节点B、流程节点C和流程节点D。则根据该调整后的流程逻辑以及多个流程节点,可形成调整后的流程图。实现了对流程图的动态调整,满足了业务需求。
本申请实施例的技术方案,通过接收对流程图进行调整的调整请求,基于调整请求,扫描第一应用程序接口,其中,第一应用程序接口中配置有流程图对应的类文件,在第一应用程序接口中预先配置流程图的类文件,以便后续基于该类文件,调用该流程图,这样解决了相关技术中由于第一应用程序接口中没有流程图对应的类文件,而无法调用到流程图的问题,进而无法对流程图进行动态调整的问题。当检测到第一应用程序接口中具有流程图对应的类文件时,基于类文件,获取流程图,并对流程图进行解析,基于调整请求和对流程图的解析结果,对流程图进行调整,实现了对确定后的流程图进行动态调整,以满足业务流程的灵活性,以及业务需求的效果。
实施例二
图2为本申请实施例二提供的基于activiti的流程图调整方法的流程图,本申请实施例与上述实施例中多个可选方案可以结合。在本申请实施例中,可选的,在所述接收对流程图进行调整的调整请求之前,所述方法还包括:接收生 成流程图的生成请求;基于生成请求,扫描第二应用程序接口;基于第二应用程序接口的扫描结果和生成请求,生成流程图。
如图2所示,本申请实施例的方法包括如下步骤。
S210、接收生成流程图的生成请求。
示例性的,生成请求可以是生成流程图的请求。
可选的,在所述生成请求中包括要生成的流程图中的多个流程节点,以及多个流程节点中的流程逻辑。以便后续基于该要生成的流程图中的多个流程节点,以及多个流程节点中的流程逻辑,生成流程图。
S220、基于生成请求,扫描第二应用程序接口。
示例性的,第二应用程序接口可以是用于调用生成流程图的文件或软件的接口。
这里的第二应用程序接口中配置有生成流程图的生成文件预设生成器调用文件。当接收到生成请求后,系统可扫描第二应用程序接口中的多个文件。
在第二应用程序接口中预先配置有生成流程图的生成文件预设生成器调用文件,以便后续对第二应用程序接口进行扫描时,可扫描到该预设生成器调用文件,基于该预设生成器调用文件可生成该生成文件,并基于该生成文件来生成该流程图。
S230、基于第二应用程序接口的扫描结果和生成请求,生成流程图。
示例性的,扫描结果可以是扫描第二应用程序接口后得到的结果。可选的,这里的扫描结果可以包括可生成流程图的文件或软件。
根据生成请求,可利用第二应用程序接口的扫描结果,来生成流程图。
可选的,所述基于第二应用程序接口的扫描结果和生成请求,生成流程图,可以是:当检测到第二应用程序接口中具有生成流程图的生成文件的预设生成器调用文件时,基于预设生成器调用文件,生成所述生成文件;基于生成文件和生成请求,获取所述流程图。
示例性的,预设生成器调用文件可以是调用预设生成器的文件。这里的预设生成器可以是预先扩展的自定义activiti的生成文件生成器。
这里的预先扩展的自定义activiti的生成文件生成器可以是用于预先利用代码等方式扩展的自定义activiti的生成文件生成器。
生成文件可以是可生成流程图的文件。
当扫描第二应用程序接口后,可扫描到生成流程图的生成文件的预设生成 器调用文件,基于该预设生成器调用文件,可以调用预设生成器,基于该预设生成器可生成要生成的流程图的生成文件;根据该生成文件,以及生成流程图的生成请求中的多个流程节点和多个流程节点之间的流程逻辑,可自动生成与生成请求对应的流程图。
这样实现了不依赖于其他插件可自动生成流程图,实现了业务与activiti自带的绘图页面或插件解耦的效果。解决了相关技术中,需要通过调用activiti自带的绘图页面或插件,然后用户利用插件或绘图页面,手动绘制流程图,而造成的流程图绘制效率低下,依赖于activiti自带的绘图页面或插件,流程图的绘制可能出现误差的问题,并且解决了相关技术中生成流程图的方式需要用户具备很高的专业能力的问题。
S240、接收对流程图进行调整的调整请求。
S250、基于调整请求,扫描第一应用程序接口,其中,第一应用程序接口中配置有流程图对应的类文件。
S260、当检测到第一应用程序接口中具有流程图对应的类文件时,基于类文件,获取流程图,并对流程图进行解析。
S270、基于调整请求和对流程图的解析结果,对流程图进行调整。
上述步骤S210-S270是生成流程图,在确定流程图后,发现需对流程图进行调整的执行方法。也可以是在生成流程图的过程中,就预先设置需进行调整的情况,这样在后续则不需执行后面S240-S270中的对生成的流程图根据调整请求进行调整的步骤。
可以是在上述生成流程图的生成请求中还可以包括预设调整请求;所述预设调整请求包括:对流程图中的任一个流程节点进行分裂、在流程图中增加流程节点、从任一个当前流程节点回退到所述当前流程节点的上一个流程节点或从任一个当前流程节点跳转到其他流程节点中的至少一项。
根据生成文件和生成请求,来获取流程图,可以是:基于生成文件,根据多个流程节点之间的流程逻辑,将流程图中的多个流程进行连接,以及基于预设调整请求,在与预设调整请求对应的流程节点处预定义对该流程节点进行分裂、增加流程节点、回退到上一个流程节点或跳转到其他流程节点的操作,生成流程图。
示例性的,基于生成文件,根据多个流程节点之间的流程逻辑,将流程图中的多个流程节点进行连接,以基于预设调整请求,在与预设调整请求对应的流程节点处预定义对该流程节点进行预设调整的操作,然后生成流程图。
例如,生成请求中包含有流程节点A、流程节点B、流程节点C和流程节 点D这4个流程节点,多个流程节点之间的流程逻辑为:流程节点A、流程节点B、流程节点C和流程节点D依次执行,即执行顺序为流程节点A-流程节点B-流程节点C-流程节点D,根据上述流程逻辑,将流程节点A、流程节点B、流程节点C和流程节点D进行连接。若预设调整请求为在流程节点A之后增加流程节点E,则在与该预设调整请求对应的流程节点A处预定义在该流程节点A之后增加流程节点E的操作,然后根据该操作,生成最终的流程图,生成的最终的流程图中的多个流程节点为:流程节点A、流程节点B、流程节点C、流程节点D和流程节点E,多个流程节点之间的流程逻辑为:流程节点A、流程节点E、流程节点B、流程节点C和流程节点D依次执行,即执行顺序为流程节点A-流程节点E-流程节点B-流程节点C-流程节点D。
这样若事先明确调整请求,则可预先对要生成的流程图进行调整,然后根据预先调整请求,直接生成调整后的流程图,这样就不需事后再执行S240-S270的步骤。
本申请实施例的技术方案,通过接收生成流程图的生成请求,基于生成请求,扫描第二应用程序接口,由于在第二应用程序接口中具有生成流程图的生成文件的预设生成器调用文件,根据该预设生成器调用文件,可以调用预设生成器,基于该预设生成器可生成要生成的流程图的生成文件,根据生成文件和生成请求,则可生成流程图。这样实现了不依赖于其他插件可自动生成流程图,实现了业务与activiti自带的绘图页面或插件解耦的效果。解决了相关技术中,需要通过调用activiti自带的绘图页面或插件,然后用户利用插件或绘图页面,手动绘制流程图,而造成的流程图绘制效率低下,依赖于activiti自带的绘图页面或插件,流程图的绘制可能出现误差的问题,并且解决了相关技术中生成流程图的方式需要用户具备很高的专业能力的问题。
实施例三
在本申请实施例中,利用activiti实现了对其他功能的改进,示例性的,可以是针对相关技术中,若想要获取一个系统的业务表时,由于相关技术中的activiti具有activiti自身的结构形式的业务表,而每个系统也有其各自的独属于自己的结构形式的业务表。当基于activiti获取一个系统的业务表时,反馈到的是activiti其自身的结构形式的业务表,而不是该系统的业务表。
例如,对于公司A来说,公司A具有自己的业务表,在该业务表中记录了该公司中所有员工的名字、性别、联系方式和家庭住址。Activiti也具有其自身的结构形式的业务表,activiti自身的结构形式的业务表中记录了公司A中所有员工的名字、性别和联系方式。则当要基于Activiti获取公司A的业务表时,反 馈的是Activiti自身的结构形式的业务表,即反馈回来的业务表中仅具有该公司A中所有员工的名字、性别和联系方式,而不具有所有员工的家庭住址。这样反馈回来的业务表就不是公司A自身结构形式的业务表,无法满足用户需求。
本申请实施例则对上述问题进行说明,可通过访问Activiti,来得到公司A其自身结构形式的业务表。实施方式如下。
自定义一个用户托管组件,利用该用户托管组件来定义用户群组关系管理策略,扩展Activiti对业务表的查询。
这里的定义用户群组关系管理策略可以是当基于Activiti对业务表进行查询时,可将Activiti自身的结构形式的业务表链接到所要查询的目标的自身结构形式的业务表中,然后将所要查询的目标的自身结构形式的业务表反馈给用户,并可在用户的显示界面进行显示,以显示的方式替换掉Activiti对用户表的依赖。
可以是自定义将Activiti自身的结构形式的业务表链接到所要查询的目标的自身结构形式的业务表中。若对于公司A来说,其自身的结构形式的业务表中记录了该公司中所有员工的名字、性别、联系方式和家庭住址。Activiti自身的结构形式的业务表中记录了公司A中所有员工的名字、性别和联系方式。则当要基于Activiti获取公司A的业务表时,可将Activiti自身的结构形式的业务表链接到公司A自身的结构形式的业务表中,并将公司A自身的结构形式的业务表进行显示,即显示的是公司中所有员工的名字、性别、联系方式和家庭住址,实现以显示的方式替换掉Activiti对用户表的依赖,满足用户需求的效果。
本申请实施例中的业务表也可替换成其他类型的表。
本申请实施例的技术方案,通过自定义将Activiti自身的结构形式的业务表链接到所要查询的目标的自身结构形式的业务表中,这样若需查询目标自身结构形式的业务表时,可获取到目标自身结构形式的业务表,而不会获取到Activiti自身结构形式的业务表,实现以显示的方式替换掉Activiti对用户表的依赖,满足用户需求的效果。
实施例四
图3为本申请实施例四提供的基于activiti的流程图调整装置的结构示意图,如图3所示,该装置包括:调整请求接收模块31、第一扫描模块32、第一解析模块33和调整模块34。
调整请求接收模块31,设置为接收对流程图进行调整的调整请求;
第一扫描模块32,设置为基于所述调整请求,扫描第一应用程序接口,其 中,所述第一应用程序接口中配置有所述流程图对应的类文件;
第一解析模块33,设置为当检测到所述第一应用程序接口中具有所述流程图对应的类文件时,基于所述类文件,获取所述流程图,并对所述流程图进行解析;
调整模块34,设置为基于所述调整请求和对所述流程图的解析结果,对所述流程图进行调整。
可选的,所述解析结果包括:所述流程图中的多个流程节点,以及多个流程节点之间的流程逻辑。
在上述实施例的技术方案的基础上,调整模块34是设置为:
基于所述调整请求,对多个流程节点之间的流程逻辑进行调整,得到调整后的流程逻辑;基于调整后的流程逻辑和所述多个流程节点,生成调整后的流程图。
可选的,所述调整请求包括:对流程图中的任一个流程节点进行分裂、在流程图中增加流程节点、从任一个当前流程节点回退到所述当前流程节点的上一个流程节点或从任一个当前流程节点跳转到其他流程节点中的至少一项。
在上述实施例的技术方案的基础上,该装置还包括:
生成请求接收模块,设置为接收生成所述流程图的生成请求;
第二扫描模块,设置为基于所述生成请求,扫描第二应用程序接口;
流程图生成模块,设置为基于所述第二应用程序接口的扫描结果和所述生成请求,生成所述流程图。
可选的,所述第二应用程序接口中配置有生成流程图的生成文件的预设生成器调用文件。
在上述实施例的技术方案的基础上,流程图生成模块包括:
生成文件生成单元,设置为当检测到所述第二应用程序接口中具有生成流程图的生成文件的预设生成器调用文件时,基于所述预设生成器调用文件,生成所述生成文件;
流程图生成单元,设置为基于所述生成文件和所述生成请求,获取所述流程图。
可选的,所述生成请求中包括:所述流程图的多个流程节点和多个流程节点之间的流程逻辑。
在上述实施例的技术方案的基础上,流程图生成单元是设置为:
基于所述生成文件,根据多个流程节点之间的流程逻辑,将所述流程图中的多个流程进行连接,生成所述流程图。
可选的,所述生成请求中还包括:预设调整请求;所述预设调整请求包括:对流程图中的任一个流程节点进行分裂、在流程图中增加流程节点、从任一个当前流程节点回退到所述当前流程节点的上一个流程节点或从任一个当前流程节点跳转到其他流程节点中的至少一项。
在上述实施例的技术方案的基础上,流程图生成单元还可以设置为:
基于所述生成文件,根据多个流程节点之间的流程逻辑,将所述流程图中的多个流程进行连接,以及基于所述预设调整请求,在与所述预设调整请求对应的流程节点处预定义对该流程节点进行分裂、增加流程节点、回退到上一个流程节点或跳转到其他流程节点的操作,生成所述流程图。
本申请实施例所提供的基于activiti的流程图调整装置可执行本申请任意实施例所提供的基于activiti的流程图调整方法,具备执行方法相应的功能模块和效果。
实施例五
图4为本申请实施例五提供的一种电子设备的结构示意图,如图4所示,该电子设备包括处理器70、存储器71、输入装置72和输出装置73;电子设备中处理器70的数量可以是一个或多个,图4中以一个处理器70为例;电子设备中的处理器70、存储器71、输入装置72和输出装置73可以通过总线或其他方式连接,图4中以通过总线连接为例。
存储器71作为一种计算机可读存储介质,可设置为存储软件程序、计算机可执行程序以及模块,如本申请实施例中的基于activiti的流程图调整方法对应的程序指令/模块(例如,调整请求接收模块31、第一扫描模块32、第一解析模块33和调整模块34)。处理器70通过运行存储在存储器71中的软件程序、指令以及模块,从而执行电子设备的多种功能应用以及数据处理,即实现上述的基于activiti的流程图调整方法。
存储器71可包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序;存储数据区可存储根据终端的使用所创建的数据等。此外,存储器71可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他非易失性固态存储器件。在一些实例中,存储器71可包括相对于处理器70远程设置的存储器,这些远程存储器可以通过网络连接至电子设备。上述网络的实例包括但不限于 互联网、企业内部网、局域网、移动通信网及其组合。
输入装置72可设置为接收输入的数字或字符信息,以及产生与电子设备的用户设置以及功能控制有关的键信号输入。输出装置73可包括显示屏等显示设备。
实施例六
本申请实施例六还提供一种包含计算机可执行指令的存储介质,所述计算机可执行指令在由计算机处理器执行时用于执行一种基于activiti的流程图调整方法。
本申请实施例所提供的一种包含计算机可执行指令的存储介质,计算机可执行指令不限于如上所述的方法操作,还可以执行本申请任意实施例所提供的基于activiti的流程图调整方法中的相关操作。
本申请可借助软件及通用硬件来实现,也可以通过硬件实现。基于这样的理解,本申请的技术方案可以以软件产品的形式体现出来,该计算机软件产品可以存储在计算机可读存储介质中,如计算机的软盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、闪存(FLASH)、硬盘或光盘等,包括若干指令用以使得一台计算机电子设备(可以是个人计算机,服务器,或者网络设备等)执行本申请多个实施例所述的方法。
上述基于activiti的流程图调整装置的实施例中,所包括的多个单元和模块只是按照功能逻辑进行划分的,但并不局限于上述的划分,只要能够实现相应的功能即可;另外,多个功能单元的名称也只是为了便于相互区分,并不用于限制本申请的保护范围。

Claims (10)

  1. 一种基于activiti的流程图调整方法,包括:
    接收对流程图进行调整的调整请求;
    基于所述调整请求,扫描第一应用程序接口,其中,所述第一应用程序接口中配置有所述流程图对应的类文件;
    在检测到所述第一应用程序接口中具有所述流程图对应的类文件的情况下,基于所述类文件,获取所述流程图,并对所述流程图进行解析;
    基于所述调整请求和对所述流程图的解析结果,对所述流程图进行调整。
  2. 根据权利要求1所述的方法,其中,所述解析结果包括:所述流程图中的多个流程节点,以及所述多个流程节点之间的流程逻辑;
    所述基于所述调整请求和对所述流程图的解析结果,对所述流程图进行调整,包括:
    基于所述调整请求,对所述多个流程节点之间的流程逻辑进行调整,得到调整后的流程逻辑;
    基于调整后的流程逻辑和所述多个流程节点,生成调整后的流程图。
  3. 根据权利要求1或2所述的方法,其中,所述调整请求包括:对流程图中的任一个流程节点进行分裂、在流程图中增加流程节点、从任一个当前流程节点回退到所述当前流程节点的上一个流程节点或从任一个当前流程节点跳转到除所述当前流程节点之外的其他流程节点中的至少一项。
  4. 根据权利要求1所述的方法,其中,在所述接收对流程图进行调整的调整请求之前,所述方法还包括:
    接收生成所述流程图的生成请求;
    基于所述生成请求,扫描第二应用程序接口;
    基于所述第二应用程序接口的扫描结果和所述生成请求,生成所述流程图。
  5. 根据权利要求4所述的方法,其中,所述第二应用程序接口中配置有生成所述流程图的生成文件的预设生成器调用文件;
    所述基于所述第二应用程序接口的扫描结果和所述生成请求,生成所述流程图,包括:
    在检测到所述第二应用程序接口中具有生成所述流程图的生成文件的预设生成器调用文件的情况下,基于所述预设生成器调用文件,生成所述生成文件;
    基于所述生成文件和所述生成请求,获取所述流程图。
  6. 根据权利要求5所述的方法,其中,所述生成请求中包括:所述流程图的多个流程节点和所述多个流程节点之间的流程逻辑;
    所述基于所述生成文件和所述生成请求,获取所述流程图,包括:
    基于所述生成文件,根据所述多个流程节点之间的流程逻辑,将所述流程图中的多个流程节点进行连接,生成所述流程图。
  7. 根据权利要求5所述的方法,其中,所述生成请求中包括:预设调整请求;其中,所述预设调整请求包括:对流程图中的任一个流程节点进行分裂、在流程图中增加流程节点、从任一个当前流程节点回退到所述当前流程节点的上一个流程节点或从任一个当前流程节点跳转到除所述当前流程节点之外的其他流程节点中的至少一项;
    所述基于所述生成文件和所述生成请求,获取所述流程图,包括:
    基于所述生成文件,根据多个流程节点之间的流程逻辑,将所述流程图中的多个流程节点进行连接,以及基于所述预设调整请求,在与所述预设调整请求对应的流程节点处预定义对所述流程节点进行分裂、增加流程节点、回退到上一个流程节点或跳转到其他流程节点的操作,生成所述流程图。
  8. 一种基于activiti的流程图调整装置,包括:
    调整请求接收模块,设置为接收对流程图进行调整的调整请求;
    第一扫描模块,设置为基于所述调整请求,扫描第一应用程序接口,其中,所述第一应用程序接口中配置有所述流程图对应的类文件;
    第一解析模块,设置为在检测到所述第一应用程序接口中具有所述流程图对应的类文件的情况下,基于所述类文件,获取所述流程图,并对所述流程图进行解析;
    调整模块,设置为基于所述调整请求和对所述流程图的解析结果,对所述流程图进行调整。
  9. 一种电子设备,包括:
    一个或多个处理器;
    存储装置,设置为存储一个或多个程序;
    当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现如权利要求1-7中任一项所述的基于activiti的流程图调整方法。
  10. 一种包含计算机可执行指令的存储介质,其中,所述计算机可执行指令在由计算机处理器执行时用于执行如权利要求1-7中任一项所述的基于 activiti的流程图调整方法。
PCT/CN2021/115535 2020-10-09 2021-08-31 基于activiti的流程图调整方法、装置、电子设备和存储介质 WO2022073401A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011073053.8 2020-10-09
CN202011073053.8A CN112231011B (zh) 2020-10-09 2020-10-09 基于activiti的流程图调整方法、装置、电子设备和存储介质

Publications (1)

Publication Number Publication Date
WO2022073401A1 true WO2022073401A1 (zh) 2022-04-14

Family

ID=74121160

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/115535 WO2022073401A1 (zh) 2020-10-09 2021-08-31 基于activiti的流程图调整方法、装置、电子设备和存储介质

Country Status (2)

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

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112231011B (zh) * 2020-10-09 2024-05-10 北京锐安科技有限公司 基于activiti的流程图调整方法、装置、电子设备和存储介质

Citations (5)

* 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
CN109684057A (zh) * 2018-12-11 2019-04-26 咪咕文化科技有限公司 任务处理方法、装置和存储介质
CN110610352A (zh) * 2019-09-16 2019-12-24 中国铁塔股份有限公司 一种流程处理方法、装置、电子设备及计算机可读存储介质
CN111738700A (zh) * 2020-07-24 2020-10-02 南京梦饷网络科技有限公司 用于控制业务流程的方法、计算设备和存储介质
CN112231011A (zh) * 2020-10-09 2021-01-15 北京锐安科技有限公司 基于activiti的流程图调整方法、装置、电子设备和存储介质

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2420929A1 (en) * 2010-08-18 2012-02-22 Software AG System and method for ad-hoc modification of a process during runtime
US9990411B2 (en) * 2015-12-03 2018-06-05 Successfactors, Inc. Platform for visually configuring a process flow across multiple discrete processes
CN106600238B (zh) * 2016-12-26 2020-03-10 上海轻维软件有限公司 基于Activiti流程引擎的网络业务开通实现的方法及装置
CN111522534A (zh) * 2020-03-25 2020-08-11 中国平安人寿保险股份有限公司 流程图可视化方法、装置及计算机可读存储介质

Patent Citations (5)

* 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
CN109684057A (zh) * 2018-12-11 2019-04-26 咪咕文化科技有限公司 任务处理方法、装置和存储介质
CN110610352A (zh) * 2019-09-16 2019-12-24 中国铁塔股份有限公司 一种流程处理方法、装置、电子设备及计算机可读存储介质
CN111738700A (zh) * 2020-07-24 2020-10-02 南京梦饷网络科技有限公司 用于控制业务流程的方法、计算设备和存储介质
CN112231011A (zh) * 2020-10-09 2021-01-15 北京锐安科技有限公司 基于activiti的流程图调整方法、装置、电子设备和存储介质

Also Published As

Publication number Publication date
CN112231011B (zh) 2024-05-10
CN112231011A (zh) 2021-01-15

Similar Documents

Publication Publication Date Title
CN107231402B (zh) Http请求处理方法、装置及系统
US11176160B2 (en) SQL interceptor for use with third party data analytics packages
US20170317962A1 (en) Message sending method, apparatus, and system, and server
US20180329644A1 (en) Data Pipeline Architecture for Analytics Processing Stack
CN110083650B (zh) 一种基于元数据自发现的数据查询接口自动生成方法
US11175796B2 (en) Menu management method, server, and system
CN111092877B (zh) 一种数据处理方法、装置、电子设备及存储介质
US8296774B2 (en) Service-based endpoint discovery for client-side load balancing
JP2015505387A (ja) 動的サービス統合システム及び方法
CN113032419B (zh) 一种多源数据聚合搜索方法、装置、设备及存储介质
CN111818175B (zh) 企业服务总线配置文件生成方法、装置、设备和存储介质
US20220245155A1 (en) Distributed multi-source data processing and publishing platform
CN110310198B (zh) 企业额度信息的管理方法、装置、设备及可读存储介质
CN113839977A (zh) 消息推送方法、装置、计算机设备及存储介质
CN112866421B (zh) 基于分布式缓存以及nsq的智能合约运行方法及装置
WO2022073401A1 (zh) 基于activiti的流程图调整方法、装置、电子设备和存储介质
WO2023103338A1 (zh) 一种数据处理方法、装置、设备及存储介质
WO2022046776A1 (en) Integration of video conferencing applications with on-demand database services
CN110929131A (zh) 数据导出方法、装置、设备及存储介质
CN113315689B (zh) 信息处理方法、系统、电子设备和可读存储介质
CN113626863A (zh) 数据处理方法及装置
CN111666509A (zh) 基于跨网络地理数据的云查询方法及系统
CN111327691B (zh) 业务处理方法、装置及电子设备
CN114070820A (zh) 一种域名重定向方法、装置、介质及电子设备
CN111078736A (zh) 一种数据聚合处理方法、装置、终端及存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21876921

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21876921

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205 DATED 26/09/2023)