WO2022007919A1 - Flow processing method and device, and computer system - Google Patents

Flow processing method and device, and computer system Download PDF

Info

Publication number
WO2022007919A1
WO2022007919A1 PCT/CN2021/105379 CN2021105379W WO2022007919A1 WO 2022007919 A1 WO2022007919 A1 WO 2022007919A1 CN 2021105379 W CN2021105379 W CN 2021105379W WO 2022007919 A1 WO2022007919 A1 WO 2022007919A1
Authority
WO
WIPO (PCT)
Prior art keywords
information
code
element object
constituent elements
attribute information
Prior art date
Application number
PCT/CN2021/105379
Other languages
French (fr)
Chinese (zh)
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 WO2022007919A1 publication Critical patent/WO2022007919A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/34Graphical or visual programming
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/20Software design
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/20Software design
    • G06F8/22Procedural
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management
    • G06Q10/103Workflow collaboration or project management

Definitions

  • the present application relates to the technical field of visual process design, and in particular, to a process processing method, device and computer system.
  • Visual application design is a fast and efficient programming method, through the drag-and-drop selection of pre-designed page elements (input box, drop-down selection box, search box, etc.), as well as the configuration of relevant copywriting, data and other information, etc. , you can design a specific application page.
  • the advantage is that application designers can complete the design of application pages without writing or only need to write very little program code, thus greatly improving the work efficiency and technical threshold of application designers, even non-professional personnel, etc.
  • Applications can be designed to meet the needs. This is especially valuable in the design of enterprise management applications. For example, financial personnel within the enterprise can design applications for financial reimbursement, and account managers can design customer relationship management applications, etc. Systematization and online service.
  • the pages to be designed can usually be divided into basic information, work collaboration, and data display.
  • the work collaboration part may involve a lot of process design parts.
  • the basic information required includes reimbursement type, expense occurrence date, amount, description, attachments, etc.
  • a form for entering the above information can be designed in the basic information page; in the process design part, Design the specific approval process, for example, the first-level supervisor approves, and then determines whether to submit it to the corresponding financial approval of the department according to the specific amount, and so on.
  • specific applications can be released online.
  • one way is to provide operation options for adding elements such as approvers and approval conditions, and designers can choose to add approvers at all levels to the process according to specific needs, and set flow conditions.
  • the process may include multiple branch judgments, and a relatively advanced process design can also be adopted.
  • elements such as nodes and lines required in the flowchart can be provided, so that designers can compare the existing or hand-drawn flowcharts, and draw the electronic version of the flowchart structure by dragging the nodes, lines, etc. , and then configure the data on specific nodes and connections, including specific approvers, circulation conditions, and related data, to complete the process design.
  • configuring the data in the flowchart requires the user to be aware of some of the concepts defined in the designer, such as events, activities, gateways, flow directions, and so on. Users need to continuously apply the above concepts in the process of configuring a complete process in order to convert the offline process into an online process.
  • the field barriers are relatively high, and the process conversion efficiency is low, which is not conducive to ordinary personnel to quickly and accurately realize the process.
  • the present application provides a process processing method, device and computer system, which can improve the efficiency of process design.
  • a process processing method includes:
  • the process code is generated according to the attribute information of the process element object and the layout relationship information.
  • a process processing method comprising:
  • Integrate the process processing code into the code of the associated application so that during the running of the application, the task to be executed of the next process node is generated, and the to-be-executed task flow is transferred to the next process node.
  • a method of generating an application including:
  • the operation interface includes a list of candidate form elements, an editing area, and operation options for configuring the content and/or attributes of the form elements;
  • the process code is generated
  • a form processing method that includes:
  • image data including a form diagram, and identifying the constituent elements included in the form diagram and the layout relationship information between the constituent elements according to the image data;
  • the form code is generated according to the data content and/or attribute information of the form element object and the layout relationship information.
  • a process processing device comprising:
  • an image recognition unit configured to obtain image data containing a flow chart, and identify constituent elements contained in the flow chart and layout relationship information between the constituent elements according to the image data;
  • mapping unit configured to map the constituent elements to a process element object defined by a programming language, and determine attribute information of the process element object
  • a code generation unit configured to generate a process code according to the attribute information of the process element object and the layout relationship information.
  • a process processing device comprising:
  • an image scanning unit used to obtain a scanned image of the paper flow chart
  • a relationship identification unit configured to identify the constituent elements contained in the flow chart and the layout relationship information between the constituent elements according to the scanned image
  • an element mapping unit configured to map the constituent elements to a process element object defined by a programming language, and determine attribute information of the process element object;
  • a code determination unit configured to generate a process processing code according to the attribute information of the process element object and the layout relationship information
  • a code processing unit configured to integrate the process processing code into the code of the associated application, so that during the running process of the application, the task to be executed of the next process node is generated, and the to-be-executed task is transferred to the next process node.
  • An apparatus for generating an application program comprising:
  • the interface providing unit is used to provide an operation interface for visual design of basic form data, the operation interface includes a list of candidate form elements, an editing area, and an operation for configuring the content and/or properties of the form elements options;
  • the basic code generation unit is used to generate basic form code according to the form elements selected to the editing area, the layout information between the form elements, and the configured content and/or attribute information;
  • a layout information identification unit configured to acquire image data containing a flow chart, and identify the constituent elements contained in the flow chart and the layout relationship information between the constituent elements according to the image data;
  • an object mapping unit configured to map the constituent elements to a process element object defined by a programming language, and determine attribute information of the process element object
  • a process code generation unit configured to generate process code according to the attribute information and layout relationship information of the process element object
  • a target code generation unit configured to combine the basic form code and the process processing code to generate the code of the target application
  • a target link providing unit configured to provide a link of the target application, so as to access the page of the target application according to the link, and after receiving the basic data through the page, generate the next flow according to the flow processing code node's task to be executed, and transfer the task flow to the next process node.
  • a form processing device comprising:
  • a layout information determining unit configured to acquire image data including a form diagram, and identify constituent elements included in the form diagram and layout relationship information between the constituent elements according to the image data;
  • an element object processing unit configured to map the constituent elements to form element objects defined by a programming language, and determine data content and/or attribute information associated with the form element objects;
  • a form code generation unit configured to generate a form code according to the data content and/or attribute information of the form element object and the layout relationship information.
  • the constituent elements contained therein and the layout relationship information between them can be identified by identifying the images containing the flowcharts, and the constituent elements can be mapped to a programming language
  • the process code may be generated according to the attribute information of the process element object and the layout relationship information.
  • FIG. 2 is a schematic diagram of an application architecture provided by an embodiment of the present application.
  • FIG. 3 is a flowchart of a first method provided by an embodiment of the present application.
  • FIG. 4 is a schematic diagram of process elements provided by an embodiment of the present application.
  • FIG. 5 is a schematic diagram of organizational structure simulation provided by an embodiment of the present application.
  • FIG. 6 is a flowchart of a second method provided by an embodiment of the present application.
  • FIG. 7 is a flowchart of a third method provided by an embodiment of the present application.
  • FIG. 9 is a schematic diagram of a first device provided by an embodiment of the present application.
  • FIG. 10 is a schematic diagram of a second device provided by an embodiment of the present application.
  • FIG. 11 is a schematic diagram of a third device provided by an embodiment of the present application.
  • FIG. 12 is a schematic diagram of a fourth device provided by an embodiment of the present application.
  • FIG. 13 is a schematic diagram of a computer system provided by an embodiment of the present application.
  • the basic data can be configured first. Specifically, as shown in Figure 1-2, the designer can Provides a variety of optional form elements, including single-line input box, multi-line input box, drop-down selection, etc., according to the type of specific basic data, etc., select form elements to build basic data pages. After selecting a specific form element, you can also configure the specific form element, including title, description information, prompt text, width, and so on.
  • the basic data page of the final configuration can be shown in Figure 1-3. It can include fields such as reimbursement type, expense occurrence date, amount, description, attachments, etc. After the subsequent application goes online, specific enterprise employees and other users can fill in the above information on the corresponding page and initiate a reimbursement request when they need reimbursement.
  • the designer page can provide optional process elements. These process elements are usually defined in the system after abstracting the type and function of the process elements. For example, It can include manual nodes, automatic nodes, branch nodes, aggregation nodes, CC nodes, and the like.
  • process of process design users can select the corresponding nodes and drag them to the central editing area according to their needs. For example, corresponding to the flowchart in Figure 1-1, you can first select an artificial node and drag it to the editing area.
  • the interface can also provide options for configuring the node, as shown in Figure 1-5, you can configure the approver rules required by the node, including selecting a specific approver, etc. After that, you can drag and drop more other nodes to the editing area, and you can also draw the connection between the nodes in the editing area, and set the line execution rules, as shown in Figure 1-6. Finally, after multiple node dragging, connection drawing, and setting of corresponding approver rules and line execution rules, the electronic flowchart shown in Figure 1-7 can be generated.
  • the electronic flow chart corresponds to a page data in a format such as Json in the background. After the electronic flow chart is designed and saved, it can be published through the designer page.
  • a corresponding access link can be generated for a specific application page, and users such as employees in the enterprise can access the page designed by the designer through the link.
  • the page accessed by the user can display the form for filling in the basic data. After the user completes the filling and submits, it can be transferred among the approvers at all levels according to the above-mentioned set process. .
  • the reimbursement initiator can also view the application content and the corresponding process status on its own page, and so on.
  • the flow chart on a carrier such as paper (for example, it can be a flow chart in an existing document, or manually Drawing flow chart, etc.) for identification (eg OCR identification, etc.), to identify the constituent elements contained in the flow chart, which may specifically include graphics, symbols, text, and the like.
  • identification eg OCR identification, etc.
  • the specific constituent elements can be mapped to the marking symbols in the process modeling, so as to determine the corresponding process modeling meaning.
  • the flowchart includes a rectangular box, which can be mapped as a "manual node", which means an activity that requires manual approval; a rounded rectangle is mapped as an "automatic node”, which means an activity that is automatically completed and does not require manual approval ,etc.
  • a process element object may specifically refer to an object defined by an object-oriented programming language.
  • a batch of process element objects may be pre-defined, which correspond to multiple markers in the process modeling, and establish The second rule base.
  • process processing code for example, Json code, etc. is generated.
  • the process processing code is saved and released online with the basic data, it can be used to submit the basic data, and based on the process processing code, the submitted application will be processed for subsequent circulation, including judging the circulation conditions, and circulation. To the approvers at all levels for processing, and so on.
  • the user only needs to prepare an existing paper flow chart, or a flow chart drawn by a drawing tool, or even a hand-drawn flow chart, and can be identified by means of OCR (if it is a paper flow chart) quality map, you can first scan it as an electronic image) for identification, and automatically convert the constituent elements contained in the flowchart into a process element object defined by a programming language, and determine the attribute information of the process element object, Further, according to the layout relationship in the flow chart, the flow processing code can be assembled into a part of the associated application code. In addition, the designer can also provide a manual configuration interface.
  • users can also make some fine-tuning, including modifying, adding, deleting some configurations, and so on. In this way, the user does not need to drag the process elements one by one, and it is no longer necessary to understand the meaning of the process element objects abstracted by the system.
  • the attribute information of the specific process element objects can also be automatically determined. Nodes or wires can be configured manually, or only need to be fine-tuned based on automatic recognition results. Therefore, the efficiency of process design can be improved, and the field barriers can be further reduced.
  • the embodiment of the present application can provide a visual application designer for users who have application visual design requirements. form exists.
  • the user can log in to the design page, and complete the visual design of the application through the editing interface provided in the page, which can include the design of the process, which can then be saved and published. .
  • the designer system can generate a corresponding link, and the user can share the link so that the user of the application can access the corresponding page.
  • Embodiment 1 of the present application provides a method for processing a process.
  • the method may specifically include:
  • S310 Acquire image data including a flow chart, and identify constituent elements included in the flow chart and layout relationship information between constituent elements according to the image data;
  • the image data of the flowchart may be obtained by scanning a paper flowchart, or may also be an electronic version of the flowchart drawn by a drawing tool.
  • the main flow chart may include the process involved in the application program that needs to be visually designed. The flow of transactions will vary, therefore, through enterprise management application design that needs to be personalized for a specific organization. Through the visual application designer, professionals in non-program development fields such as human resources in the organization can design applications. In the application process of such enterprise management, the design of the process is usually involved, for example, including the reimbursement approval process, the leave approval process, the recruitment follow-up process, and so on.
  • the constituent elements in the flowchart may include graphics, symbols, characters, etc., and the specific graphics may include node-type graphics such as rectangular boxes, and may also include connection-type graphics.
  • the text can include the text marked in the specific node to describe the specific approver and other information, for example, "approval by the first-level supervisor", “approval by the financial interface person”, etc.; or, the text marked on the connection line to describe the flow conditions , for example, "Amount greater than or equal to 10000", etc.
  • the above-mentioned constituent elements can be identified by techniques such as OCR, and in addition, the layout information between the specific constituent elements can be identified, including the upper and lower nodes connected by the connection, and so on.
  • S320 Map the constituent elements to a process element object defined by a programming language, and determine attribute information of the process element object.
  • the designer usually defines the process element object through the programming language, the specific code is expressed based on this process element object. Therefore, after identifying the constituent elements in the flowchart, they can be mapped to the process element object defined by the programming language, and the attribute information of the process element object can be determined.
  • the process element type may specifically be the type information that classifies and defines specific process elements in standards such as BPMN (Transaction Process Modeling and Marking), and may specifically include manual nodes, automatic nodes, connecting lines, etc.; process elements
  • the object can be an object defined by an object-oriented programming language (here, "object" is a concept in the field of object-oriented programming), wherein each process element object can correspond to its own ID, as well as attribute information such as name and description. Determining the attribute information of the process element object can enable the computer to identify the specific constituent elements in the flowchart, and then express the specific process in the form of specific executable code.
  • the definition of the process element object of the manual approval node class in the system can be expressed as follows:
  • the process element object of the human approval class node can have the following attribute fields: ID, name, type, description, props, position, user rules ( userRule), end rules (finishRule), actions (actions), etc.
  • attribute information on multiple attribute fields such as ID, name, and type of the corresponding process element object can be determined, thereby generating a complete process element object instance.
  • the specific flowchart may be drawn using standardized process modeling symbols.
  • BPMN Business Process Model and Notation
  • BPMN is a modeling language standard for building service flow charts, which defines how specific graphic elements form a flow chart, including the types and meanings of process elements corresponding to specific graphic elements, and so on.
  • the specific definition can be as shown in FIG. 4 .
  • the user can also customize or specify the type and meaning of the process element corresponding to the primitive.
  • a rectangle corresponds to a manual node
  • a rounded rectangle corresponds to an automatic node
  • the automatic node In the way of definition, it can also be that the rectangle corresponds to the automatic node, the rounded rectangle corresponds to the artificial node, and so on.
  • the attribute information of the process element object can also be determined.
  • a manual configuration entry can be directly provided on the recognition result page, and the user manually configures the attribute information of the specific process element object.
  • the flowchart can usually include some text information, which can express the attributes of specific constituent elements, automatic identification of the configuration information can also be realized.
  • the attribute information about the process element object may specifically include name, type information, description information, and the like.
  • the first mapping rule base may also store the process modeling meaning corresponding to the process element type. In this case, after determining the process element type corresponding to the constituent element according to the first mapping rule base, The name and/or category attribute of the process element object may also be determined according to the process modeling meaning.
  • the description information of the flow element object it can be determined according to the specific text content in the flow chart. For example, in one case, if the type of the process element object is a node that requires manual processing, the role information of the corresponding process processing personnel on the node can be determined according to the text element associated with the corresponding component element in the flowchart; Then, the target role identifier corresponding to the role information is determined from the pre-established organization member organizational structure information, and the description information of the process element object of the node type is determined according to the target role identifier.
  • the text associated with a node is "approval by first-level supervisor", then you can search for information such as the role ID belonging to the first-level supervisor in the associated organizational structure information, and configure it to the associated process node, and so on.
  • the organizational structure information may be created by a related tool such as instant messaging before the user creates a specific application through the current designer. For example, suppose that part of the organizational structure of a company can be shown in Figure 5. The various departments where specific employees are located, as well as the relationship between superiors and subordinates, can be reflected through organizational structure information. After completing the creation of organizational structure information in advance, the system can assign corresponding IDs to specific personnel, etc., and associate attributes such as departments and roles. Identify, and automatically complete the generation of relevant processing code.
  • the automatically executed action information such as an end action, etc.
  • the text element associated with the corresponding constituent element in the flow chart can be determined according to the text element associated with the corresponding constituent element in the flow chart.
  • the automatically executed action information can also be defined in the system in advance. After identifying an action that needs to be automatically executed, the ID and other information corresponding to the action can be determined, and the corresponding action execution code can be generated.
  • the execution rule information of the connecting line can be determined according to the text elements associated with the corresponding constituent elements in the flow chart, and the context information of the location where the connecting line is located.
  • the execution rule includes judgment on the relevant data
  • the target data object associated in the pre-configured basic data is determined according to the text element, so that the identification information of the connection line is determined according to the identification information of the target data object.
  • Execution rule information For example, in the flowchart shown in Figure 1-1, where the execution rule of a line is that the amount is greater than or equal to 10,000, the related data object is "amount".
  • the configuration of the basic data is also performed first.
  • the meaning of the text element can also be determined by identifying and understanding the text element in the flowchart; and then, according to the meaning of the text element, the attribute information of the flow element object is determined.
  • S330 Generate a process code according to the attribute information of the process element object and the layout relationship information.
  • process code can be generated.
  • specific process node objects can correspond to their respective process engines.
  • This process engine can be responsible for scheduling from a node to a node, who sent an event, identify event attributes, and connect lines. relationship, find the next node for approval, and so on.
  • the final generated process processing code will become a part of the associated application code. After the application goes online, the part involving process processing can be used for specific process flow according to this part of the process processing code.
  • a process code template may also be provided in advance, and a corresponding relationship between the process code template and the flowchart category identifier may be established. In this way, when a flow chart needs to be generated for a flow chart, the target category identification information to which the flow chart contained in the image data belongs can also be obtained, and then the attribute information and layout relationship information of the flow element object can be written into the process code template corresponding to the target category identification information to generate the process code.
  • the target category identification information may be directly included in the image data, for example, the image data may include information such as a two-dimensional code or a category code to represent the category identification of the flowchart. At this time, the target category identification information can be identified from the image data.
  • a process code template can also be provided in advance, and a corresponding relationship between the process code template and the keywords can be established; at this time, after the image data is identified, it can be determined that the identified Whether a target keyword is included in the text element of the processing code. For example, if a flowchart includes the keyword "reimbursement", you can use the reimbursement template to generate specific process codes, and so on.
  • operation options for step-by-step confirmation/adjustment of the generated process code may also be provided; then, according to the user's operation result, the process code template is optimized and adjusted.
  • the constituent elements contained therein and the layout relationship information between them can be identified by means of identifying an image containing a flowchart, and the constituent elements can be mapped to pass The process element object defined by the programming language, and the attribute information of the process element object is determined. Furthermore, the process code may be generated according to the attribute information of the process element object and the layout relationship information.
  • the second embodiment provides another process processing method for a specific implementation scheme of the first embodiment in practical applications.
  • the method may specifically include:
  • S620 Identify the constituent elements included in the flowchart and the layout relationship information between the constituent elements according to the scanned image;
  • S630 Map the constituent elements to a process element object defined by a programming language, and determine attribute information of the process element object;
  • S640 Generate a process processing code according to the attribute information of the process element object and the layout relationship information
  • S650 Integrate the process processing code into the code of the associated application, so that during the running of the application, a task to be executed of the next process node is generated, and the to-be-executed task flow is transferred to the next a process node.
  • the third embodiment provides a method for generating an application program for a specific application scenario.
  • the method may specifically include:
  • S710 Provide an operation interface for visually designing basic form data, where the operation interface includes a list of candidate form elements, an editing area, and operation options for configuring the content and/or attributes of the form elements;
  • S720 Generate a basic form code according to the form element selected to the editing area, the layout information between the form elements, and the configured content and/or attribute information;
  • S730 Acquire image data containing a flow chart, and identify constituent elements included in the flow chart and layout relationship information between the constituent elements according to the image data;
  • S740 Map the constituent elements to a process element object defined by a programming language, and determine attribute information of the process element object;
  • S750 Generate a process processing code according to the attribute information and layout relationship information of the process element object
  • S760 Combine the basic form code and the process processing code to generate the code of the target application
  • S770 Provide a link of the target application, so as to access the page of the target application according to the link, and after receiving basic data through the page, generate a task to be executed for the next process node according to the process code , and transfer the task flow to the next process node.
  • the application program includes an enterprise management application program.
  • flow processing status information may also be provided on the page of the target application according to the flow processing code.
  • the fourth embodiment also provides a form processing method.
  • the method may specifically include:
  • S810 Acquire image data including a form diagram, and identify constituent elements included in the form diagram and layout relationship information between the constituent elements according to the image data;
  • S820 Map the constituent elements to form element objects defined by a programming language, and determine the data content and/or attribute information associated with the form element objects;
  • S830 Generate a form code according to the data content and/or attribute information of the form element object and the layout relationship information.
  • an embodiment of the present application further provides a process processing apparatus, referring to FIG. 9 , the apparatus may specifically include:
  • the image recognition unit 910 is configured to acquire image data containing a flow chart, and identify the constituent elements contained in the flow chart and the layout relationship information between the constituent elements according to the image data;
  • mapping unit 920 configured to map the constituent elements to a process element object defined by a programming language, and determine attribute information of the process element object;
  • the code generation unit 930 is configured to generate a process code according to the attribute information of the process element object and the layout relationship information.
  • mapping unit may specifically include:
  • a first mapping subunit used for mapping the constituent elements to process element types in process modeling according to a pre-established first mapping rule base
  • the second mapping subunit is configured to map the constituent elements to the flow element objects according to the pre-established second mapping rule base and the flow element types corresponding to the constituent elements.
  • the first mapping rule base also stores the process modeling meaning corresponding to the process element type
  • the mapping unit can also be used to:
  • the name and/or category attribute of the process element object is determined.
  • the constituent elements contained in the flow chart include graphic elements;
  • the first mapping rule base may specifically store the correspondence between the graphic elements and the types of process elements in the process modeling.
  • constituent elements included in the flow chart include text elements
  • the attribute information of the process element object includes: description information of the process element object;
  • mapping unit can also be used for:
  • the description information of the flow element object is determined by identifying the text elements in the flow chart.
  • mapping unit can be specifically used for:
  • the type of the process element object is a node that needs manual processing, then determine the role information of the corresponding process processing personnel on the node according to the text element associated with the corresponding component element in the flowchart;
  • the target role identifier corresponding to the role information is determined from the pre-established organizational structure information of institutional members, and the description information of the process element object of the node type is determined according to the target role identifier.
  • mapping unit can be specifically used for:
  • the automatically executed action information is determined according to the text element associated with the corresponding constituent element in the flow chart.
  • mapping unit can be specifically used for:
  • the execution rule information of the connecting line is determined according to the text element associated with the corresponding constituent element in the flowchart and the context information of the position of the connecting line.
  • mapping unit can also be used for:
  • execution rule includes judgment on related data, determine the target data object associated in the preconfigured basic data according to the text element, so as to determine the execution rule of the connection line according to the identification information of the target data object information.
  • the embodiment of the present application further provides a process processing device, see FIG. 10 , the device may specifically include:
  • an image scanning unit 1010 configured to obtain a scanned image of a paper flow chart
  • a relationship identification unit 1020 configured to identify the constituent elements contained in the flowchart and the layout relationship information between the constituent elements according to the scanned image
  • an element mapping unit 1030 configured to map the constituent elements to a process element object defined by a programming language, and determine attribute information of the process element object;
  • a code determination unit 1040 configured to generate a process processing code according to the attribute information of the process element object and the layout relationship information
  • the code processing unit 1050 is configured to integrate the process processing code into the code of the associated application, so as to generate the to-be-executed task of the next process node during the running process of the application, and to convert the to-be-executed task Flow goes to the next process node.
  • the embodiment of the present application further provides a device for generating an application program.
  • the device may specifically include:
  • the interface providing unit 1110 is used to provide an operation interface for visual design of basic form data, the operation interface includes a list of candidate form elements, an editing area, and an interface for configuring the content and/or properties of the form elements. Action options;
  • a basic code generation unit 1120 configured to generate basic form codes according to the form elements selected to the editing area, the layout information between the form elements, and the configured content and/or attribute information;
  • the layout information identification unit 1130 is used to obtain the image data containing the flow chart, and identify the constituent elements contained in the flow chart and the layout relationship information between the constituent elements according to the image data;
  • an object mapping unit 1140 configured to map the constituent elements to a process element object defined by a programming language, and determine attribute information of the process element object;
  • a process code generation unit 1150 configured to generate process code according to the attribute information and layout relationship information of the process element object
  • the target code generation unit 1160 is used to generate the code of the target application by combining the basic form code and the flow processing code;
  • a target link providing unit 1170 is configured to provide a link of the target application, so as to access the page of the target application according to the link, and after receiving the basic data through the page, generate the next step according to the process code.
  • the to-be-executed task of the process node, and the task flow is transferred to the next process node.
  • the embodiment of the present application further provides a form processing apparatus, referring to FIG. 12 , the apparatus may specifically include:
  • a layout information determining unit 1210 configured to acquire image data including a form diagram, and identify the constituent elements included in the form diagram and the layout relationship information between the constituent elements according to the image data;
  • an element object processing unit 1220 configured to map the constituent elements to form element objects defined by a programming language, and determine data content and/or attribute information associated with the form element objects;
  • the form code generating unit 1230 is configured to generate a form code according to the data content and/or attribute information of the form element object and the layout relationship information.
  • an embodiment of the present application further provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, implements the steps of the method described in any one of the foregoing method embodiments.
  • the memory is used to store program instructions that, when read and executed by the one or more processors, perform any one of the foregoing method embodiments the steps of the method.
  • FIG. 13 exemplarily shows the architecture of the computer system 1300 , which may specifically include a processor 1310 , a video display adapter 1311 , a disk drive 1312 , an input/output interface 1313 , a network interface 1314 , and a memory 1320 .
  • the processor 1310 , the video display adapter 1311 , the disk drive 1312 , the input/output interface 1313 , and the network interface 1314 , and the memory 1320 may be communicatively connected through the communication bus 1330 .
  • the processor 1310 can be implemented by a general-purpose CPU (Central Processing Unit, central processing unit), a microprocessor, an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), or one or more integrated circuits, etc. Execute relevant programs to realize the technical solutions provided by this application.
  • a general-purpose CPU Central Processing Unit, central processing unit
  • a microprocessor central processing unit
  • ASIC Application Specific Integrated Circuit
  • the memory 1320 may be implemented in the form of a ROM (Read Only Memory, read-only memory), a RAM (Random Access Memory, random access memory), a static storage device, a dynamic storage device, and the like.
  • the memory 1320 may store an operating system 1321 for controlling the operation of the computer system 1300 , and a basic input output system (BIOS) 1322 for controlling the low-level operations of the computer system 1300 .
  • BIOS basic input output system
  • a web browser 1323, a data storage management system 1324, a flow design processing system 1325, and the like can also be stored.
  • the above-mentioned process design processing system 1325 may be an application program that specifically implements the operations of the foregoing steps in this embodiment of the present application. In a word, when the technical solutions provided by the present application are implemented through software or firmware, the relevant program codes are stored in the memory 1320 and called and executed by the processor 1310.
  • the input/output interface 1313 is used to connect input/output modules to realize information input and output.
  • the input/output/module can be configured in the device as a component (not shown in the figure), or can be externally connected to the device to provide corresponding functions.
  • the input device may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc.
  • the output device may include a display, a speaker, a vibrator, an indicator light, and the like.
  • the network interface 1314 is used to connect a communication module (not shown in the figure), so as to realize the communication interaction between the device and other devices.
  • the communication module may implement communication through wired means (eg, USB, network cable, etc.), or may implement communication through wireless means (eg, mobile network, WIFI, Bluetooth, etc.).
  • Bus 1330 includes a path that transfers information between the various components of the device (eg, processor 1310, video display adapter 1311, disk drive 1312, input/output interface 1313, network interface 1314, and memory 1320).
  • processor 1310 the various components of the device (eg, processor 1310, video display adapter 1311, disk drive 1312, input/output interface 1313, network interface 1314, and memory 1320).
  • the above device only shows the processor 1310, the video display adapter 1311, the disk drive 1312, the input/output interface 1313, the network interface 1314, the memory 1320, the bus 1330, etc., in the specific implementation process, the A device may also include other components necessary for proper operation.
  • the above-mentioned device may also include only the necessary components to realize the solution of the present application, instead of all the components shown in the figures.

Abstract

Disclosed in embodiments of the present application are a flow processing method and device, and a computer system. The method comprises: obtaining image data comprising a flowchart, and recognizing, according to the image data, constituent elements comprised in the flowchart and layout relation information among the constituent elements; mapping the constituent elements into flow element objects defined by means of a programming language, and determining attribute information of the flow element objects; and generating a flow processing code according to the attribute information of the flow element objects and the layout relation information. By means of the embodiments of the present application, the flow designing and processing achieving efficiency can be improved.

Description

流程处理方法、装置及计算机系统Process processing method, device and computer system
本申请要求2020年07月09日递交的申请号为202010658408.3、发明名称为“流程处理方法、装置及计算机系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application with the application number 202010658408.3 filed on July 9, 2020, and the invention title is "Process Processing Method, Device and Computer System", the entire contents of which are incorporated into this application by reference.
技术领域technical field
本申请涉及可视化流程设计技术领域,特别是涉及流程处理方法、装置及计算机系统。The present application relates to the technical field of visual process design, and in particular, to a process processing method, device and computer system.
背景技术Background technique
可视化应用程序设计是一种快捷、高效的程序设计方法,通过对预先设计好的页面元素(输入框、下拉选择框、搜索框等)的拖拽选择,以及相关文案、数据等信息的配置等,便可以设计出具体的应用页面。其优点是应用设计人员可以不用编写或者只需编写很少的程序代码,就能完成应用页面的设计,从而极大地提高了应用设计人员的工作效率以及技术门槛,即使是非专业的人员等,也可以设计出符合需求的应用程序。这在企业管理类应用程序的设计方面的价值尤为明显,例如,企业内部的财务人员可以设计出财务报销方面的应用,客户经理人员可以设计出客户关系管理应用,等等,实现企业管理各项服务的系统化、线上化。Visual application design is a fast and efficient programming method, through the drag-and-drop selection of pre-designed page elements (input box, drop-down selection box, search box, etc.), as well as the configuration of relevant copywriting, data and other information, etc. , you can design a specific application page. The advantage is that application designers can complete the design of application pages without writing or only need to write very little program code, thus greatly improving the work efficiency and technical threshold of application designers, even non-professional personnel, etc. Applications can be designed to meet the needs. This is especially valuable in the design of enterprise management applications. For example, financial personnel within the enterprise can design applications for financial reimbursement, and account managers can design customer relationship management applications, etc. Systematization and online service.
企业管理类应用的可视化应用设计器中,通常可以将待设计的页面分为基础信息、工作协同、数据展示等几个方面。其中工作协同部分可能会涉及到很多流程设计的部分。例如,某财务报销类的应用,所需的基础信息包括报销类型、费用发生日期、金额、描述、附件等,基础信息页面中就可以设计出用于录入上述信息的表单;在流程设计部分,对具体的审批流程进行设计,例如,首先由一级主管审批,然后根据具体金额确定是否提交到部门对应的财务审批,等等。完成基础信息页面以及流程设计后,可以对具体的应用进行上线发布,具体的企业员工在需要进行财务报销时,便可以通过基础信息页面填写具体需要报销的数据,之后,会按照设定好的流程流转到各级审批人员处进行审批,还可以通过页面查询各级审批节点的状态,等等。In the visual application designer of enterprise management applications, the pages to be designed can usually be divided into basic information, work collaboration, and data display. The work collaboration part may involve a lot of process design parts. For example, for a financial reimbursement application, the basic information required includes reimbursement type, expense occurrence date, amount, description, attachments, etc. A form for entering the above information can be designed in the basic information page; in the process design part, Design the specific approval process, for example, the first-level supervisor approves, and then determines whether to submit it to the corresponding financial approval of the department according to the specific amount, and so on. After completing the basic information page and process design, specific applications can be released online. When specific enterprise employees need to make financial reimbursement, they can fill in the specific data that needs to be reimbursed through the basic information page, and then they will follow the settings. The process flow is transferred to the approvers at all levels for approval, and the status of the approval nodes at all levels can also be queried through the page, and so on.
其中,在流程设计器中,一种方式是提供添加审批人、审批条件等元素的操作选项,由设计人员根据具体的需求选择向流程中添加各级审批人,设定流转条件等。或者,针对一些比较复杂的流程,流程中可能包括多个分支判断,则还可以采用一种相对高级的流程设计。具体的,可以提供流程图中所需的节点、线条等元素,使得设计人员可以对照已有的或者手绘的流程图,通过对节点、线条等进行拖拽的方式,绘制电子版的流程图结构,之后再对具体节点、连线上的数据,包括具体的审批人、流转条件、相关的数据等进行配置,以完成流程设计。Among them, in the process designer, one way is to provide operation options for adding elements such as approvers and approval conditions, and designers can choose to add approvers at all levels to the process according to specific needs, and set flow conditions. Or, for some more complex processes, the process may include multiple branch judgments, and a relatively advanced process design can also be adopted. Specifically, elements such as nodes and lines required in the flowchart can be provided, so that designers can compare the existing or hand-drawn flowcharts, and draw the electronic version of the flowchart structure by dragging the nodes, lines, etc. , and then configure the data on specific nodes and connections, including specific approvers, circulation conditions, and related data, to complete the process design.
但是,在对流程图中的数据进行配置时,需要用户感知设计器中定义的一些概念,例如,事件、活动、网关、流向,等等。用户在配置一个完整的流程过程中需要不断运用到上述概念,才能将线下的流程转换成线上的流程。这对于非专业人员来说,领域壁垒比较高,流程转化效率较低,不利于普通人员快速、准确地实现流程。However, configuring the data in the flowchart requires the user to be aware of some of the concepts defined in the designer, such as events, activities, gateways, flow directions, and so on. Users need to continuously apply the above concepts in the process of configuring a complete process in order to convert the offline process into an online process. For non-professionals, the field barriers are relatively high, and the process conversion efficiency is low, which is not conducive to ordinary personnel to quickly and accurately realize the process.
因此,如何更方便快捷地进行可视化流程设计,成为需要本领域技术人员解决的技术问题。Therefore, how to design a visual process more conveniently and quickly has become a technical problem that needs to be solved by those skilled in the art.
发明内容SUMMARY OF THE INVENTION
本申请提供了流程处理方法、装置及计算机系统,能够提升流程设计效率。The present application provides a process processing method, device and computer system, which can improve the efficiency of process design.
本申请提供了如下方案:This application provides the following solutions:
一种流程处理方法包括:A process processing method includes:
获取包含有流程图的图像数据,并根据图像数据识别出所述流程图中包含的组成元素以及组成元素之间的布局关系信息;Acquiring image data containing a flow chart, and identifying the constituent elements included in the flow chart and the layout relationship information between the constituent elements according to the image data;
将所述组成元素映射为通过编程语言定义的流程元素对象,并确定所述流程元素对象的属性信息;Mapping the constituent elements into a process element object defined by a programming language, and determining attribute information of the process element object;
根据所述流程元素对象的属性信息以及所述布局关系信息,生成流程处理代码。The process code is generated according to the attribute information of the process element object and the layout relationship information.
一种流程处理方法,包括:A process processing method, comprising:
获取纸质流程图的扫描图像;Obtain scanned images of paper flowcharts;
根据扫描图像识别出所述流程图中包含的组成元素以及组成元素之间的布局关系信息;Identify the constituent elements contained in the flowchart and the layout relationship information between the constituent elements according to the scanned image;
将所述组成元素映射为通过编程语言定义的流程元素对象,并确定所述流程元素对象的属性信息;Mapping the constituent elements into a process element object defined by a programming language, and determining attribute information of the process element object;
根据所述流程元素对象的属性信息以及所述布局关系信息,生成流程处理代码;generating process processing code according to the attribute information of the process element object and the layout relationship information;
将所述流程处理代码集成到关联的应用程序的代码中,以便在所述应用程序运行过程中,生成下一流程节点的待执行任务,并将所述待执行任务流转到所述下一流程节点。Integrate the process processing code into the code of the associated application, so that during the running of the application, the task to be executed of the next process node is generated, and the to-be-executed task flow is transferred to the next process node.
一种生成应用程序的方法,包括:A method of generating an application including:
提供用于对基础表单数据进行可视化设计的操作界面,所述操作界面中包括候选表单元素列表,编辑区域,以及用于对表单元素的内容和/或属性进行配置的操作选项;Provide an operation interface for visual design of basic form data, the operation interface includes a list of candidate form elements, an editing area, and operation options for configuring the content and/or attributes of the form elements;
根据被选择到编辑区域的表单元素,表单元素之间的布局信息,以及被配置的内容和/或属性信息,生成基础表单代码;Generate basic form code according to the form elements selected to the editing area, the layout information between the form elements, and the configured content and/or attribute information;
获取包含有流程图的图像数据,并根据图像数据识别出所述流程图中包含的组成元素以及组成元素之间的布局关系信息;Acquiring image data containing a flow chart, and identifying the constituent elements included in the flow chart and the layout relationship information between the constituent elements according to the image data;
将所述组成元素映射为通过编程语言定义的流程元素对象,并确定所述流程元素对象的属性信息;Mapping the constituent elements into a process element object defined by a programming language, and determining attribute information of the process element object;
根据所述流程元素对象的属性信息以及布局关系信息,生成流程处理代码;According to the attribute information of the process element object and the layout relationship information, the process code is generated;
将所述基础表单代码以及所述流程处理代码组合生成目标应用程序的代码;Combining the basic form code and the process processing code to generate the code of the target application;
提供所述目标应用程序的链接,以便根据所述链接访问所述目标应用程序的页面,通过所述页面接收到基础数据后,根据所述流程处理代码生成下一流程节点的待执行任务,并将所述任务流转到所述下一流程节点。Provide the link of the target application, so as to access the page of the target application according to the link, after receiving the basic data through the page, generate the to-be-executed task of the next process node according to the process code, and Transfer the task flow to the next process node.
一种表单处理方法,包括:A form processing method that includes:
获取包含有表单图的图像数据,并根据图像数据识别出所述表单图中包含的组成元素以及组成元素之间的布局关系信息;Obtaining image data including a form diagram, and identifying the constituent elements included in the form diagram and the layout relationship information between the constituent elements according to the image data;
将所述组成元素映射为通过编程语言定义的表单元素对象,并确定所述表单元素对象关联的数据内容和/或属性信息;mapping the constituent elements to form element objects defined by a programming language, and determining data content and/or attribute information associated with the form element objects;
根据所述表单元素对象的数据内容和/或属性信息以及所述布局关系信息,生成表单代码。The form code is generated according to the data content and/or attribute information of the form element object and the layout relationship information.
一种流程处理装置,包括:A process processing device, comprising:
图像识别单元,用于获取包含有流程图的图像数据,并根据图像数据识别出所述流程图中包含的组成元素以及组成元素之间的布局关系信息;an image recognition unit, configured to obtain image data containing a flow chart, and identify constituent elements contained in the flow chart and layout relationship information between the constituent elements according to the image data;
映射单元,用于将所述组成元素映射为通过编程语言定义的流程元素对象,并确定所述流程元素对象的属性信息;a mapping unit, configured to map the constituent elements to a process element object defined by a programming language, and determine attribute information of the process element object;
代码生成单元,用于根据所述流程元素对象的属性信息以及所述布局关系信息,生成流程处理代码。A code generation unit, configured to generate a process code according to the attribute information of the process element object and the layout relationship information.
一种流程处理装置,包括:A process processing device, comprising:
图像扫描单元,用于获取纸质流程图的扫描图像;an image scanning unit, used to obtain a scanned image of the paper flow chart;
关系识别单元,用于根据扫描图像识别出所述流程图中包含的组成元素以及组成元素之间的布局关系信息;A relationship identification unit, configured to identify the constituent elements contained in the flow chart and the layout relationship information between the constituent elements according to the scanned image;
元素映射单元,用于将所述组成元素映射为通过编程语言定义的流程元素对象,并确定所述流程元素对象的属性信息;an element mapping unit, configured to map the constituent elements to a process element object defined by a programming language, and determine attribute information of the process element object;
代码确定单元,用于根据所述流程元素对象的属性信息以及所述布局关系信息,生成流程处理代码;a code determination unit, configured to generate a process processing code according to the attribute information of the process element object and the layout relationship information;
代码处理单元,用于将所述流程处理代码集成到关联的应用程序的代码中,以便在所述应用程序运行过程中,生成下一流程节点的待执行任务,并将所述待执行任务流转到所述下一流程节点。A code processing unit, configured to integrate the process processing code into the code of the associated application, so that during the running process of the application, the task to be executed of the next process node is generated, and the to-be-executed task is transferred to the next process node.
一种生成应用程序的装置,包括:An apparatus for generating an application program, comprising:
界面提供单元,用于提供用于对基础表单数据进行可视化设计的操作界面,所述操作界面中包括候选表单元素列表,编辑区域,以及用于对表单元素的内容和/或属性进行配置的操作选项;The interface providing unit is used to provide an operation interface for visual design of basic form data, the operation interface includes a list of candidate form elements, an editing area, and an operation for configuring the content and/or properties of the form elements options;
基础代码生成单元,用于根据被选择到编辑区域的表单元素,表单元素之间的布局信息,以及被配置的内容和/或属性信息,生成基础表单代码;The basic code generation unit is used to generate basic form code according to the form elements selected to the editing area, the layout information between the form elements, and the configured content and/or attribute information;
布局信息识别单元,用于获取包含有流程图的图像数据,并根据图像数据识别出所述流程图中包含的组成元素以及组成元素之间的布局关系信息;a layout information identification unit, configured to acquire image data containing a flow chart, and identify the constituent elements contained in the flow chart and the layout relationship information between the constituent elements according to the image data;
对象映射单元,用于将所述组成元素映射为通过编程语言定义的流程元素对象,并确定所述流程元素对象的属性信息;an object mapping unit, configured to map the constituent elements to a process element object defined by a programming language, and determine attribute information of the process element object;
流程代码生成单元,用于根据所述流程元素对象的属性信息以及布局关系信息,生成流程处理代码;a process code generation unit, configured to generate process code according to the attribute information and layout relationship information of the process element object;
目标代码生成单元,用于将所述基础表单代码以及所述流程处理代码组合生成目标应用程序的代码;a target code generation unit, configured to combine the basic form code and the process processing code to generate the code of the target application;
目标链接提供单元,用于提供所述目标应用程序的链接,以便根据所述链接访问所述目标应用程序的页面,通过所述页面接收到基础数据后,根据所述流程处理代码生成下一流程节点的待执行任务,并将所述任务流转到所述下一流程节点。A target link providing unit, configured to provide a link of the target application, so as to access the page of the target application according to the link, and after receiving the basic data through the page, generate the next flow according to the flow processing code node's task to be executed, and transfer the task flow to the next process node.
一种表单处理装置,包括:A form processing device, comprising:
布局信息确定单元,用于获取包含有表单图的图像数据,并根据图像数据识别出所述表单图中包含的组成元素以及组成元素之间的布局关系信息;a layout information determining unit, configured to acquire image data including a form diagram, and identify constituent elements included in the form diagram and layout relationship information between the constituent elements according to the image data;
元素对象处理单元,用于将所述组成元素映射为通过编程语言定义的表单元素对象,并确定所述表单元素对象关联的数据内容和/或属性信息;an element object processing unit, configured to map the constituent elements to form element objects defined by a programming language, and determine data content and/or attribute information associated with the form element objects;
表单代码生成单元,用于根据所述表单元素对象的数据内容和/或属性信息以及所述布局关系信息,生成表单代码。A form code generation unit, configured to generate a form code according to the data content and/or attribute information of the form element object and the layout relationship information.
根据本申请提供的具体实施例,本申请公开了以下技术效果:According to the specific embodiments provided by the application, the application discloses the following technical effects:
通过本申请实施例提供的技术方案,可以通过对包含有流程图的图像进行识别的方式,识别出其中包含的组成元素以及相互之间的布局关系信息,并且可以将组成元素映射为通过编程语言定义的流程元素对象,并确定出所述流程元素对象的属性信息。进而,可以根据所述流程元素对象的属性信息以及所述布局关系信息,生成流程处理代码。通过该方案,在进行可视化流程设计时,不再需要用户一一拖拽具体的图元,或者对图元的属性进行手动配置(即使需要也只是执行部分微调处理),而是可以直接自动识别获得,因此,可以提升可视化流程设计的效率,相对于现有技术的方案,可以进一步降低领域壁垒,使得非程序开发领域的人员也可以方便高效地进行应用程序设计。Through the technical solutions provided by the embodiments of the present application, the constituent elements contained therein and the layout relationship information between them can be identified by identifying the images containing the flowcharts, and the constituent elements can be mapped to a programming language Define the process element object, and determine the attribute information of the process element object. Furthermore, the process code may be generated according to the attribute information of the process element object and the layout relationship information. Through this solution, when designing a visual process, it is no longer necessary for the user to drag and drop specific primitives one by one, or manually configure the attributes of the primitives (even if necessary, only part of the fine-tuning processing is performed), but can be directly and automatically recognized. Therefore, the efficiency of visual process design can be improved, and compared with the solutions of the prior art, the field barriers can be further reduced, so that personnel in the non-program development field can also conveniently and efficiently design application programs.
当然,实施本申请的任一产品并不一定需要同时达到以上所述的所有优点。Of course, implementing any product of the present application does not necessarily need to achieve all of the advantages described above at the same time.
附图说明Description of drawings
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施 例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the accompanying drawings required in the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some of the present application. In the embodiments, for those of ordinary skill in the art, other drawings can also be obtained according to these drawings without any creative effort.
图1-1至图1-9是本申请实施例提供的应用示意图;1-1 to 1-9 are schematic diagrams of applications provided by embodiments of the present application;
图2是本申请实施例提供的应用架构示意图;2 is a schematic diagram of an application architecture provided by an embodiment of the present application;
图3是本申请实施例提供的第一方法的流程图;3 is a flowchart of a first method provided by an embodiment of the present application;
图4是本申请实施例提供的流程元素示意图;FIG. 4 is a schematic diagram of process elements provided by an embodiment of the present application;
图5本申请实施例提供的组织架构模拟示意图;FIG. 5 is a schematic diagram of organizational structure simulation provided by an embodiment of the present application;
图6是本申请实施例提供的第二方法的流程图;6 is a flowchart of a second method provided by an embodiment of the present application;
图7是本申请实施例提供的第三方法的流程图;7 is a flowchart of a third method provided by an embodiment of the present application;
图8是本申请实施例提供的第四方法的流程图;8 is a flowchart of a fourth method provided by an embodiment of the present application;
图9是本申请实施例提供的第一装置的示意图;9 is a schematic diagram of a first device provided by an embodiment of the present application;
图10是本申请实施例提供的第二装置的示意图;10 is a schematic diagram of a second device provided by an embodiment of the present application;
图11是本申请实施例提供的第三装置的示意图;11 is a schematic diagram of a third device provided by an embodiment of the present application;
图12是本申请实施例提供的第四装置的示意图;12 is a schematic diagram of a fourth device provided by an embodiment of the present application;
图13是本申请实施例提供的计算机系统的示意图。FIG. 13 is a schematic diagram of a computer system provided by an embodiment of the present application.
具体实施方式detailed description
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, but not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art fall within the protection scope of this application.
为便于将本申请实施例提供的技术方案与现有技术中的方案进行对比,下面首先对背景技术部分提到的相对高效的可视化的流程处理方案进行介绍。In order to facilitate the comparison of the technical solutions provided by the embodiments of the present application with the solutions in the prior art, the relatively efficient visual process processing solution mentioned in the background technology section is first introduced below.
假设某企业的财务报销审批流程如图1-1所示,在利用可视化应用设计器进行应用设计时,首先可以对基础数据进行配置,具体的,如图1-2所示,设计器中可以提供多种可选的表单元素,包括单行输入框、多行输入框、下拉选择等等,可以根据具体基础数据的类型等,选择表单元素,进行基础数据页面的搭建。在选择具体某个表单元素后,还可以对具体表单元素进行配置,包括标题,描述信息,提示文字,宽度,等等。最终配置完成的基础数据页面可以如图1-3所示。其中可以包括报销类型、费用发生日期、金额、描述、附件等字段,后续应用上线后,具体的企业员工等用户在需要进行报销时,便可以在相应的页面中填写上述信息并发起报销请求。Suppose the financial reimbursement approval process of an enterprise is shown in Figure 1-1. When using the visual application designer for application design, the basic data can be configured first. Specifically, as shown in Figure 1-2, the designer can Provides a variety of optional form elements, including single-line input box, multi-line input box, drop-down selection, etc., according to the type of specific basic data, etc., select form elements to build basic data pages. After selecting a specific form element, you can also configure the specific form element, including title, description information, prompt text, width, and so on. The basic data page of the final configuration can be shown in Figure 1-3. It can include fields such as reimbursement type, expense occurrence date, amount, description, attachments, etc. After the subsequent application goes online, specific enterprise employees and other users can fill in the above information on the corresponding page and initiate a reimbursement request when they need reimbursement.
完成基础数据的配置后,可以进入到具体的审批流程配置。为进行流程配置,如图1-4所示,设计器页面中可以提供可供选择的流程元素,这些流程元素通常是系统中按照流程元素的类型、功能等进行抽象后进行定义的,例如,可以包括人工节点、自动节点、 分支节点、聚合节点、抄送节点等。用户在进行流程设计的过程中,可以根据需求从中选择对应的节点拖拽到中央的编辑区。例如,对应图1-1中的流程图,首先可以选择一个人工节点拖拽到编辑区。在编辑区选择具体的节点后,界面中还可以提供用于对节点进行配置的选项,如图1-5所示,可以对节点所需的审批人规则进行配置,包括选择具体的审批人,等等。之后还可以将更多的其他节点拖拽到编辑区,还可以在编辑区绘制节点之间的连线,并设置线执行规则,如图1-6所示。最终经过多次的节点拖拽,连线绘制,以及相应的审批人规则、线执行规则进行设置完成后,便可以生成如图1-7所示的电子流程图。该电子流程图在后台对应着一份Json等格式的页面数据,在将电子流程图完成设计并保存后,可以通过设计器页面进行发布。之后,可以为具体的应用页面生成对应的访问链接,企业内的员工等用户便可以通过该链接访问到上述通过设计器设计的页面。例如,如图1-8所示,用户访问的页面中可以展示出用于填写基础数据的表单,在用户完成填写并提交之后,便可以按照前述设置的流程在各级审批人之间进行流转。如图1-9所示,报销发起人还可以在自己的页面中查看到申请内容,以及相应的流程状态,等等。After completing the basic data configuration, you can enter the specific approval process configuration. For process configuration, as shown in Figure 1-4, the designer page can provide optional process elements. These process elements are usually defined in the system after abstracting the type and function of the process elements. For example, It can include manual nodes, automatic nodes, branch nodes, aggregation nodes, CC nodes, and the like. In the process of process design, users can select the corresponding nodes and drag them to the central editing area according to their needs. For example, corresponding to the flowchart in Figure 1-1, you can first select an artificial node and drag it to the editing area. After selecting a specific node in the editing area, the interface can also provide options for configuring the node, as shown in Figure 1-5, you can configure the approver rules required by the node, including selecting a specific approver, etc. After that, you can drag and drop more other nodes to the editing area, and you can also draw the connection between the nodes in the editing area, and set the line execution rules, as shown in Figure 1-6. Finally, after multiple node dragging, connection drawing, and setting of corresponding approver rules and line execution rules, the electronic flowchart shown in Figure 1-7 can be generated. The electronic flow chart corresponds to a page data in a format such as Json in the background. After the electronic flow chart is designed and saved, it can be published through the designer page. After that, a corresponding access link can be generated for a specific application page, and users such as employees in the enterprise can access the page designed by the designer through the link. For example, as shown in Figure 1-8, the page accessed by the user can display the form for filling in the basic data. After the user completes the filling and submits, it can be transferred among the approvers at all levels according to the above-mentioned set process. . As shown in Figure 1-9, the reimbursement initiator can also view the application content and the corresponding process status on its own page, and so on.
可见,在上述进行可视化流程设计的过程中,需要用户理解什么是人工节点,什么是自动节点、分支节点、聚合节点,等等,另外,还需要针对具体节点上的审批人规则,节点间的线执行规则等进行手动配置,领域壁垒比较高,过程比较耗时。It can be seen that in the above process of visual process design, the user needs to understand what is a manual node, what is an automatic node, branch node, aggregation node, etc. In addition, it is also necessary to target the approver rules on specific nodes, and between nodes. Manual configuration of line execution rules, etc., the field barriers are relatively high, and the process is time-consuming.
针对上述情况,在本申请实施例中提供了新的解决方案,在该方案中,可以通过对纸质等载体上的流程图(例如,可以是已有的文献资料中的流程图,或者手动绘制的流程图等)进行识别(例如OCR识别等)的方式,识别出其中的流程图中包含的组成元素,具体可以包括图形、符号、文字等等。之后,可以根据预先建立的规则库,将具体的组成元素映射为流程建模中的标记符号,以便确定对应的流程建模含义。例如,识别出流程图中包括一矩形框,可以映射为“人工节点”,含义是需要人工审批的活动;将圆角矩形映射为“自动节点”,含义是自动完成,不需要人工审批的活动,等等。在完成上述映射后,还可以根据具体的流程建模含义,映射为流程元素对象,并确定出对应的属性信息(名称,描述信息等)。其中,所谓的流程元素对象具体可以是指通过面向对象的编程语言定义的对象,具体实现时,可以预先定义一批流程元素对象,分别与流程建模中的多个标记符号相对应,并建立第二规则库。这样,在识别出某个组成元素对应的流程建模含义后,可以根据第二规则库映射为对应的流程元素对象。之后,还可以通过自动识别和/或人工配置等方式,确定出流程元素对象的属性信息。最后,再根据所述流程元素对象的属性信息以及所述布局关系信息,生成流程处理代码,例如,Json代码,等等。该流程处理代码在进行保存并与基础数据进行上线发布后,可以用于进行基础数据的提交,并基于流程处理代码,对提交的申请进行后续的流转处理,包括对流转条件进行判断,并流转到各级审批人处进行处理,等等。In view of the above situation, a new solution is provided in the embodiments of the present application. In this solution, the flow chart on a carrier such as paper (for example, it can be a flow chart in an existing document, or manually Drawing flow chart, etc.) for identification (eg OCR identification, etc.), to identify the constituent elements contained in the flow chart, which may specifically include graphics, symbols, text, and the like. Afterwards, according to the pre-established rule base, the specific constituent elements can be mapped to the marking symbols in the process modeling, so as to determine the corresponding process modeling meaning. For example, it is recognized that the flowchart includes a rectangular box, which can be mapped as a "manual node", which means an activity that requires manual approval; a rounded rectangle is mapped as an "automatic node", which means an activity that is automatically completed and does not require manual approval ,etc. After the above mapping is completed, it can also be mapped to a process element object according to the specific process modeling meaning, and the corresponding attribute information (name, description information, etc.) can be determined. Among them, the so-called process element object may specifically refer to an object defined by an object-oriented programming language. During specific implementation, a batch of process element objects may be pre-defined, which correspond to multiple markers in the process modeling, and establish The second rule base. In this way, after identifying the process modeling meaning corresponding to a certain component element, it can be mapped to a corresponding process element object according to the second rule base. Afterwards, the attribute information of the process element object can also be determined by means of automatic identification and/or manual configuration. Finally, according to the attribute information of the process element object and the layout relationship information, process processing code, for example, Json code, etc. is generated. After the process processing code is saved and released online with the basic data, it can be used to submit the basic data, and based on the process processing code, the submitted application will be processed for subsequent circulation, including judging the circulation conditions, and circulation. To the approvers at all levels for processing, and so on.
也就是说,在本申请实施例中,用户只需要准备已有的纸质流程图,或者通过制图工具绘制的流程图,甚至是手绘的流程图,即可通过OCR识别等方式(如果是纸质图,则可以首先扫描为电子版图像)进行识别,并自动将其中的流程图中包含的组成元素转换为通过编程语言定义的流程元素对象,并确定出所述流程元素对象的属性信息,进而可以根据流程图中的布局关系,组装成流程处理代码,使其成为关联的应用程序代码的一部分。另外,设计器中还可以提供手动配置界面,在自动识别的基础上,用户还可以进行一些微调,包括修改、新增、删除一些配置,等等。这样,不需要用户逐个拖动流程元素,也就不再需要理解系统抽象出的流程元素对象的含义,另外,还可以自动确定出具体流程元素对象的属性信息,因此,不需要用户对具体的节点或者连线进行手动的配置,或者仅需要在自动识别结果基础上进行微调。因此,可以提高流程设计效率,进一步降低领域壁垒。That is to say, in this embodiment of the present application, the user only needs to prepare an existing paper flow chart, or a flow chart drawn by a drawing tool, or even a hand-drawn flow chart, and can be identified by means of OCR (if it is a paper flow chart) quality map, you can first scan it as an electronic image) for identification, and automatically convert the constituent elements contained in the flowchart into a process element object defined by a programming language, and determine the attribute information of the process element object, Further, according to the layout relationship in the flow chart, the flow processing code can be assembled into a part of the associated application code. In addition, the designer can also provide a manual configuration interface. On the basis of automatic identification, users can also make some fine-tuning, including modifying, adding, deleting some configurations, and so on. In this way, the user does not need to drag the process elements one by one, and it is no longer necessary to understand the meaning of the process element objects abstracted by the system. In addition, the attribute information of the specific process element objects can also be automatically determined. Nodes or wires can be configured manually, or only need to be fine-tuned based on automatic recognition results. Therefore, the efficiency of process design can be improved, and the field barriers can be further reduced.
从产品的系统架构角度而言,本申请实施例可以面向具有应用程序可视化设计需求的用户,提供应用程序可视化设计器,该设计器可以是独立的应用程序,或者,也可以以Web等页面的形式存在。例如,对于后者,如图2所示,用户可以登录到设计页面,通过页面中提供的编辑界面等完成对应用程序的可视化设计,其中就可以包括对流程的设计,之后可以进行保存并发布。发布之后,设计器系统可以生成对应的链接,用户可以通过分享链接的方式,使得应用程序的用户可以访问对应的页面。From the perspective of the system architecture of the product, the embodiment of the present application can provide a visual application designer for users who have application visual design requirements. form exists. For example, for the latter, as shown in Figure 2, the user can log in to the design page, and complete the visual design of the application through the editing interface provided in the page, which can include the design of the process, which can then be saved and published. . After publishing, the designer system can generate a corresponding link, and the user can share the link so that the user of the application can access the corresponding page.
下面对本申请实施例提供的具体技术方案进行详细介绍。The specific technical solutions provided by the embodiments of the present application are described in detail below.
实施例一Example 1
首先,本申请实施例一提供了一种流程处理方法,参见图3,该方法具体可以包括:First, Embodiment 1 of the present application provides a method for processing a process. Referring to FIG. 3 , the method may specifically include:
S310:获取包含有流程图的图像数据,并根据图像数据识别出所述流程图中包含的组成元素以及组成元素之间的布局关系信息;S310: Acquire image data including a flow chart, and identify constituent elements included in the flow chart and layout relationship information between constituent elements according to the image data;
其中,流程图的图像数据可以是通过对纸质流程图进行扫描获得,或者,也可以是通过制图工具绘制的电子版的流程图。在本申请实施例中,主要的流程图可以包括需要进行可视化设计的应用程序中所涉及到的流程,例如,不同的企业等组织机构中,由于员工组织架构、规章制度等的不同,各类事务的流程会有所不同,因此,通过需要针对具体的组织机构进行个性化的企业管理类应用程序设计。通过可视化应用程序设计器,组织机构中的人力等非程序开发领域的专业人员都可以进行应用程序的设计。在对这种企业管理类的应用程序过程中,通常都会涉及到对流程的设计,例如,包括报销审批流程、请假审批流程、招聘跟进流程,等等。其中,对于一些组织机构而言,可能会存在规范的规章制度规定,关于各种流程可能存在已有的流程图(纸质或者电子版),此时,在本申请实施例中可以直接在这种流程图基础上进行识别。或者,如果并不存在已有的流程图,则用户也可以利用制图工具进行流程图的绘制,甚至可以手绘。由于绘制流程图的过程只需要按照人类能够理解的语言进行绘制,包括对具体节点的绘制,用文字来 表达具体的审批人角色、流转条件,等等,因此,该过程对于用户而言并不存在技术性的难度。The image data of the flowchart may be obtained by scanning a paper flowchart, or may also be an electronic version of the flowchart drawn by a drawing tool. In the embodiment of the present application, the main flow chart may include the process involved in the application program that needs to be visually designed. The flow of transactions will vary, therefore, through enterprise management application design that needs to be personalized for a specific organization. Through the visual application designer, professionals in non-program development fields such as human resources in the organization can design applications. In the application process of such enterprise management, the design of the process is usually involved, for example, including the reimbursement approval process, the leave approval process, the recruitment follow-up process, and so on. Among them, for some organizations, there may be standardized rules and regulations, and there may be existing flow charts (paper or electronic versions) for various processes. Identify based on the flow chart. Or, if there is no existing flow chart, the user can also use the drawing tool to draw the flow chart, or even hand-drawn. Since the process of drawing a flowchart only needs to be drawn in a language that humans can understand, including drawing specific nodes, using text to express specific approver roles, flow conditions, etc., this process is not easy for users. There are technical difficulties.
其中,流程图中的组成元素可以包括图形、符号、文字等,具体的图形可以包括矩形框等节点类图形,还可以包括连线类图形。文字可以包括标注在具体节点内用于描述具体审批人等信息的文字,例如,“一级主管审批”,“财务接口人审批”等;或者,标注在连线上用于描述流转条件的文字,例如,“金额大于等于10000”,等等。可以通过OCR等技术对上述组成元素进行识别,另外,还可以识别出具体组成元素之间的布局信息,包括连线所连接的上下节点,等等。The constituent elements in the flowchart may include graphics, symbols, characters, etc., and the specific graphics may include node-type graphics such as rectangular boxes, and may also include connection-type graphics. The text can include the text marked in the specific node to describe the specific approver and other information, for example, "approval by the first-level supervisor", "approval by the financial interface person", etc.; or, the text marked on the connection line to describe the flow conditions , for example, "Amount greater than or equal to 10000", etc. The above-mentioned constituent elements can be identified by techniques such as OCR, and in addition, the layout information between the specific constituent elements can be identified, including the upper and lower nodes connected by the connection, and so on.
S320:将所述组成元素映射为通过编程语言定义的流程元素对象,并确定所述流程元素对象的属性信息。S320: Map the constituent elements to a process element object defined by a programming language, and determine attribute information of the process element object.
由于设计器中通常是通过编程语言定义出流程元素对象,具体的代码都是基于这种流程元素对象进行表达。因此,在识别出流程图中的组成元素之后,可以将其映射为这种通过编程语言定义的流程元素对象,并确定出流程元素对象的属性信息。Since the designer usually defines the process element object through the programming language, the specific code is expressed based on this process element object. Therefore, after identifying the constituent elements in the flowchart, they can be mapped to the process element object defined by the programming language, and the attribute information of the process element object can be determined.
其中,具体的映射方式可以有多种,例如,其中一种方式下,可以预先建立两个规则库。其中一个规则库中可以保存流程图中的组成元素与流程元素类型之间的对应关系,另一个规则库中则保存流程元素类型与流程元素对象之间的对应关系。其中,流程元素类型具体可以是BPMN(事务流程建模与标注)等标准中对具体的流程元素进行分类并定义的类型信息,具体可以包括人工节点、自动节点、连接线,等等;流程元素对象则可以是通过面向对象的编程语言定义的对象(这里的“对象”是面向对象编程领域的概念),其中,每个流程元素对象可以对应各自的ID,以及名称、描述等属性信息,通过确定出流程元素对象的属性信息,可以使得计算机能够识别流程图中的具体的组成元素,进而才能够通过具体的可执行代码的形式对具体的流程进行表达。There may be various specific mapping methods, for example, in one of the methods, two rule bases may be established in advance. One of the rule bases can store the correspondence between the constituent elements in the flowchart and the types of the flow elements, and the other rule base stores the correspondence between the types of the flow elements and the flow element objects. The process element type may specifically be the type information that classifies and defines specific process elements in standards such as BPMN (Transaction Process Modeling and Marking), and may specifically include manual nodes, automatic nodes, connecting lines, etc.; process elements The object can be an object defined by an object-oriented programming language (here, "object" is a concept in the field of object-oriented programming), wherein each process element object can correspond to its own ID, as well as attribute information such as name and description. Determining the attribute information of the process element object can enable the computer to identify the specific constituent elements in the flowchart, and then express the specific process in the form of specific executable code.
例如,在一种具体实现方式下,系统中对人工审批节点类的流程元素对象的定义可以如下表达:For example, in a specific implementation manner, the definition of the process element object of the manual approval node class in the system can be expressed as follows:
{{
"id":"xxxxx","id":"xxxxx",
"name":"人工审批","name":"Manual approval",
"type":"User","type":"User",
"description":"人工审批","description":"Manual approval",
"props":{"props":{
"position":{},"position":{},
"userRule":{},"userRule":{},
"finishRule":true,"finishRule":true,
"actions":[{"actions":[{
"name":"同意""name":"Agree"
}]}]
}}
}}
也即,人工审批类节点这一流程元素对象,可以具有以下属性字段:ID、名称(name)、类型(type)、描述(description)、传值(props)、位置(position)、用户规则(userRule)、结束规则(finishRule)、动作(actions)等。在从流程图中识别出一个人工审批节点后,便可以确定出对应的流程元素对象的ID、名称、类型等多个属性字段上的属性信息,以此生成完整的流程元素对象实例。That is, the process element object of the human approval class node can have the following attribute fields: ID, name, type, description, props, position, user rules ( userRule), end rules (finishRule), actions (actions), etc. After identifying a manual approval node from the flowchart, attribute information on multiple attribute fields such as ID, name, and type of the corresponding process element object can be determined, thereby generating a complete process element object instance.
需要说明的是,为了能够进行元素映射,具体的流程图中可以采用标准化的流程建模符号进行绘制。例如,在实际应用中,可以利用BPMN(Business Process Model and Notation,事务流程建模与标记)标准进行绘制。其中,BPMN是用于构建服务流程图的一种建模语言标准,其对具体的图元如何组成流程图进行了定义,包括具体图元对应的流程元素类型以及含义,等等。例如,具体定义可以如图4所示。或者,在另一种方式下,也可以由用户对图元对应的流程元素类型以及含义进行自定义或者指定,例如,在BPMN标准中,矩形对应人工节点,圆角矩形对应自动节点,在自定义的方式下,也可以是矩形对应自动节点,圆角矩形对应人工节点,等等。用户可以在完成自定义或者指定后,进行流程图的绘制,然后再通过OCR识别的方式对其中包含的组成元素进行识别,并映射到流程元素类型以及含义。It should be noted that, in order to be able to perform element mapping, the specific flowchart may be drawn using standardized process modeling symbols. For example, in practical applications, the BPMN (Business Process Model and Notation) standard can be used to draw. Among them, BPMN is a modeling language standard for building service flow charts, which defines how specific graphic elements form a flow chart, including the types and meanings of process elements corresponding to specific graphic elements, and so on. For example, the specific definition can be as shown in FIG. 4 . Or, in another way, the user can also customize or specify the type and meaning of the process element corresponding to the primitive. For example, in the BPMN standard, a rectangle corresponds to a manual node, a rounded rectangle corresponds to an automatic node, and in the automatic node In the way of definition, it can also be that the rectangle corresponds to the automatic node, the rounded rectangle corresponds to the artificial node, and so on. After completing the customization or designation, the user can draw the flow chart, and then identify the constituent elements contained in it through OCR identification, and map it to the type and meaning of the flow elements.
另外,在将具体的组成元素映射为流程元素对象后,还可以确定出流程元素对象的属性信息。具体确定属性信息的方法可以有多种,例如,一种方式下,可以直接在识别结果页面中提供人工配置入口,由用户手动配置具体流程元素对象的属性信息。或者,在另一种方式下,由于流程图中通常还可以包括一些文字信息,能够表达出具体的组成元素的属性,因此,还可以实现对配置信息的自动识别。In addition, after the specific constituent elements are mapped to the process element object, the attribute information of the process element object can also be determined. There are various methods for determining the attribute information. For example, in one method, a manual configuration entry can be directly provided on the recognition result page, and the user manually configures the attribute information of the specific process element object. Or, in another manner, since the flowchart can usually include some text information, which can express the attributes of specific constituent elements, automatic identification of the configuration information can also be realized.
其中,关于流程元素对象的属性信息具体可以包括名称、类型信息、描述信息等。具体实现时,所述第一映射规则库中还可以保存有所述流程元素类型对应的流程建模含义,此时,可以在根据第一映射规则库确定出组成元素对应的流程元素类型后,还可以根据所述流程建模含义,确定所述流程元素对象的名称和/或类别属性。The attribute information about the process element object may specifically include name, type information, description information, and the like. During specific implementation, the first mapping rule base may also store the process modeling meaning corresponding to the process element type. In this case, after determining the process element type corresponding to the constituent element according to the first mapping rule base, The name and/or category attribute of the process element object may also be determined according to the process modeling meaning.
而关于流程元素对象的描述信息,则可以根据流程图中具体的文字内容等进行确定。例如,一种情况下,如果所述流程元素对象的类型为需要人工处理的节点,则可以根据流程图中对应的组成元素关联的文字元素,确定该节点上对应的流程处理人员的角色信息;然后,从预先建立的机构成员组织架构信息中确定与所述角色信息对应的目标角色标识,并根据该目标角色标识确定所述节点类型的流程元素对象的描述信息。例如,如图1-1所示的某节点上关联的文字为“一级主管审批”,则可以在关联的组织架构信息 中搜索出属于一级主管的角色ID等信息,并配置到关联的流程节点上,等等。其中,关于组织架构信息,可以是在用户通过当前的设计器创建具体的应用程序之前,通过关联的即时通信等类别的工具进行创建的。例如,假设某公司的部分组织架构可以如图5所示,具体员工所在的各个部门,以及相互之间的上下级关系等都可以通过组织架构信息进行体现。在预先完成对组织架构信息的创建后,系统可以为具体的人员等分配对应的ID,并关联所在的部门、角色等属性,之后,便可以实现对流程图中包含的审批人等信息的自动识别,并自动完成相关处理代码的生成。As for the description information of the flow element object, it can be determined according to the specific text content in the flow chart. For example, in one case, if the type of the process element object is a node that requires manual processing, the role information of the corresponding process processing personnel on the node can be determined according to the text element associated with the corresponding component element in the flowchart; Then, the target role identifier corresponding to the role information is determined from the pre-established organization member organizational structure information, and the description information of the process element object of the node type is determined according to the target role identifier. For example, as shown in Figure 1-1, the text associated with a node is "approval by first-level supervisor", then you can search for information such as the role ID belonging to the first-level supervisor in the associated organizational structure information, and configure it to the associated process node, and so on. The organizational structure information may be created by a related tool such as instant messaging before the user creates a specific application through the current designer. For example, suppose that part of the organizational structure of a company can be shown in Figure 5. The various departments where specific employees are located, as well as the relationship between superiors and subordinates, can be reflected through organizational structure information. After completing the creation of organizational structure information in advance, the system can assign corresponding IDs to specific personnel, etc., and associate attributes such as departments and roles. Identify, and automatically complete the generation of relevant processing code.
另外,如果所述流程元素对象的类型为自动处理的节点,则可以根据流程图中对应的组成元素关联的文字元素,确定自动执行的动作信息,例如,结束动作,等等。这种自动执行的动作信息也可以预先在系统中进行定义,在识别出需要自动执行某个动作后,可以确定出该动作对应的ID等信息,并生成对应的动作执行代码。In addition, if the type of the flow element object is an automatically processed node, the automatically executed action information, such as an end action, etc., can be determined according to the text element associated with the corresponding constituent element in the flow chart. The automatically executed action information can also be defined in the system in advance. After identifying an action that needs to be automatically executed, the ID and other information corresponding to the action can be determined, and the corresponding action execution code can be generated.
再者,如果所述流程元素对象的类型为连接线,则可以根据流程图中对应的组成元素关联的文字元素,以及所述连接线所在位置的上下文信息,确定所述连接线的执行规则信息。其中,如果所述执行规则中包括对相关数据的判断,则根据所述文字元素确定预先配置的基础数据中关联的目标数据对象,以便根据所述目标数据对象的标识信息确定所述连接线的执行规则信息。例如,如图1-1中所示的流程图中,其中某条线的执行规则是,金额大于等于10000,则相关的数据对象是“金额”,如前文所述,在进行流程设计之前,通常还会首先进行基础数据的配置。在财务报销的相关应用中,“金额”会作为一项基础数据预先进行配置,相应的,系统可以生成该数据对象对应的ID等信息。因此,在进行流程设计的过程中,识别出具体的线执行规则中涉及到对其中某个数据的取值等进行判断的情况时,可以直接将具体的数据对应到之前配置的基础数据对象,之后,可以利用该基础数据对象的ID等信息,生成具体的线执行规则代码。Furthermore, if the type of the flow element object is a connecting line, the execution rule information of the connecting line can be determined according to the text elements associated with the corresponding constituent elements in the flow chart, and the context information of the location where the connecting line is located. . Wherein, if the execution rule includes judgment on the relevant data, the target data object associated in the pre-configured basic data is determined according to the text element, so that the identification information of the connection line is determined according to the identification information of the target data object. Execution rule information. For example, in the flowchart shown in Figure 1-1, where the execution rule of a line is that the amount is greater than or equal to 10,000, the related data object is "amount". Usually, the configuration of the basic data is also performed first. In the related application of financial reimbursement, "amount" will be pre-configured as a basic data, and accordingly, the system can generate the ID and other information corresponding to the data object. Therefore, in the process of process design, when it is identified that the specific line execution rule involves the judgment of the value of a certain data, the specific data can be directly corresponding to the previously configured basic data object, Afterwards, specific line execution rule codes can be generated by using information such as the ID of the basic data object.
具体实现时,还可以通过对所述流程图中的文字元素进行识别以及自然语言理解,确定所述文字元素的含义;然后根据所述文字元素的含义,确定所述流程元素对象的属性信息。During specific implementation, the meaning of the text element can also be determined by identifying and understanding the text element in the flowchart; and then, according to the meaning of the text element, the attribute information of the flow element object is determined.
需要说明的是,在完成对流程元素对象及其属性信息以及布局关系信息的识别之后,还可以提供用于手动调整的操作选项,使得用户可以在自动识别结果的基础上进行微调,包括修改某流程元素的属性值,或者增加某流程节点,删除某流程节点,等等。It should be noted that, after the identification of process element objects and their attribute information and layout relationship information is completed, operation options for manual adjustment can also be provided, so that users can make fine adjustments based on the automatic identification results, including modifying certain parameters. The attribute value of the process element, or adding a process node, deleting a process node, etc.
S330:根据所述流程元素对象的属性信息以及所述布局关系信息,生成流程处理代码。S330: Generate a process code according to the attribute information of the process element object and the layout relationship information.
在确定出多个流程元素对象及其对应的属性信息、布局关系信息之后,可以生成流程处理代码。具体实现时,具体的流程节点对象都可以对应着各自的流程引擎,这种流程引擎可以负责从某个节点到某个节点做调度,某个事件是谁发出的,识别出事件属性,连接线的关系,找到下一个审批的节点,等等。最终生成的流程处理代码将会成为关联 的应用程序代码的一部分,在应用程序上线后,涉及到流程处理的部分,则可以根据这部分流程处理代码来进行具体的流程流转。After multiple process element objects and their corresponding attribute information and layout relationship information are determined, process code can be generated. In specific implementation, specific process node objects can correspond to their respective process engines. This process engine can be responsible for scheduling from a node to a node, who sent an event, identify event attributes, and connect lines. relationship, find the next node for approval, and so on. The final generated process processing code will become a part of the associated application code. After the application goes online, the part involving process processing can be used for specific process flow according to this part of the process processing code.
需要说明的是,由于同一类别的流程图对应的流程代码通常具有高度相似性,尤其是具体流程元素的类型,位置,布局关系,等等,不同之处可能仅在于具体的值(例如,具体的执行人等)。因此,在具体实现时,为了进一步提高效率,还可以预先提供流程代码模板,并建立所述流程代码模板与流程图类别标识之间的对应关系。这样,在具体需要对某流程图生成流程代码时,还可以获取所述图像数据中包含的流程图所属的目标类别标识信息,然后,可以将所述流程元素对象的属性信息、布局关系信息写入所述目标类别标识信息对应的流程代码模板中,以生成所述流程处理代码。其中,可以直接在所述图像数据中包括所述目标类别标识信息,例如,图像数据中可以包括二维码或者类别代码等信息,用以代表流程图的类别标识。此时,可以从所述图像数据中识别出所述目标类别标识信息。It should be noted that, since the process codes corresponding to the same category of flowcharts are usually highly similar, especially the types, positions, layout relationships, etc. of specific process elements, the differences may only lie in specific values (for example, specific executor, etc.). Therefore, during specific implementation, in order to further improve efficiency, a process code template may also be provided in advance, and a corresponding relationship between the process code template and the flowchart category identifier may be established. In this way, when a flow chart needs to be generated for a flow chart, the target category identification information to which the flow chart contained in the image data belongs can also be obtained, and then the attribute information and layout relationship information of the flow element object can be written into the process code template corresponding to the target category identification information to generate the process code. The target category identification information may be directly included in the image data, for example, the image data may include information such as a two-dimensional code or a category code to represent the category identification of the flowchart. At this time, the target category identification information can be identified from the image data.
或者,另一种方式下,还可以预先提供流程代码模板,并建立所述流程代码模板与关键词之间的对应关系;此时,在对所述图像数据进行识别后,可以判断所识别出的文字元素中是否包含目标关键词;如果包含目标关键词,则可以将所述流程元素对象的属性信息、布局关系信息写入所述目标关键词对应的流程代码模板中,以生成所述流程处理代码。例如,某流程图中包括“报销”这一关键词,则可以使用报销类的模板生成具体的流程代码,等等。Or, in another way, a process code template can also be provided in advance, and a corresponding relationship between the process code template and the keywords can be established; at this time, after the image data is identified, it can be determined that the identified Whether a target keyword is included in the text element of the processing code. For example, if a flowchart includes the keyword "reimbursement", you can use the reimbursement template to generate specific process codes, and so on.
另外,还可以提供用于对生成的流程处理代码进行分步确认/调整的操作选项;然后,根据用户的操作结果,对所述流程代码模板进行优化调整。In addition, operation options for step-by-step confirmation/adjustment of the generated process code may also be provided; then, according to the user's operation result, the process code template is optimized and adjusted.
总之,通过本申请实施例提供的技术方案,可以通过对包含有流程图的图像进行识别的方式,识别出其中包含的组成元素以及相互之间的布局关系信息,并且可以将组成元素映射为通过编程语言定义的流程元素对象,并确定出所述流程元素对象的属性信息。进而,可以根据所述流程元素对象的属性信息以及所述布局关系信息,生成流程处理代码。通过该方案,在进行可视化流程设计时,不再需要用户一一拖拽具体的图元,或者对图元的属性进行手动配置(即使需要也只是执行部分微调处理),而是可以直接自动识别获得,因此,可以提升可视化流程设计的效率,相对于现有技术的方案,可以进一步降低领域壁垒,使得非程序开发领域的人员也可以方便地进行应用程序设计。In a word, through the technical solutions provided by the embodiments of the present application, the constituent elements contained therein and the layout relationship information between them can be identified by means of identifying an image containing a flowchart, and the constituent elements can be mapped to pass The process element object defined by the programming language, and the attribute information of the process element object is determined. Furthermore, the process code may be generated according to the attribute information of the process element object and the layout relationship information. Through this solution, when designing a visual process, it is no longer necessary for the user to drag and drop specific primitives one by one, or manually configure the attributes of the primitives (even if necessary, only part of the fine-tuning processing is performed), but can be directly and automatically recognized. Therefore, the efficiency of visual process design can be improved, and compared with the solution of the prior art, the field barrier can be further reduced, so that the personnel in the non-program development field can also conveniently design the application program.
实施例二Embodiment 2
该实施例二是针对实施例一在实际应用中的一种具体实现方案,提供了另一种流程处理方法,参见图6,该方法具体可以包括:The second embodiment provides another process processing method for a specific implementation scheme of the first embodiment in practical applications. Referring to FIG. 6 , the method may specifically include:
S610:获取纸质流程图的扫描图像;S610: Obtain a scanned image of the paper flow chart;
S620:根据扫描图像识别出所述流程图中包含的组成元素以及组成元素之间的布局关系信息;S620: Identify the constituent elements included in the flowchart and the layout relationship information between the constituent elements according to the scanned image;
S630:将所述组成元素映射为通过编程语言定义的流程元素对象,并确定所述流程元素对象的属性信息;S630: Map the constituent elements to a process element object defined by a programming language, and determine attribute information of the process element object;
S640:根据所述流程元素对象的属性信息以及所述布局关系信息,生成流程处理代码;S640: Generate a process processing code according to the attribute information of the process element object and the layout relationship information;
S650:将所述流程处理代码集成到关联的应用程序的代码中,以便在所述应用程序运行过程中,生成下一流程节点的待执行任务,并将所述待执行任务流转到所述下一流程节点。S650: Integrate the process processing code into the code of the associated application, so that during the running of the application, a task to be executed of the next process node is generated, and the to-be-executed task flow is transferred to the next a process node.
实施例三Embodiment 3
该实施例三针对一种具体的应用场景,提供了一种生成应用程序的方法,参见图7,该方法具体可以包括:The third embodiment provides a method for generating an application program for a specific application scenario. Referring to FIG. 7 , the method may specifically include:
S710:提供用于对基础表单数据进行可视化设计的操作界面,所述操作界面中包括候选表单元素列表,编辑区域,以及用于对表单元素的内容和/或属性进行配置的操作选项;S710: Provide an operation interface for visually designing basic form data, where the operation interface includes a list of candidate form elements, an editing area, and operation options for configuring the content and/or attributes of the form elements;
S720:根据被选择到编辑区域的表单元素,表单元素之间的布局信息,以及被配置的内容和/或属性信息,生成基础表单代码;S720: Generate a basic form code according to the form element selected to the editing area, the layout information between the form elements, and the configured content and/or attribute information;
S730:获取包含有流程图的图像数据,并根据图像数据识别出所述流程图中包含的组成元素以及组成元素之间的布局关系信息;S730: Acquire image data containing a flow chart, and identify constituent elements included in the flow chart and layout relationship information between the constituent elements according to the image data;
S740:将所述组成元素映射为通过编程语言定义的流程元素对象,并确定所述流程元素对象的属性信息;S740: Map the constituent elements to a process element object defined by a programming language, and determine attribute information of the process element object;
S750:根据所述流程元素对象的属性信息以及布局关系信息,生成流程处理代码;S750: Generate a process processing code according to the attribute information and layout relationship information of the process element object;
S760:将所述基础表单代码以及所述流程处理代码组合生成目标应用程序的代码;S760: Combine the basic form code and the process processing code to generate the code of the target application;
S770:提供所述目标应用程序的链接,以便根据所述链接访问所述目标应用程序的页面,通过所述页面接收到基础数据后,根据所述流程处理代码生成下一流程节点的待执行任务,并将所述任务流转到所述下一流程节点。S770: Provide a link of the target application, so as to access the page of the target application according to the link, and after receiving basic data through the page, generate a task to be executed for the next process node according to the process code , and transfer the task flow to the next process node.
其中,所述应用程序包括企业管理类应用程序。Wherein, the application program includes an enterprise management application program.
具体实现时,还可以根据所述流程处理代码,在所述目标应用程序的页面中提供流程处理状态信息。During specific implementation, flow processing status information may also be provided on the page of the target application according to the flow processing code.
实施例四Embodiment 4
前述实施例中主要针对流程处理方法提供了相应的解决方案,在具体实现时,类似的解决方案也可以应用于表单处理过程中。因此,该实施例四还提供了一种表单处理方法,参见图8,该方法具体可以包括:The foregoing embodiments mainly provide corresponding solutions for the process processing method, and during specific implementation, similar solutions can also be applied to the form processing process. Therefore, the fourth embodiment also provides a form processing method. Referring to FIG. 8 , the method may specifically include:
S810:获取包含有表单图的图像数据,并根据图像数据识别出所述表单图中包含的组成元素以及组成元素之间的布局关系信息;S810: Acquire image data including a form diagram, and identify constituent elements included in the form diagram and layout relationship information between the constituent elements according to the image data;
S820:将所述组成元素映射为通过编程语言定义的表单元素对象,并确定所述表单 元素对象关联的数据内容和/或属性信息;S820: Map the constituent elements to form element objects defined by a programming language, and determine the data content and/or attribute information associated with the form element objects;
S830:根据所述表单元素对象的数据内容和/或属性信息以及所述布局关系信息,生成表单代码。S830: Generate a form code according to the data content and/or attribute information of the form element object and the layout relationship information.
与前述方法实施例一相对应,本申请实施例还提供了一种流程处理装置,参见图9,该装置具体可以包括:Corresponding to the foregoing method embodiment 1, an embodiment of the present application further provides a process processing apparatus, referring to FIG. 9 , the apparatus may specifically include:
图像识别单元910,用于获取包含有流程图的图像数据,并根据图像数据识别出所述流程图中包含的组成元素以及组成元素之间的布局关系信息;The image recognition unit 910 is configured to acquire image data containing a flow chart, and identify the constituent elements contained in the flow chart and the layout relationship information between the constituent elements according to the image data;
映射单元920,用于将所述组成元素映射为通过编程语言定义的流程元素对象,并确定所述流程元素对象的属性信息;a mapping unit 920, configured to map the constituent elements to a process element object defined by a programming language, and determine attribute information of the process element object;
代码生成单元930,用于根据所述流程元素对象的属性信息以及所述布局关系信息,生成流程处理代码。The code generation unit 930 is configured to generate a process code according to the attribute information of the process element object and the layout relationship information.
其中,映射单元具体可以包括:Wherein, the mapping unit may specifically include:
第一映射子单元,用于根据预先建立的第一映射规则库,将所述组成元素映射到流程建模中的流程元素类型;a first mapping subunit, used for mapping the constituent elements to process element types in process modeling according to a pre-established first mapping rule base;
第二映射子单元,用于根据预先建立的第二映射规则库以及所述组成元素对应的流程元素类型,将所述组成元素映射为所述流程元素对象。The second mapping subunit is configured to map the constituent elements to the flow element objects according to the pre-established second mapping rule base and the flow element types corresponding to the constituent elements.
其中,所述第一映射规则库中还保存有所述流程元素类型对应的流程建模含义;Wherein, the first mapping rule base also stores the process modeling meaning corresponding to the process element type;
所述映射单元还可以用于:The mapping unit can also be used to:
根据所述流程建模含义,确定所述流程元素对象的名称和/或类别属性。According to the process modeling meaning, the name and/or category attribute of the process element object is determined.
所述流程图中包含的组成元素包括图形元素;The constituent elements contained in the flow chart include graphic elements;
所述第一映射规则库中具体可以保存有图形元素与流程建模中的流程元素类型之间的对应关系。The first mapping rule base may specifically store the correspondence between the graphic elements and the types of process elements in the process modeling.
另外,所述流程图中包含的组成元素包括文字元素;In addition, the constituent elements included in the flow chart include text elements;
所述流程元素对象的属性信息包括:流程元素对象的描述信息;The attribute information of the process element object includes: description information of the process element object;
所述映射单元具体还可以用于:Specifically, the mapping unit can also be used for:
通过识别所述流程图中的文字元素,确定所述流程元素对象的描述信息。The description information of the flow element object is determined by identifying the text elements in the flow chart.
具体的,所述映射单元具体可以用于:Specifically, the mapping unit can be specifically used for:
如果所述流程元素对象的类型为需要人工处理的节点,则根据流程图中对应的组成元素关联的文字元素,确定该节点上对应的流程处理人员的角色信息;If the type of the process element object is a node that needs manual processing, then determine the role information of the corresponding process processing personnel on the node according to the text element associated with the corresponding component element in the flowchart;
从预先建立的机构成员组织架构信息中确定与所述角色信息对应的目标角色标识,并根据该目标角色标识确定所述节点类型的流程元素对象的描述信息。The target role identifier corresponding to the role information is determined from the pre-established organizational structure information of institutional members, and the description information of the process element object of the node type is determined according to the target role identifier.
或者,所述映射单元具体可以用于:Alternatively, the mapping unit can be specifically used for:
如果所述流程元素对象的类型为自动处理的节点,则根据流程图中对应的组成元素关联的文字元素,确定自动执行的动作信息。If the type of the flow element object is an automatically processed node, the automatically executed action information is determined according to the text element associated with the corresponding constituent element in the flow chart.
或者,所述映射单元具体可以用于:Alternatively, the mapping unit can be specifically used for:
如果所述流程元素对象的类型为连接线,则根据流程图中对应的组成元素关联的文字元素,以及所述连接线所在位置的上下文信息,确定所述连接线的执行规则信息。If the type of the flow element object is a connecting line, the execution rule information of the connecting line is determined according to the text element associated with the corresponding constituent element in the flowchart and the context information of the position of the connecting line.
另外,所述映射单元还可以用于:In addition, the mapping unit can also be used for:
如果所述执行规则中包括对相关数据的判断,则根据所述文字元素确定预先配置的基础数据中关联的目标数据对象,以便根据所述目标数据对象的标识信息确定所述连接线的执行规则信息。If the execution rule includes judgment on related data, determine the target data object associated in the preconfigured basic data according to the text element, so as to determine the execution rule of the connection line according to the identification information of the target data object information.
与本申请实施例二相对应,本申请实施例还提供了一种流程处理装置,参见图10,该装置具体可以包括:Corresponding to the second embodiment of the present application, the embodiment of the present application further provides a process processing device, see FIG. 10 , the device may specifically include:
图像扫描单元1010,用于获取纸质流程图的扫描图像;an image scanning unit 1010, configured to obtain a scanned image of a paper flow chart;
关系识别单元1020,用于根据扫描图像识别出所述流程图中包含的组成元素以及组成元素之间的布局关系信息;A relationship identification unit 1020, configured to identify the constituent elements contained in the flowchart and the layout relationship information between the constituent elements according to the scanned image;
元素映射单元1030,用于将所述组成元素映射为通过编程语言定义的流程元素对象,并确定所述流程元素对象的属性信息;an element mapping unit 1030, configured to map the constituent elements to a process element object defined by a programming language, and determine attribute information of the process element object;
代码确定单元1040,用于根据所述流程元素对象的属性信息以及所述布局关系信息,生成流程处理代码;a code determination unit 1040, configured to generate a process processing code according to the attribute information of the process element object and the layout relationship information;
代码处理单元1050,用于将所述流程处理代码集成到关联的应用程序的代码中,以便在所述应用程序运行过程中,生成下一流程节点的待执行任务,并将所述待执行任务流转到所述下一流程节点。The code processing unit 1050 is configured to integrate the process processing code into the code of the associated application, so as to generate the to-be-executed task of the next process node during the running process of the application, and to convert the to-be-executed task Flow goes to the next process node.
与本申请实施例三相对应,本申请实施例还提供了一种生成应用程序的装置,参见图11,该装置具体可以包括:Corresponding to the three-phase embodiment of the present application, the embodiment of the present application further provides a device for generating an application program. Referring to FIG. 11 , the device may specifically include:
界面提供单元1110,用于提供用于对基础表单数据进行可视化设计的操作界面,所述操作界面中包括候选表单元素列表,编辑区域,以及用于对表单元素的内容和/或属性进行配置的操作选项;The interface providing unit 1110 is used to provide an operation interface for visual design of basic form data, the operation interface includes a list of candidate form elements, an editing area, and an interface for configuring the content and/or properties of the form elements. Action options;
基础代码生成单元1120,用于根据被选择到编辑区域的表单元素,表单元素之间的布局信息,以及被配置的内容和/或属性信息,生成基础表单代码;a basic code generation unit 1120, configured to generate basic form codes according to the form elements selected to the editing area, the layout information between the form elements, and the configured content and/or attribute information;
布局信息识别单元1130,用于获取包含有流程图的图像数据,并根据图像数据识别出所述流程图中包含的组成元素以及组成元素之间的布局关系信息;The layout information identification unit 1130 is used to obtain the image data containing the flow chart, and identify the constituent elements contained in the flow chart and the layout relationship information between the constituent elements according to the image data;
对象映射单元1140,用于将所述组成元素映射为通过编程语言定义的流程元素对象,并确定所述流程元素对象的属性信息;an object mapping unit 1140, configured to map the constituent elements to a process element object defined by a programming language, and determine attribute information of the process element object;
流程代码生成单元1150,用于根据所述流程元素对象的属性信息以及布局关系信息,生成流程处理代码;a process code generation unit 1150, configured to generate process code according to the attribute information and layout relationship information of the process element object;
目标代码生成单元1160,用于将所述基础表单代码以及所述流程处理代码组合生成 目标应用程序的代码;The target code generation unit 1160 is used to generate the code of the target application by combining the basic form code and the flow processing code;
目标链接提供单元1170,用于提供所述目标应用程序的链接,以便根据所述链接访问所述目标应用程序的页面,通过所述页面接收到基础数据后,根据所述流程处理代码生成下一流程节点的待执行任务,并将所述任务流转到所述下一流程节点。A target link providing unit 1170 is configured to provide a link of the target application, so as to access the page of the target application according to the link, and after receiving the basic data through the page, generate the next step according to the process code. The to-be-executed task of the process node, and the task flow is transferred to the next process node.
与本申请实施例四相对应,本申请实施例还提供了一种表单处理装置,参见图12,该装置具体可以包括:Corresponding to the fourth embodiment of the present application, the embodiment of the present application further provides a form processing apparatus, referring to FIG. 12 , the apparatus may specifically include:
布局信息确定单元1210,用于获取包含有表单图的图像数据,并根据图像数据识别出所述表单图中包含的组成元素以及组成元素之间的布局关系信息;a layout information determining unit 1210, configured to acquire image data including a form diagram, and identify the constituent elements included in the form diagram and the layout relationship information between the constituent elements according to the image data;
元素对象处理单元1220,用于将所述组成元素映射为通过编程语言定义的表单元素对象,并确定所述表单元素对象关联的数据内容和/或属性信息;an element object processing unit 1220, configured to map the constituent elements to form element objects defined by a programming language, and determine data content and/or attribute information associated with the form element objects;
表单代码生成单元1230,用于根据所述表单元素对象的数据内容和/或属性信息以及所述布局关系信息,生成表单代码。The form code generating unit 1230 is configured to generate a form code according to the data content and/or attribute information of the form element object and the layout relationship information.
另外,本申请实施例还提供了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现前述方法实施例中任一项所述的方法的步骤。In addition, an embodiment of the present application further provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, implements the steps of the method described in any one of the foregoing method embodiments.
以及一种计算机系统,包括:and a computer system comprising:
一个或多个处理器;以及one or more processors; and
与所述一个或多个处理器关联的存储器,所述存储器用于存储程序指令,所述程序指令在被所述一个或多个处理器读取执行时,执行前述方法实施例中任一项所述的方法的步骤。a memory associated with the one or more processors, the memory is used to store program instructions that, when read and executed by the one or more processors, perform any one of the foregoing method embodiments the steps of the method.
其中,图13示例性的展示出了计算机系统1300的架构,具体可以包括处理器1310,视频显示适配器1311,磁盘驱动器1312,输入/输出接口1313,网络接口1314,以及存储器1320。上述处理器1310、视频显示适配器1311、磁盘驱动器1312、输入/输出接口1313、网络接口1314,与存储器1320之间可以通过通信总线1330进行通信连接。13 exemplarily shows the architecture of the computer system 1300 , which may specifically include a processor 1310 , a video display adapter 1311 , a disk drive 1312 , an input/output interface 1313 , a network interface 1314 , and a memory 1320 . The processor 1310 , the video display adapter 1311 , the disk drive 1312 , the input/output interface 1313 , and the network interface 1314 , and the memory 1320 may be communicatively connected through the communication bus 1330 .
其中,处理器1310可以采用通用的CPU(Central Processing Unit,中央处理器)、微处理器、应用专用集成电路(Application Specific Integrated Circuit,ASIC)、或者一个或多个集成电路等方式实现,用于执行相关程序,以实现本申请所提供的技术方案。The processor 1310 can be implemented by a general-purpose CPU (Central Processing Unit, central processing unit), a microprocessor, an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), or one or more integrated circuits, etc. Execute relevant programs to realize the technical solutions provided by this application.
存储器1320可以采用ROM(Read Only Memory,只读存储器)、RAM(Random Access Memory,随机存取存储器)、静态存储设备,动态存储设备等形式实现。存储器1320可以存储用于控制计算机系统1300运行的操作系统1321,用于控制计算机系统1300的低级别操作的基本输入输出系统(BIOS)1322。另外,还可以存储网页浏览器1323,数据存储管理系统1324,以及流程设计处理系统1325等等。上述流程设计处理系统1325就可以是本申请实施例中具体实现前述各步骤操作的应用程序。总之,在通过软件或者固件来实现本申请所提供的技术方案时,相关的程序代码保存在存储器1320中,并由处理 器1310来调用执行。The memory 1320 may be implemented in the form of a ROM (Read Only Memory, read-only memory), a RAM (Random Access Memory, random access memory), a static storage device, a dynamic storage device, and the like. The memory 1320 may store an operating system 1321 for controlling the operation of the computer system 1300 , and a basic input output system (BIOS) 1322 for controlling the low-level operations of the computer system 1300 . In addition, a web browser 1323, a data storage management system 1324, a flow design processing system 1325, and the like can also be stored. The above-mentioned process design processing system 1325 may be an application program that specifically implements the operations of the foregoing steps in this embodiment of the present application. In a word, when the technical solutions provided by the present application are implemented through software or firmware, the relevant program codes are stored in the memory 1320 and called and executed by the processor 1310.
输入/输出接口1313用于连接输入/输出模块,以实现信息输入及输出。输入输出/模块可以作为组件配置在设备中(图中未示出),也可以外接于设备以提供相应功能。其中输入设备可以包括键盘、鼠标、触摸屏、麦克风、各类传感器等,输出设备可以包括显示器、扬声器、振动器、指示灯等。The input/output interface 1313 is used to connect input/output modules to realize information input and output. The input/output/module can be configured in the device as a component (not shown in the figure), or can be externally connected to the device to provide corresponding functions. The input device may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output device may include a display, a speaker, a vibrator, an indicator light, and the like.
网络接口1314用于连接通信模块(图中未示出),以实现本设备与其他设备的通信交互。其中通信模块可以通过有线方式(例如USB、网线等)实现通信,也可以通过无线方式(例如移动网络、WIFI、蓝牙等)实现通信。The network interface 1314 is used to connect a communication module (not shown in the figure), so as to realize the communication interaction between the device and other devices. The communication module may implement communication through wired means (eg, USB, network cable, etc.), or may implement communication through wireless means (eg, mobile network, WIFI, Bluetooth, etc.).
总线1330包括一通路,在设备的各个组件(例如处理器1310、视频显示适配器1311、磁盘驱动器1312、输入/输出接口1313、网络接口1314,与存储器1320)之间传输信息。 Bus 1330 includes a path that transfers information between the various components of the device (eg, processor 1310, video display adapter 1311, disk drive 1312, input/output interface 1313, network interface 1314, and memory 1320).
需要说明的是,尽管上述设备仅示出了处理器1310、视频显示适配器1311、磁盘驱动器1312、输入/输出接口1313、网络接口1314,存储器1320,总线1330等,但是在具体实施过程中,该设备还可以包括实现正常运行所必需的其他组件。此外,本领域的技术人员可以理解的是,上述设备中也可以仅包含实现本申请方案所必需的组件,而不必包含图中所示的全部组件。It should be noted that although the above device only shows the processor 1310, the video display adapter 1311, the disk drive 1312, the input/output interface 1313, the network interface 1314, the memory 1320, the bus 1330, etc., in the specific implementation process, the A device may also include other components necessary for proper operation. In addition, those skilled in the art can understand that, the above-mentioned device may also include only the necessary components to realize the solution of the present application, instead of all the components shown in the figures.
通过以上的实施方式的描述可知,本领域的技术人员可以清楚地了解到本申请可借助软件加必需的通用硬件平台的方式来实现。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例或者实施例的某些部分所述的方法。From the description of the above embodiments, those skilled in the art can clearly understand that the present application can be implemented by means of software plus a necessary general hardware platform. Based on this understanding, the technical solutions of the present application can be embodied in the form of software products in essence or the parts that make contributions to the prior art, and the computer software products can be stored in storage media, such as ROM/RAM, magnetic disks , CD-ROM, etc., including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in various embodiments or some parts of the embodiments of the present application.
本说明书中的各个实施例均采用递进的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于系统或系统实施例而言,由于其基本相似于方法实施例,所以描述得比较简单,相关之处参见方法实施例的部分说明即可。以上所描述的系统及系统实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性劳动的情况下,即可以理解并实施。Each embodiment in this specification is described in a progressive manner, and the same and similar parts between the various embodiments may be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system or the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and reference may be made to the partial description of the method embodiment for related parts. The systems and system embodiments described above are only illustrative, wherein the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, It can be located in one place, or it can be distributed over multiple network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution in this embodiment. Those of ordinary skill in the art can understand and implement it without creative effort.
以上对本申请所提供的流程处理方法、装置及计算机系统,进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处。综上所述,本说明书内容不应理解为对本申请的限制。The process processing method, device and computer system provided by the present application have been introduced in detail above. The principles and implementations of the present application are described with specific examples in this paper. The descriptions of the above embodiments are only used to help understand the present application. At the same time, for those skilled in the art, according to the idea of the present application, there will be changes in the specific implementation and application scope. In conclusion, the content of this specification should not be construed as a limitation on the present application.

Claims (24)

  1. 一种流程处理方法,其特征在于,包括:A process processing method, comprising:
    获取包含有流程图的图像数据,并根据图像数据识别出所述流程图中包含的组成元素以及组成元素之间的布局关系信息;Acquiring image data containing a flow chart, and identifying the constituent elements included in the flow chart and the layout relationship information between the constituent elements according to the image data;
    将所述组成元素映射为通过编程语言定义的流程元素对象,并确定所述流程元素对象的属性信息;Mapping the constituent elements into a process element object defined by a programming language, and determining attribute information of the process element object;
    根据所述流程元素对象的属性信息以及所述布局关系信息,生成流程处理代码。The process code is generated according to the attribute information of the process element object and the layout relationship information.
  2. 根据权利要求1所述的方法,其特征在于,The method of claim 1, wherein:
    所述将所述组成元素映射为通过编程语言定义的流程元素对象,包括:The mapping of the constituent elements to process element objects defined by a programming language includes:
    将所述组成元素映射到流程建模中的流程元素类型;mapping the constituent elements to process element types in process modeling;
    根据所述组成元素对应的流程元素类型,将所述组成元素映射为所述流程元素对象。According to the process element type corresponding to the component element, the component element is mapped to the process element object.
  3. 根据权利要求2所述的方法,其特征在于,The method of claim 2, wherein:
    所述确定所述流程元素对象的属性信息,包括:The determining the attribute information of the process element object includes:
    根据预先保存的流程元素类型与流程建模含义之间的对应关系,确定所述流程元素对象的名称和/或类别属性信息。The name and/or category attribute information of the process element object is determined according to the pre-stored correspondence between the type of process element and the meaning of process modeling.
  4. 根据权利要求1所述的方法,其特征在于,The method of claim 1, wherein:
    所述流程图中包含的组成元素包括文字元素;The constituent elements included in the flow chart include text elements;
    所述流程元素对象的属性信息包括:流程元素对象的描述信息;The attribute information of the process element object includes: description information of the process element object;
    所述确定所述流程元素对象的属性信息,包括:The determining the attribute information of the process element object includes:
    通过识别所述流程图中的文字元素,确定所述流程元素对象的描述信息。The description information of the flow element object is determined by identifying the text elements in the flow chart.
  5. 根据权利要求4所述的方法,其特征在于,The method of claim 4, wherein:
    所述确定所述流程元素对象的描述信息,包括:The determining the description information of the process element object includes:
    如果所述流程元素对象为需要人工处理的节点,则根据流程图中对应的组成元素关联的文字元素,确定该节点上对应的流程处理人员的角色信息;If the process element object is a node that needs manual processing, then determine the role information of the corresponding process processing personnel on the node according to the text element associated with the corresponding component element in the flowchart;
    从预先建立的机构成员组织架构信息中确定与所述角色信息对应的目标成员标识,并根据该目标成员标识确定所述节点类型的流程元素对象的描述信息。The target member identifier corresponding to the role information is determined from the pre-established organization member organizational structure information, and the description information of the process element object of the node type is determined according to the target member identifier.
  6. 根据权利要求4所述的方法,其特征在于,The method of claim 4, wherein:
    所述确定所述流程元素对象的描述信息,包括:The determining the description information of the process element object includes:
    如果所述流程元素对象的类型为自动执行的节点,则根据流程图中对应的组成元素关联的文字元素,确定自动执行的动作信息。If the type of the flow element object is an automatically executed node, the automatically executed action information is determined according to the text element associated with the corresponding constituent element in the flow chart.
  7. 根据权利要求4所述的方法,其特征在于,The method of claim 4, wherein:
    所述确定所述流程元素对象的描述信息,包括:The determining the description information of the process element object includes:
    如果所述流程元素对象的类型为连接线,则根据流程图中对应的组成元素关联的文字元素,以及所述连接线所在位置的上下文信息,确定所述连接线的执行规则信息。If the type of the flow element object is a connecting line, the execution rule information of the connecting line is determined according to the text element associated with the corresponding constituent element in the flowchart and the context information of the position of the connecting line.
  8. 根据权利要求7所述的方法,其特征在于,还包括:The method of claim 7, further comprising:
    如果所述执行规则信息中包括对相关数据的判断,则根据所述文字元素确定预先配置的基础数据中与所述相关数据对应的目标数据对象,以便根据所述目标数据对象的标识信息确定所述连接线的执行规则信息。If the execution rule information includes the judgment on the relevant data, the target data object corresponding to the relevant data in the pre-configured basic data is determined according to the text element, so as to determine the target data object according to the identification information of the target data object. The execution rule information of the connection line.
  9. 根据权利要求4所述的方法,其特征在于,The method of claim 4, wherein:
    所述通过识别所述流程图中的文字元素,确定所述流程元素对象的描述信息,包括:The determining the description information of the flow element object by identifying the text elements in the flow chart includes:
    通过对所述流程图中的文字元素进行识别以及自然语言理解,确定所述文字元素的含义;Determine the meaning of the text element by identifying and understanding the text elements in the flowchart;
    根据所述文字元素的含义,确定所述流程元素对象的描述信息。According to the meaning of the text element, the description information of the process element object is determined.
  10. 根据权利要求1所述的方法,其特征在于,The method of claim 1, wherein:
    所述方法还包括:The method also includes:
    预先提供流程代码模板,并建立所述流程代码模板与流程图类别标识之间的对应关系;Provide a process code template in advance, and establish the corresponding relationship between the process code template and the flowchart category identifier;
    获取所述图像数据中包含的流程图所属的目标类别标识信息;Obtain the target category identification information to which the flowchart contained in the image data belongs;
    所述生成流程处理代码,包括:The generation process processing code includes:
    将所述流程元素对象的属性信息、布局关系信息写入所述目标类别标识信息对应的流程代码模板中,以生成所述流程处理代码。Write the attribute information and layout relationship information of the process element object into the process code template corresponding to the target category identification information, so as to generate the process code.
  11. 根据权利要求10所述的方法,其特征在于,The method of claim 10, wherein:
    所述图像数据中包括所述目标类别标识信息;The image data includes the target category identification information;
    所述获取所述图像数据中包含的流程图所属的目标类别标识信息,包括:The acquiring target category identification information to which the flowchart contained in the image data belongs, includes:
    从所述图像数据中识别出所述目标类别标识信息。The object class identification information is identified from the image data.
  12. 根据权利要求1所述的方法,其特征在于,还包括:The method of claim 1, further comprising:
    预先提供流程代码模板,并建立所述流程代码模板与关键词之间的对应关系;Provide process code templates in advance, and establish the correspondence between the process code templates and keywords;
    在对所述图像数据进行识别后,判断所识别出的文字元素中是否包含目标关键词;After identifying the image data, determine whether the identified text element contains the target keyword;
    如果包含目标关键词,则所述生成流程处理代码,包括:If the target keyword is included, the generation process processing code includes:
    将所述流程元素对象的属性信息、布局关系信息写入所述目标关键词对应的流程代码模板中,以生成所述流程处理代码。The attribute information and layout relationship information of the process element object are written into the process code template corresponding to the target keyword, so as to generate the process code.
  13. 根据权利要求10或12所述的方法,其特征在于,还包括:The method according to claim 10 or 12, further comprising:
    提供用于对生成的流程处理代码进行分步确认/调整的操作选项;Provides action options for step-by-step validation/adjustment of the generated process processing code;
    根据用户的操作结果,对所述流程代码模板进行优化调整。According to the operation result of the user, the process code template is optimized and adjusted.
  14. 一种流程处理方法,其特征在于,包括:A process processing method, comprising:
    获取纸质流程图的扫描图像;Obtain scanned images of paper flowcharts;
    根据扫描图像识别出所述流程图中包含的组成元素以及组成元素之间的布局关系信息;Identify the constituent elements contained in the flowchart and the layout relationship information between the constituent elements according to the scanned image;
    将所述组成元素映射为通过编程语言定义的流程元素对象,并确定所述流程元素对 象的属性信息;The constituent element is mapped to a process element object defined by a programming language, and the attribute information of the process element object is determined;
    根据所述流程元素对象的属性信息以及所述布局关系信息,生成流程处理代码;generating process processing code according to the attribute information of the process element object and the layout relationship information;
    将所述流程处理代码集成到关联的应用程序的代码中,以便在所述应用程序运行过程中,生成下一流程节点的待执行任务,并将所述待执行任务流转到所述下一流程节点。Integrate the process processing code into the code of the associated application, so that during the running of the application, the task to be executed of the next process node is generated, and the to-be-executed task flow is transferred to the next process node.
  15. 一种生成应用程序的方法,其特征在于,包括:A method for generating an application program, comprising:
    提供用于对基础表单数据进行可视化设计的操作界面,所述操作界面中包括候选表单元素列表,编辑区域,以及用于对表单元素的内容和/或属性进行配置的操作选项;Provide an operation interface for visual design of basic form data, the operation interface includes a list of candidate form elements, an editing area, and operation options for configuring the content and/or attributes of the form elements;
    根据被选择到编辑区域的表单元素,表单元素之间的布局信息,以及被配置的内容和/或属性信息,生成基础表单代码;Generate basic form code according to the form elements selected to the editing area, the layout information between the form elements, and the configured content and/or attribute information;
    获取包含有流程图的图像数据,并根据图像数据识别出所述流程图中包含的组成元素以及组成元素之间的布局关系信息;Acquiring image data containing a flow chart, and identifying the constituent elements included in the flow chart and the layout relationship information between the constituent elements according to the image data;
    将所述组成元素映射为通过编程语言定义的流程元素对象,并确定所述流程元素对象的属性信息;Mapping the constituent elements into a process element object defined by a programming language, and determining attribute information of the process element object;
    根据所述流程元素对象的属性信息以及布局关系信息,生成流程处理代码;According to the attribute information of the process element object and the layout relationship information, the process code is generated;
    将所述基础表单代码以及所述流程处理代码组合生成目标应用程序的代码;Combining the basic form code and the process processing code to generate the code of the target application;
    提供所述目标应用程序的链接,以便根据所述链接访问所述目标应用程序的页面,通过所述页面接收到基础数据后,根据所述流程处理代码生成下一流程节点的待执行任务,并将所述任务流转到所述下一流程节点。Provide the link of the target application, so as to access the page of the target application according to the link, after receiving the basic data through the page, generate the to-be-executed task of the next process node according to the process code, and Transfer the task flow to the next process node.
  16. 根据权利要求15所述的方法,其特征在于,The method of claim 15, wherein:
    所述应用程序包括企业管理类应用程序。The applications include enterprise management applications.
  17. 根据权利要求15所述的方法,其特征在于,还包括:The method of claim 15, further comprising:
    根据所述流程处理代码,在所述目标应用程序的页面中提供流程处理状态信息。According to the flow processing code, flow processing status information is provided in the page of the target application.
  18. 一种表单处理方法,其特征在于,包括:A form processing method, comprising:
    获取包含有表单图的图像数据,并根据图像数据识别出所述表单图中包含的组成元素以及组成元素之间的布局关系信息;Obtaining image data including a form diagram, and identifying the constituent elements included in the form diagram and the layout relationship information between the constituent elements according to the image data;
    将所述组成元素映射为通过编程语言定义的表单元素对象,并确定所述表单元素对象关联的数据内容和/或属性信息;mapping the constituent elements to form element objects defined by a programming language, and determining data content and/or attribute information associated with the form element objects;
    根据所述表单元素对象的数据内容和/或属性信息以及所述布局关系信息,生成表单代码。The form code is generated according to the data content and/or attribute information of the form element object and the layout relationship information.
  19. 一种流程处理装置,其特征在于,包括:A process processing device, characterized in that it includes:
    图像识别单元,用于获取包含有流程图的图像数据,并根据图像数据识别出所述流程图中包含的组成元素以及组成元素之间的布局关系信息;an image recognition unit, configured to obtain image data containing a flow chart, and identify constituent elements contained in the flow chart and layout relationship information between the constituent elements according to the image data;
    映射单元,用于将所述组成元素映射为通过编程语言定义的流程元素对象,并确定所述流程元素对象的属性信息;a mapping unit, configured to map the constituent elements to a process element object defined by a programming language, and determine attribute information of the process element object;
    代码生成单元,用于根据所述流程元素对象的属性信息以及所述布局关系信息,生 成流程处理代码。A code generation unit, configured to generate a process code according to the attribute information of the process element object and the layout relationship information.
  20. 一种流程处理装置,其特征在于,包括:A process processing device, characterized in that it includes:
    图像扫描单元,用于获取纸质流程图的扫描图像;an image scanning unit, used to obtain a scanned image of the paper flow chart;
    关系识别单元,用于根据扫描图像识别出所述流程图中包含的组成元素以及组成元素之间的布局关系信息;A relationship identification unit, configured to identify the constituent elements contained in the flow chart and the layout relationship information between the constituent elements according to the scanned image;
    元素映射单元,用于将所述组成元素映射为通过编程语言定义的流程元素对象,并确定所述流程元素对象的属性信息;an element mapping unit, configured to map the constituent elements to a process element object defined by a programming language, and determine attribute information of the process element object;
    代码确定单元,用于根据所述流程元素对象的属性信息以及所述布局关系信息,生成流程处理代码;a code determination unit, configured to generate a process processing code according to the attribute information of the process element object and the layout relationship information;
    代码处理单元,用于将所述流程处理代码集成到关联的应用程序的代码中,以便在所述应用程序运行过程中,生成下一流程节点的待执行任务,并将所述待执行任务流转到所述下一流程节点。A code processing unit, configured to integrate the process processing code into the code of the associated application, so that during the running process of the application, the task to be executed of the next process node is generated, and the to-be-executed task is transferred to the next process node.
  21. 一种生成应用程序的装置,其特征在于,包括:A device for generating an application program, comprising:
    界面提供单元,用于提供用于对基础表单数据进行可视化设计的操作界面,所述操作界面中包括候选表单元素列表,编辑区域,以及用于对表单元素的内容和/或属性进行配置的操作选项;The interface providing unit is used to provide an operation interface for visual design of basic form data, the operation interface includes a list of candidate form elements, an editing area, and an operation for configuring the content and/or properties of the form elements options;
    基础代码生成单元,用于根据被选择到编辑区域的表单元素,表单元素之间的布局信息,以及被配置的内容和/或属性信息,生成基础表单代码;The basic code generation unit is used to generate basic form code according to the form elements selected to the editing area, the layout information between the form elements, and the configured content and/or attribute information;
    布局信息识别单元,用于获取包含有流程图的图像数据,并根据图像数据识别出所述流程图中包含的组成元素以及组成元素之间的布局关系信息;a layout information identification unit, configured to acquire image data containing a flow chart, and identify the constituent elements contained in the flow chart and the layout relationship information between the constituent elements according to the image data;
    对象映射单元,用于将所述组成元素映射为通过编程语言定义的流程元素对象,并确定所述流程元素对象的属性信息;an object mapping unit, configured to map the constituent elements to a process element object defined by a programming language, and determine attribute information of the process element object;
    流程代码生成单元,用于根据所述流程元素对象的属性信息以及布局关系信息,生成流程处理代码;a process code generation unit, configured to generate process code according to the attribute information and layout relationship information of the process element object;
    目标代码生成单元,用于将所述基础表单代码以及所述流程处理代码组合生成目标应用程序的代码;a target code generation unit, configured to combine the basic form code and the process processing code to generate the code of the target application;
    目标链接提供单元,用于提供所述目标应用程序的链接,以便根据所述链接访问所述目标应用程序的页面,通过所述页面接收到基础数据后,根据所述流程处理代码生成下一流程节点的待执行任务,并将所述任务流转到所述下一流程节点。A target link providing unit, configured to provide a link of the target application, so as to access the page of the target application according to the link, and after receiving the basic data through the page, generate the next flow according to the flow processing code The task to be executed of the node, and the task flow is transferred to the next process node.
  22. 一种表单处理装置,其特征在于,包括:A form processing device, comprising:
    布局信息确定单元,用于获取包含有表单图的图像数据,并根据图像数据识别出所述表单图中包含的组成元素以及组成元素之间的布局关系信息;a layout information determining unit, configured to acquire image data including a form diagram, and identify constituent elements included in the form diagram and layout relationship information between the constituent elements according to the image data;
    元素对象处理单元,用于将所述组成元素映射为通过编程语言定义的表单元素对象,并确定所述表单元素对象关联的数据内容和/或属性信息;an element object processing unit, configured to map the constituent elements to form element objects defined by a programming language, and determine data content and/or attribute information associated with the form element objects;
    表单代码生成单元,用于根据所述表单元素对象的数据内容和/或属性信息以及所述 布局关系信息,生成表单代码。A form code generation unit, configured to generate a form code according to the data content and/or attribute information of the form element object and the layout relationship information.
  23. 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,该程序被处理器执行时实现权利要求1至9任一项所述的方法的步骤。A computer-readable storage medium on which a computer program is stored, characterized in that, when the program is executed by a processor, the steps of the method according to any one of claims 1 to 9 are implemented.
  24. 一种计算机系统,其特征在于,包括:A computer system, comprising:
    一个或多个处理器;以及one or more processors; and
    与所述一个或多个处理器关联的存储器,所述存储器用于存储程序指令,所述程序指令在被所述一个或多个处理器读取执行时,执行权利要求1至9任一项所述的方法的步骤。a memory associated with the one or more processors, the memory is used to store program instructions that, when read and executed by the one or more processors, executes any one of claims 1 to 9 the steps of the method.
PCT/CN2021/105379 2020-07-09 2021-07-09 Flow processing method and device, and computer system WO2022007919A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010658408.3A CN113918138A (en) 2020-07-09 2020-07-09 Flow processing method and device and computer system
CN202010658408.3 2020-07-09

Publications (1)

Publication Number Publication Date
WO2022007919A1 true WO2022007919A1 (en) 2022-01-13

Family

ID=79232069

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/105379 WO2022007919A1 (en) 2020-07-09 2021-07-09 Flow processing method and device, and computer system

Country Status (2)

Country Link
CN (1) CN113918138A (en)
WO (1) WO2022007919A1 (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115147096A (en) * 2022-09-06 2022-10-04 京华信息科技股份有限公司 OCR-based flow rapid modeling method and system
CN115426239A (en) * 2022-06-09 2022-12-02 北京邮电大学 Business support information processing mode and low code development system
CN116185425A (en) * 2023-03-23 2023-05-30 苏州峰之鼎信息科技有限公司 Event flow arrangement method, device, equipment and medium based on node combination
CN116933743A (en) * 2023-09-15 2023-10-24 中船黄埔文冲船舶有限公司 Ship service data processing method, device, equipment and storage medium
CN117252180A (en) * 2023-11-16 2023-12-19 太平金融科技服务(上海)有限公司 Report generation method and device, electronic equipment and storage medium
CN117311675A (en) * 2023-11-29 2023-12-29 武汉海昌信息技术有限公司 Service configuration method and device related to distributed system and electronic equipment

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114840291A (en) * 2022-04-14 2022-08-02 上海川源信息科技有限公司 System for distributed storage of business process and use method thereof
CN114819906A (en) * 2022-05-06 2022-07-29 广州有信科技有限公司 BPMN business process conversion method and device
CN116382672A (en) * 2023-06-06 2023-07-04 钱塘科技创新中心 System design method, intelligent terminal and storage medium for travel industry flow

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120072884A1 (en) * 2010-09-22 2012-03-22 Sap Ag Converting business process models to component models in a service oriented architecture domain
CN110515615A (en) * 2019-07-08 2019-11-29 深圳壹账通智能科技有限公司 Business logic codes automatic generation method, device and server
CN111142933A (en) * 2019-05-29 2020-05-12 浙江大搜车软件技术有限公司 Workflow generation method and device, computer equipment and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120072884A1 (en) * 2010-09-22 2012-03-22 Sap Ag Converting business process models to component models in a service oriented architecture domain
CN111142933A (en) * 2019-05-29 2020-05-12 浙江大搜车软件技术有限公司 Workflow generation method and device, computer equipment and storage medium
CN110515615A (en) * 2019-07-08 2019-11-29 深圳壹账通智能科技有限公司 Business logic codes automatic generation method, device and server

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115426239A (en) * 2022-06-09 2022-12-02 北京邮电大学 Business support information processing mode and low code development system
CN115147096A (en) * 2022-09-06 2022-10-04 京华信息科技股份有限公司 OCR-based flow rapid modeling method and system
CN116185425A (en) * 2023-03-23 2023-05-30 苏州峰之鼎信息科技有限公司 Event flow arrangement method, device, equipment and medium based on node combination
CN116185425B (en) * 2023-03-23 2024-02-23 苏州峰之鼎信息科技有限公司 Event flow arrangement method, device, equipment and medium based on node combination
CN116933743A (en) * 2023-09-15 2023-10-24 中船黄埔文冲船舶有限公司 Ship service data processing method, device, equipment and storage medium
CN117252180A (en) * 2023-11-16 2023-12-19 太平金融科技服务(上海)有限公司 Report generation method and device, electronic equipment and storage medium
CN117252180B (en) * 2023-11-16 2024-02-23 太平金融科技服务(上海)有限公司 Report generation method and device, electronic equipment and storage medium
CN117311675A (en) * 2023-11-29 2023-12-29 武汉海昌信息技术有限公司 Service configuration method and device related to distributed system and electronic equipment
CN117311675B (en) * 2023-11-29 2024-02-09 武汉海昌信息技术有限公司 Service configuration method and device related to distributed system and electronic equipment

Also Published As

Publication number Publication date
CN113918138A (en) 2022-01-11

Similar Documents

Publication Publication Date Title
WO2022007919A1 (en) Flow processing method and device, and computer system
US11263390B2 (en) Systems and methods for informational document review, display and validation
US8543903B2 (en) System and method of integrating a plurality of form related workflow tools
US10331765B2 (en) Methods and apparatus for translating forms to native mobile applications
US8180795B2 (en) Apparatus and method for distribution of a report with dynamic write-back to a data source
CN112561386A (en) Method, device and equipment for acquiring business process
US20060090071A1 (en) Systems and methods for project management
US8630887B2 (en) Business process flowchart editing program and business process flowchart editing method
CN111538774B (en) Data storage and display method, system, equipment and storage medium
JP2019133645A (en) Semi-automated method, system, and program for translating content of structured document to chat based interaction
CN115857920A (en) Application page development method, device and system, computing equipment and storage medium
US20200412673A1 (en) Personality reply for digital content
KR102221863B1 (en) Server and system for it service management, and method thereof
CN114035793A (en) Page generation method, page generation device, equipment and storage medium
CN114647409A (en) Large-screen visualization application creation platform, method, computing device and storage medium
CN114201718A (en) Dynamically configurable form instance generation method and device
CN114118959A (en) Method and device for examining and approving target object, computer storage medium and electronic equipment
US20150363191A1 (en) Configuration-based processing of requests by conditional execution of software code to render regions in a display
CN112199373A (en) Form development method and system
US20200379786A1 (en) Keyboard interaction model for software builder canvas nodes
CN116382672A (en) System design method, intelligent terminal and storage medium for travel industry flow
US8495519B2 (en) Methods and apparatus for displaying interprocess communication thumbnails
US20190266265A1 (en) Integrated computing environment for managing and presenting design iterations
CN108228688B (en) Template generation method, system and server based on XBRL
CN111831179A (en) Signing method, device and computer readable medium

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: 21837455

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: 21837455

Country of ref document: EP

Kind code of ref document: A1