CN115168779B - Form flow processing method and device, computer equipment and storage medium - Google Patents

Form flow processing method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN115168779B
CN115168779B CN202211081138.XA CN202211081138A CN115168779B CN 115168779 B CN115168779 B CN 115168779B CN 202211081138 A CN202211081138 A CN 202211081138A CN 115168779 B CN115168779 B CN 115168779B
Authority
CN
China
Prior art keywords
data
engine
flow
target
structure model
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202211081138.XA
Other languages
Chinese (zh)
Other versions
CN115168779A (en
Inventor
曹世锋
饶维立
武志保
叶柳珍
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Lingzhu Technology Co ltd
Original Assignee
Shenzhen Lingzhu Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Lingzhu Technology Co ltd filed Critical Shenzhen Lingzhu Technology Co ltd
Priority to CN202211081138.XA priority Critical patent/CN115168779B/en
Publication of CN115168779A publication Critical patent/CN115168779A/en
Application granted granted Critical
Publication of CN115168779B publication Critical patent/CN115168779B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems
    • G06F16/258Data format conversion from or to a database

Abstract

The application relates to a form flow processing method, a form flow processing device, computer equipment and a storage medium. The method is based on a form engine to realize the generation and dynamic storage of form data, based on an embedded process engine to realize the process design, and converts unstructured data generated by the form engine and the process engine into structured data through a data mapping conversion engine, and then realizes the form process based on the structured data through a process instance; through the cooperation of each engine, the high-efficient execution of each link can be realized, and then the processing efficiency of webpage form data is improved. Correspondingly, the form flow processing device, the equipment and the storage medium provided by the application also have the technical effects.

Description

Form flow processing method and device, computer equipment and storage medium
Technical Field
The present application relates to the field of web page processing technologies, and in particular, to a form flow processing method and apparatus, a computer device, and a storage medium.
Background
At present, the form is generated in a webpage mode and executed in the webpage, so that information transfer, process approval and the like among different personnel of an enterprise can be realized, and the method has high practicability.
In the traditional technology, to realize the processing of the web form data, many processes such as demand analysis, design review, service development, online debugging and the like are involved, and the processing can be completed only by long-time mutual cooperation of professional teams, so that the efficiency of the whole processing process is low.
It is to be noted that the information disclosed in the above background section is only for enhancement of understanding of the background of the present invention and therefore may include information that does not constitute prior art known to a person of ordinary skill in the art.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a form flow processing method, apparatus, computer device and storage medium capable of improving the processing efficiency of web form data.
A form flow processing method, the method comprising:
when a form element selection control instruction is received through a form engine, generating a target form structure and target form data based on the form element selection control instruction, and obtaining a form engine data structure model based on the generated target form structure and the target form data; dynamically storing the form engine data structure model into a target database based on distributed file storage; wherein, the data in the form engine data structure model is unstructured data;
after the flow engine is embedded in an iframe mode, calling a root domain of the flow engine based on PostMessage; when a flow design instruction is received through the flow engine, triggering a Modeller designer of the flow engine, and acquiring target flow data of a tree-shaped hierarchical structure corresponding to the form engine data structure model based on the flow design instruction; converting the target process data according to a standard business process model to obtain a process engine data structure model; wherein, the data in the process engine data structure model is unstructured data;
when a form flow initiating instruction is received, reading the form engine data structure model from the target database, and reading the flow engine data structure model; triggering a visualization tool in a data mapping conversion engine, and mapping fields in the unstructured data of the form engine data structure model and the process engine data structure model to fields in the structured data;
and submitting the target form structure and the target form data to the associated process instance according to the structured target process data, and executing interface element expression corresponding to the structured target form structure and logic judgment processing corresponding to the structured target form data through the process instance so as to realize the form process in a webpage.
A form flow processing apparatus, the apparatus comprising:
the form generation module is used for generating a target form structure and target form data based on the form element selection control instruction when the form element selection control instruction is received through the form engine, and obtaining a form engine data structure model based on the generated target form structure and the target form data; dynamically storing the form engine data structure model into a target database based on distributed file storage; wherein, the data in the form engine data structure model is unstructured data;
the flow generation module is used for calling a root domain of the flow engine based on PostMessage after the flow engine is embedded in an iframe mode; when a flow design instruction is received through the flow engine, triggering a Modeller designer of the flow engine, and acquiring target flow data of a tree-shaped hierarchical structure corresponding to the form engine data structure model based on the flow design instruction; converting the target process data according to a standard business process model to obtain a process engine data structure model; wherein, the data in the process engine data structure model is unstructured data;
the data conversion module is used for reading the form engine data structure model from the target database and reading the process engine data structure model when a form process initiating instruction is received; triggering a visualization tool in a data mapping conversion engine, and mapping fields in the unstructured data of the form engine data structure model and the process engine data structure model to fields in the structured data;
and the process execution module is used for submitting the target form structure and the target form data to the associated process instance according to the structured target process data, and executing the interface element expression corresponding to the structured target form structure and the logic judgment processing corresponding to the structured target form data through the process instance so as to realize the form process in the webpage.
A computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the following steps when executing the computer program:
when a form element selection control instruction is received through a form engine, generating a target form structure and target form data based on the form element selection control instruction, and obtaining a form engine data structure model based on the generated target form structure and target form data; dynamically storing the form engine data structure model into a target database based on distributed file storage; wherein, the data in the form engine data structure model is unstructured data;
after the flow engine is embedded in an iframe mode, calling a root domain of the flow engine based on PostMessage; when a flow design instruction is received through the flow engine, triggering a Modeller designer of the flow engine, and acquiring target flow data of a tree-shaped hierarchical structure corresponding to the form engine data structure model based on the flow design instruction; converting the target process data according to a standard business process model to obtain a process engine data structure model; wherein, the data in the process engine data structure model is unstructured data;
when a form flow initiating instruction is received, reading the form engine data structure model from the target database, and reading the flow engine data structure model; triggering a visualization tool in a data mapping conversion engine, and mapping fields in the unstructured data of the form engine data structure model and the process engine data structure model to fields in the structured data;
and submitting the target form structure and the target form data to the associated process instance according to the structured target process data, and executing interface element expression corresponding to the structured target form structure and logic judgment processing corresponding to the structured target form data through the process instance so as to realize the form process in a webpage.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
when a form element selection control instruction is received through a form engine, generating a target form structure and target form data based on the form element selection control instruction, and obtaining a form engine data structure model based on the generated target form structure and target form data; dynamically storing the form engine data structure model into a target database based on distributed file storage; wherein, the data in the form engine data structure model is unstructured data;
after the flow engine is embedded in an iframe mode, calling a root domain of the flow engine based on PostMessage; when a flow design instruction is received through the flow engine, triggering a Modeller designer of the flow engine, and acquiring target flow data of a tree-shaped hierarchical structure corresponding to the form engine data structure model based on the flow design instruction; converting the target process data according to a standard business process model to obtain a process engine data structure model; wherein, the data in the process engine data structure model is unstructured data;
when a form flow initiating instruction is received, reading the form engine data structure model from the target database, and reading the flow engine data structure model; triggering a visualization tool in a data mapping conversion engine, and mapping fields in the unstructured data of the form engine data structure model and the process engine data structure model to fields in the structured data;
and submitting the target form structure and the target form data to the associated process instance according to the structured target process data, and executing interface element expression corresponding to the structured target form structure and logic judgment processing corresponding to the structured target form data through the process instance so as to realize the form process in a webpage.
The form flow processing method is characterized in that the form data generation and dynamic storage are realized based on the form engine, the flow design is realized based on the embedded flow engine, the unstructured data generated by the form engine and the flow engine are converted into structured data through the data mapping conversion engine, and then the form flow is realized based on the structured data through the flow instance; through the cooperation of each engine, the high-efficient execution of each link can be realized, and then the processing efficiency of webpage form data is improved. Correspondingly, the form flow processing device, the equipment and the storage medium provided by the application also have the technical effects.
Drawings
FIG. 1 is a flow diagram that illustrates a method for processing a form flow, according to one embodiment;
FIG. 2 is a diagram illustrating a designated interface of a role matrix in accordance with an embodiment;
FIG. 3 is a schematic diagram of a configuration interface for a role matrix in one embodiment;
FIG. 4 is a block diagram showing the configuration of a form flow processing apparatus according to one embodiment;
FIG. 5 is a diagram of the internal structure of a computer device in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
In an embodiment, as shown in fig. 1, a form flow processing method is provided, and this embodiment is illustrated by a development platform applying the method to a terminal, and it is to be understood that the method may also be applied to a server, and may also be applied to a system including a terminal and a server, and is implemented through interaction between the terminal and the server. The terminal can be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers and portable wearable devices, and the server can be implemented by an independent server or a server cluster formed by a plurality of servers.
In this embodiment, the method includes the steps of:
s101, when a form element selection control instruction is received through a form engine, generating a target form structure and target form data based on the form element selection control instruction, and obtaining a form engine data structure model based on the generated target form structure and target form data; dynamically storing the form engine data structure model into a target database based on distributed file storage; and the data in the form engine data structure model is unstructured data.
Alternatively, the entire form design may be a dynamic form design based on a Json implementation.
The table element selection control instruction is an instruction for selecting and controlling the table element. Further, when entering the form design flow, form elements can be displayed in the page, the layout of the form elements of the whole page is determined based on the form selection operation and the placement operation of the user, and then the target form structure and the target form data are generated. The form structure can be dynamic Json data used for describing and expressing the whole form interface element composition, and specifically can be structural information such as the position and layout of form elements in each form page; the target form data is various data related to the form, and can be personnel, judgment conditions and the like corresponding to each node, further, the form data can store the associated information of the process ID and the process example, and the form data can be stored in the process example and used for logic judgment processing of the form data in the process. Furthermore, the table elements between different form pages jump to a logical relationship, and the structure of each form data is drawn based on the logical relationship, so that the data under the tree hierarchy structure is obtained.
Optionally, after the target form structure and the target form data are obtained, model construction is performed based on the target form structure and the target form data, so as to express a logical relationship between the target form structure and the target form data, and obtain a form engine data structure model. The form engine data structure model records a target form structure and target form data corresponding to each position of the target form structure.
Optionally, the form engine data structure model may be dynamically stored in a storage space based on distributed file storage, such as HDFS/GFS, mongodb NOSQL, and the like, that is, the form engine data structure model generated in real time is stored in a corresponding storage space in real time, and the storage space can be accessed by various models, so that the problem that the general data model is difficult to store data can be solved.
Optionally, the process of generating the target form structure and the target form data based on the table element selection control instruction may be as follows: and acquiring the target form element and the element state of the target form element based on the form element selection control instruction, and generating a target form structure and target form data based on the target form element and the corresponding element state.
S102, after the flow engine is embedded in an iframe mode, calling a root domain of the flow engine based on PostMessage; when a flow design instruction is received through the flow engine, triggering a Modeller designer of the flow engine, and acquiring target flow data of a tree-shaped hierarchical structure corresponding to the form engine data structure model based on the flow design instruction; converting the target process data according to a standard business process model to obtain a process engine data structure model; and the data in the process engine data structure model is unstructured data.
In one embodiment, the development platform is a VUE-based front-end open framework, and the flow engine is incompatible with the VUE. That is, the development platform may develop the web page based on the front-end open framework of the VUE, and the flow engine may be incompatible with the VUE. Further, a flow engine can be embedded in the VUE-based development platform, specifically, an embedded model design page can be developed by angularjs and is incompatible with VUE. Therefore, the model design page of the flow engine needs to be embedded into the development platform in an iframe manner. Alternatively, the flow engine may be form-making, form-generator, f-render, etc.
The standard business process model may be a BPMN2.0 model, or the like. Optionally, the target process data is converted according to a standard business process model, and the implementation manner of obtaining the process engine data structure model may be: the Modeller designer generates target flow data of a tree-shaped hierarchical structure based on the form engine data structure model, display and management of tree-shaped hierarchical flow configuration are carried out based on the target flow data, and further, the development platform is converted into a BPMN2.0 model interface according to a front-end Json tree structure. Optionally, form generation, expression generation, authority management and the like are combined during process design, so as to realize subsequent form interface display.
Optionally, after the process engine is embedded, the service complexity may be determined based on a form engine data structure model, when the corresponding service complexity is high, a process designer personalized matched with the development platform is obtained, and script code development is performed on the embedded process engine on the basis of the process designer, so as to realize design and implementation of a complex form; when the complexity of the corresponding service is low, the inherent process model in the process engine persistent layer can be directly applied, the source code does not need to be modified, the process database does not need to be operated, the development cost is reduced, and the form process development with low code is realized; namely, the flow engine can be utilized in a targeted manner based on the business complexity, the design and implementation of the form can be guaranteed in an optimal manner, and the processing efficiency of the webpage data can be improved.
Optionally, in this embodiment, based on the Json dynamic process model engine, tree infinite downward model design is implemented, conversion of process data to the BPMN2.0 model is implemented, and design of a general process model is implemented, so that the implemented form process can be used universally on different platforms.
S103, when a form flow initiating instruction is received, reading the form engine data structure model from the target database, and reading the flow engine data structure model; and triggering a visualization tool in a data mapping conversion engine, and mapping fields in the unstructured data of the form engine data structure model and the process engine data structure model to fields in the structured data.
Optionally, when a form flow initiation instruction is received, a flow circulation mode is entered, and node approval, data management and the like can be realized through circulation of different flow nodes in the flow circulation mode.
The data realized by the form engine and the process engine is unstructured dynamic Json data, which is not beneficial to subsequent data asset precipitation, data transmission and data integration. Therefore, unstructured dynamic Json data needs to be converted into structured data, and the conversion of the structured data needs code writing support and is not friendly. The embodiment provides a data mapping conversion engine, which directly realizes data conversion through a visualization tool. The main implementation logic of the engine is as follows: reading the unstructured data structure model, and creating and reading the structured data model. And mapping fields in the unstructured data to fields in the structured data through a visualization tool, and mapping and submitting the generated form data to the structured data in a process approval link. Based on the design of a data model mapping engine, the general model is mapped to a specific structural model, so that the functions of the general data model in the aspects of statistical analysis and data management can be reserved, the general model can be matched with a specific application model, and the efficient operation of a form flow is ensured.
S104, submitting the target form structure and the target form data to the associated process instance according to the structured target process data, and executing interface element expression corresponding to the structured target form structure and logic judgment processing corresponding to the structured target form data through the process instance so as to realize the form process in the webpage.
Optionally, after entering the process flow circulation mode, it is implemented that each node is an approval process based on the process instance, so the process flow circulation mode may also be referred to as process approval, and each process node may be referred to as an approval node.
Furthermore, in consideration of the complexity of the form data, the target form structure and the form data are stored in the Mongobb, and the form data are submitted to a process instance every time the process is initiated, so that the process can be judged and processed later.
In the form flow processing method, the form data is generated and dynamically stored based on a form engine, the flow design is realized based on an embedded flow engine, unstructured data generated by the form engine and the flow engine are converted into structured data through a data mapping conversion engine, and then the form flow is realized based on the structured data through a flow instance; through the cooperation of each engine, the high-efficient execution of each link can be realized, and then the processing efficiency of webpage form data is improved.
In one embodiment, the triggering a Modeler designer of the flow engine when a flow design instruction is received by the flow engine, and acquiring target flow data of a tree hierarchy corresponding to the form engine data structure model based on the flow design instruction includes: when a flow design instruction is received through the flow engine, determining personnel positioning dimension information carried in the flow design instruction; the personnel positioning dimension information comprises information of one dimension required by positioning personnel; determining matched personnel positioning matrix data based on the personnel positioning dimension information; the personnel positioning matrix data comprises positioning information of row dimensions and positioning information of column dimensions, wherein the positioning information of the row dimensions is post position information, and the positioning information of the column dimensions is role information; and triggering a Modeller designer of the process engine, and acquiring personnel positioning data corresponding to the form engine data structure model based on the personnel positioning matrix data.
The flow design instruction may be an instruction for designing a flow, an instruction for adding or deleting a flow node, an instruction for specifying a node person, an instruction for setting a node authority, or the like, or other instructions related to flow design.
Optionally, as shown in fig. 2, a column of a matrix may be specified when a process node is configured, so that when a process is initiated to a specific examination and approval node, the development platform may accurately locate a specific examination and approval person according to a department specified by the initiator and the set matrix column.
Optionally, the development platform may implement the role matrix configuration through the interface shown in fig. 3, that is, when a flow design instruction is received, a target node corresponding to the flow design instruction is determined, and when the selected target role matrix is acquired through the role matrix configuration page, the target role matrix is associated with the target node. By the mode, the user can be identified based on the target role matrix associated with the current node in the form execution process, and whether the user is a legal approval user capable of operating the current node or not is determined.
In one embodiment, the submitting the target form structure and the target form data to the associated process instance according to the structured target process data includes: positioning the target person according to the structured personnel positioning data; and submitting the target form structure and the target form data to the associated process instance so as to transfer the form process flow to the process node of the target personnel.
In one embodiment, before determining the matched person positioning matrix data based on the person positioning dimension information, the method further includes: respectively receiving field information of a row dimension and a column dimension; determining positioning information of row dimensions based on the row dimension field information, and determining positioning information of column dimensions based on the column dimension field information; splicing the positioning information of the row dimension and the positioning information of the column dimension; and configuring personnel information on the basis of the splicing result to generate personnel positioning matrix data.
Optionally, the matrix is provided with two functions of data maintenance and field maintenance, the field maintenance refers to maintaining rows and columns, the rows are information of departments, positions, posts and the like, the columns are corresponding matched roles, and the data is specific accurate personnel information configured on the basis of the rows and the columns. The personnel information can be information such as personnel name, time of employment, level and the like.
According to the embodiment, the process approval nodes are designed based on the matrix, and the approval nodes of complex processes can be configured efficiently. Furthermore, the problem that the cross-department functional approver cannot be accurately positioned by a single role and a single job is solved by transversely and longitudinally matching specific users, for example, HRBP has independent role management personnel in each department, the role cannot be accurately positioned, but the matrix relation can be used for positioning specific personnel according to the department and the role so as to accurately position the approver.
In one embodiment, the method further comprises: when a form flow simulation instruction is received, triggering a simulation flow execution engine to determine each flow node to be executed based on the flow engine data structure model, and submitting the target form structure and the target form data to the associated flow instance according to the structured target flow data; gradually simulating each process node, when entering the current process node through the process instance, triggering a simulation process execution engine to execute interface element expression corresponding to the structured target form structure, determining a corresponding examining and approving person based on the structured target form data, and executing logic judgment processing corresponding to the structured target form data based on an operation instruction input by the examining and approving person; carrying out simulation marking on data generated by each process node and marking problems in the simulation process; when the simulation process is finished, generating a closed loop simulation test result based on the problem marked in the simulation process; correspondingly, the method further comprises the following steps: and when a form flow initiating instruction is received, ignoring data containing the simulation mark, and realizing the form flow according to the actual form data.
At present, some flows developed based on forms and flow engines are complex, and many times, some problems of configuration can be found only when specific flows are executed. The main implementation logic of the engine is as follows: before the process is released, the engine simulates the execution process, the current state of the process is judged to be a simulated state, then the corresponding approver can be simulated at each node for approval, the execution condition of the whole process is checked, the generated data is subjected to simulation marking, the production data is prevented from being influenced, and the information of approval to be dealt with and the like generated in the process execution process is bound to the real account.
According to the embodiment, the problem in the process design is discovered by dynamically simulating the process execution condition, the problem occurring in the later process approval is avoided, the process is adjusted, and the development efficiency of the form process is improved.
In one embodiment, after the flow engine is embedded by means of iframe, invoking a root domain of the flow engine based on PostMessage includes: respectively determining original browser domains corresponding to the development platform and the process engine, and performing consistency comparison; when the original domains of the two browsers are consistent, calling the root domain of the flow engine in an iframe mode; and when the original domains of the two browsers are not consistent, calling the root domain of the flow engine based on the PostMessage.
Wherein, the browser original domain can be document.
The embodiment can prevent the cross-domain problem of homologous access and ensure the reliability of webpage data processing by comparing the consistency of the document.
It should be understood that, although the steps in the above-described flowcharts are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a part of the steps in the above-mentioned flowcharts may include a plurality of steps or a plurality of stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of performing the steps or the stages is not necessarily performed in sequence, but may be performed alternately or alternately with other steps or at least a part of the steps or the stages in other steps.
Based on the same idea as the form flow processing method in the above embodiment, the present invention also provides a form flow processing apparatus, which can be used to execute the above form flow processing method. For convenience of illustration, the structure of the embodiment of the form flow processing apparatus is only shown in the related part of the embodiment of the present invention, and those skilled in the art will understand that the illustrated structure does not constitute a limitation of the apparatus, and may include more or less components than those illustrated, or combine some components, or arrange different components.
In one embodiment, as shown in fig. 4, a form flow processing apparatus 400 is provided, which may be a part of a computer device using software modules or hardware modules, or a combination of both, wherein:
the form generation module 401 is configured to generate a target form structure and target form data based on a form element selection control instruction when the form element selection control instruction is received by a form engine, and obtain a form engine data structure model based on the generated target form structure and target form data; dynamically storing the form engine data structure model into a target database based on distributed file storage; wherein, the data in the form engine data structure model is unstructured data;
the flow generation module 402 is configured to, after embedding a flow engine in an iframe manner, call a root domain of the flow engine based on a PostMessage; when a flow design instruction is received through the flow engine, triggering a Modeller designer of the flow engine, and acquiring target flow data of a tree-shaped hierarchical structure corresponding to the form engine data structure model based on the flow design instruction; converting the target process data according to a standard business process model to obtain a process engine data structure model; wherein, the data in the process engine data structure model is unstructured data;
a data conversion module 403, configured to, when a form flow initiation instruction is received, read the form engine data structure model from the target database, and read the flow engine data structure model; triggering a visualization tool in a data mapping conversion engine, and mapping fields in the unstructured data of the form engine data structure model and the process engine data structure model to fields in the structured data;
a process executing module 404, configured to submit the target form structure and the target form data to the associated process instance according to the structured target process data, and execute, by the process instance, interface element expression corresponding to the structured target form structure and logic judgment processing corresponding to the structured target form data, so as to implement a form process in a web page.
In the form flow processing device, the generation and the dynamic storage of form data are realized based on a form engine, the flow design is realized based on an embedded flow engine, unstructured data generated by the form engine and the flow engine are converted into structured data through a data mapping conversion engine, and then the form flow is realized based on the structured data through a flow instance; through the cooperation of each engine, the high-efficient execution of each link can be realized, and then the processing efficiency of webpage form data is improved.
In one embodiment, a flow generation module includes: the dimension information determining sub-module is used for determining personnel positioning dimension information carried in a process design instruction when the process design instruction is received through the process engine; the personnel positioning dimension information comprises information of one dimension required by positioning personnel; the matrix data determining submodule is used for determining matched personnel positioning matrix data based on the personnel positioning dimension information; the personnel positioning matrix data comprises positioning information of row dimensions and positioning information of column dimensions, wherein the positioning information of the row dimensions is post position information, and the positioning information of the column dimensions is role information; and the positioning data determining submodule is used for triggering a Modeller designer of the process engine and acquiring personnel positioning data corresponding to the form engine data structure model based on the personnel positioning matrix data.
In one embodiment, the flow execution module includes: the personnel positioning sub-module is used for positioning the target personnel according to the structured personnel positioning data; and the data submission sub-module is used for submitting the target form structure and the target form data to the associated process instance so as to transfer the form process to the process node of the target personnel.
In one embodiment, the flow generation module further includes: the field information receiving submodule is used for respectively receiving field information of a row dimension and a column dimension; the positioning information determining submodule is used for determining positioning information of row dimensions based on the field information of the row dimensions and determining positioning information of column dimensions based on the field information of the column dimensions; the positioning information splicing submodule is used for splicing the positioning information of the row dimension and the positioning information of the column dimension; and the matrix data generation submodule is used for configuring personnel information on the basis of the splicing result and generating personnel positioning matrix data.
In one embodiment, the apparatus further comprises: the simulation triggering module is used for triggering a simulation flow execution engine to determine each flow node to be executed based on the flow engine data structure model when a form flow simulation instruction is received, and submitting the target form structure and the target form data to the associated flow instance according to the structured target flow data; the simulation test module is used for gradually simulating each process node, triggering a simulation process execution engine to execute interface element expression corresponding to the structured target form structure when entering the current process node through the process instance, determining corresponding examining and approving personnel based on the structured target form data, and executing logic judgment processing corresponding to the structured target form data based on an operation instruction input by the examining and approving personnel; carrying out simulation marking on data generated by each process node and marking problems in the simulation process; when the simulation process is finished, generating a closed-loop simulation test result based on the problem marked in the simulation process; correspondingly, the device further comprises: and the data ignoring module is used for ignoring data containing the simulation mark when receiving the form flow initiating instruction and realizing the form flow according to the actual form data.
In one embodiment, a flow generation module includes: the original domain determining submodule is used for respectively determining the original domains of the browser corresponding to the development platform and the process engine and carrying out consistency comparison; the first calling sub-module is used for calling the root domain of the flow engine in an iframe mode when the original domains of the two browsers are consistent; and the second calling submodule is used for calling the root domain of the flow engine based on PostMessage when the original domains of the browsers of the two modules are inconsistent.
In one embodiment, the development platform is a VUE-based front-end open framework, and the flow engine is not compatible with the VUE.
For specific limitations of the form flow processing apparatus, reference may be made to the above limitations of the form flow processing method, which is not described herein again. The various modules in the form flow processing apparatus described above may be implemented wholly or partially by software, hardware, and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 5. The computer device includes a processor, a memory, a communication interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless communication can be realized through WIFI, an operator network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement a form flow processing method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 5 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is further provided, which includes a memory and a processor, the memory stores a computer program, and the processor implements the steps of the above method embodiments when executing the computer program.
In an embodiment, a computer-readable storage medium is provided, in which a computer program is stored which, when being executed by a processor, carries out the steps of the above-mentioned method embodiments.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical storage, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is specific and detailed, but not to be understood as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (9)

1. A form flow processing method, the method comprising:
when a form element selection control instruction is received through a form engine, generating a target form structure and target form data based on the form element selection control instruction, and obtaining a form engine data structure model based on the generated target form structure and the target form data; dynamically storing the form engine data structure model into a target database based on distributed file storage; wherein, the data in the form engine data structure model is unstructured data;
after the flow engine is embedded in an iframe mode, calling a root domain of the flow engine based on PostMessage; when a flow design instruction is received through the flow engine, triggering a Modeller designer of the flow engine, and acquiring target flow data of a tree-shaped hierarchical structure corresponding to the form engine data structure model based on the flow design instruction; converting the target process data according to a standard business process model to obtain a process engine data structure model; wherein, the data in the process engine data structure model is unstructured data; wherein the tree hierarchy comprises: the table elements between different form pages have a logical relation of mutual skip, and the structure of each form data drawn based on the logical relation;
when a form flow initiating instruction is received, reading the form engine data structure model from the target database, and reading the flow engine data structure model; triggering a visualization tool in a data mapping conversion engine, and mapping fields in the unstructured data of the form engine data structure model and the process engine data structure model to fields in the structured data; wherein, the implementation logic of the data mapping conversion engine is as follows: reading the unstructured data structure model, and creating and reading the structured data model; mapping fields in the unstructured data to fields in the structured data through a visualization tool; mapping and submitting the generated form data to structured data in a process approval link;
submitting the target form structure and the target form data to an associated process instance according to the structured target process data, and executing interface element expression corresponding to the structured target form structure and logic judgment processing corresponding to the structured target form data through the process instance so as to realize form processes in a webpage;
the method further comprises the following steps:
after the process engine is embedded, determining the service complexity based on a form engine data structure model, when the corresponding service complexity is high, acquiring a process designer which is individually matched with a development platform, and developing script codes for the embedded process engine on the basis of the process designer to realize the design and implementation of a complex form; when the complexity of the corresponding service is low, the inherent process model in the process engine persistence layer is directly applied, so that the form process development of low codes is realized;
after the flow engine is embedded in the iframe mode, the root domain of the flow engine is called based on the PostMessage, and the method comprises the following steps: respectively determining original browser domains corresponding to the development platform and the process engine, and performing consistency comparison; when the original domains of the two browsers are consistent, calling the root domain of the flow engine in an iframe mode; and when the original domains of the two browsers are not consistent, calling the root domain of the flow engine based on the PostMessage.
2. The method of claim 1, wherein the triggering a Modeler designer of the flow engine when a flow design instruction is received by the flow engine, and obtaining target flow data of a tree hierarchy corresponding to the form engine data structure model based on the flow design instruction comprises:
when a flow design instruction is received through the flow engine, determining personnel positioning dimension information carried in the flow design instruction; the personnel positioning dimension information comprises information of one dimension required by positioning personnel;
determining matched personnel positioning matrix data based on the personnel positioning dimension information; the personnel positioning matrix data comprises positioning information of row dimensions and positioning information of column dimensions, wherein the positioning information of the row dimensions is post position information, and the positioning information of the column dimensions is role information;
and triggering a Modeller designer of the process engine, and acquiring personnel positioning data corresponding to the form engine data structure model based on the personnel positioning matrix data.
3. The method of claim 2, wherein submitting the target form structure and the target form data to the associated process instance in accordance with the structured target process data comprises:
positioning the target person according to the structured personnel positioning data;
and submitting the target form structure and the target form data to the associated process instance so as to transfer the form process flow to the process node of the target personnel.
4. The method of claim 2, wherein prior to determining the matching people positioning matrix data based on the people positioning dimension information, further comprising:
respectively receiving field information of a row dimension and a column dimension;
determining positioning information of a row dimension based on the row dimension field information, and determining positioning information of a column dimension based on the column dimension field information;
splicing the positioning information of the row dimension and the positioning information of the column dimension;
and configuring personnel information on the basis of the splicing result to generate personnel positioning matrix data.
5. The method according to any one of claims 1 to 4, further comprising:
when a form flow simulation instruction is received, triggering a simulation flow execution engine to determine each flow node to be executed based on the flow engine data structure model, and submitting the target form structure and the target form data to the associated flow instance according to the structured target flow data;
gradually simulating each process node, when entering the current process node through the process instance, triggering a simulation process execution engine to execute interface element expression corresponding to the structured target form structure, determining a corresponding examining and approving person based on the structured target form data, and executing logic judgment processing corresponding to the structured target form data based on an operation instruction input by the examining and approving person; performing simulation marking on data generated by each process node and marking problems in the simulation process; when the simulation process is finished, generating a closed-loop simulation test result based on the problem marked in the simulation process;
correspondingly, the method further comprises the following steps:
and when a form flow initiating instruction is received, ignoring data containing the simulation mark, and realizing the form flow according to the actual form data.
6. The method of claim 1, wherein the development platform is a VUE-based front-end open framework, and wherein the flow engine is incompatible with VUEs.
7. An apparatus for processing a form flow, the apparatus comprising:
the form generation module is used for generating a target form structure and target form data based on the form element selection control instruction when the form element selection control instruction is received through the form engine, and obtaining a form engine data structure model based on the generated target form structure and the target form data; dynamically storing the form engine data structure model into a target database based on distributed file storage; wherein, the data in the form engine data structure model is unstructured data;
the flow generation module is used for calling a root domain of the flow engine based on PostMessage after the flow engine is embedded in an iframe mode; when a flow design instruction is received through the flow engine, triggering a Modeller designer of the flow engine, and acquiring target flow data of a tree-shaped hierarchical structure corresponding to the form engine data structure model based on the flow design instruction; converting the target process data according to a standard business process model to obtain a process engine data structure model; wherein, the data in the process engine data structure model is unstructured data; wherein the tree hierarchy comprises: the table elements between different form pages have a logical relation of mutual skip, and the structure of each form data drawn based on the logical relation;
the data conversion module is used for reading the form engine data structure model from the target database and reading the process engine data structure model when a form process initiating instruction is received; triggering a visualization tool in a data mapping conversion engine, and mapping fields in the unstructured data of the form engine data structure model and the process engine data structure model to fields in the structured data; wherein, the implementation logic of the data mapping conversion engine is as follows: reading the unstructured data structure model, and creating and reading the structured data model; mapping fields in the unstructured data to fields in the structured data through a visualization tool; mapping and submitting the generated form data to structured data in a process approval link;
the process execution module is used for submitting the target form structure and the target form data to the associated process instance according to the structured target process data, and executing interface element expression corresponding to the structured target form structure and logic judgment processing corresponding to the structured target form data through the process instance so as to realize form process in a webpage;
the device, still include:
after the process engine is embedded, determining the service complexity based on a form engine data structure model, when the corresponding service complexity is high, acquiring a process designer which is individually matched with a development platform, and developing script codes for the embedded process engine on the basis of the process designer to realize the design and implementation of a complex form; when the complexity of the corresponding service is low, the inherent process model in the process engine persistence layer is directly applied, so that the form process development of low codes is realized;
after the flow engine is embedded in the iframe mode, the root domain of the flow engine is called based on the PostMessage, and the method comprises the following steps: respectively determining original browser domains corresponding to the development platform and the process engine, and performing consistency comparison; when the original domains of the two browsers are consistent, calling the root domain of the flow engine in an iframe mode; and when the original domains of the two browsers are inconsistent, calling the root domain of the process engine based on the PostMessage.
8. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor implements the steps of the method of any one of claims 1 to 6 when executing the computer program.
9. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 6.
CN202211081138.XA 2022-09-06 2022-09-06 Form flow processing method and device, computer equipment and storage medium Active CN115168779B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211081138.XA CN115168779B (en) 2022-09-06 2022-09-06 Form flow processing method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211081138.XA CN115168779B (en) 2022-09-06 2022-09-06 Form flow processing method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN115168779A CN115168779A (en) 2022-10-11
CN115168779B true CN115168779B (en) 2022-12-06

Family

ID=83481691

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211081138.XA Active CN115168779B (en) 2022-09-06 2022-09-06 Form flow processing method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115168779B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10445334B1 (en) * 2015-09-11 2019-10-15 Amazon Technologies, Inc. Query transmission in type-limited interchange formats
US10817145B1 (en) * 2018-11-06 2020-10-27 Centergy Consulting, LLC System and method for seamlessly integrating an iframe into a webpage
CN114968235A (en) * 2022-05-16 2022-08-30 中国空气动力研究与发展中心计算空气动力研究所 Page form generation method and device, computer equipment and storage medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9961388B2 (en) * 2008-11-26 2018-05-01 David Harrison Exposure of public internet protocol addresses in an advertising exchange server to improve relevancy of advertisements
CN108804307B (en) * 2018-04-19 2022-04-08 北京炎黄盈动科技发展有限责任公司 Flow automation test method and device
US11792257B2 (en) * 2019-12-31 2023-10-17 Advantage Integrated Solutions, Inc. Form engine
CN113239507A (en) * 2021-01-15 2021-08-10 北京致远互联软件股份有限公司 Method for simulating actual flow of flow
CN114186975A (en) * 2021-12-16 2022-03-15 上海浦东发展银行股份有限公司 Configuration method, device, equipment and storage medium of approval process
CN114662126A (en) * 2022-03-02 2022-06-24 深圳市三传数知科技有限公司 Method and system for controlling process approval information authority based on different roles

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10445334B1 (en) * 2015-09-11 2019-10-15 Amazon Technologies, Inc. Query transmission in type-limited interchange formats
US10817145B1 (en) * 2018-11-06 2020-10-27 Centergy Consulting, LLC System and method for seamlessly integrating an iframe into a webpage
CN114968235A (en) * 2022-05-16 2022-08-30 中国空气动力研究与发展中心计算空气动力研究所 Page form generation method and device, computer equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于Web的工作流表单的柔性建模;殷旭等;《计算机工程与设计》;20090728;第30卷(第14期);第3429-3432页 *

Also Published As

Publication number Publication date
CN115168779A (en) 2022-10-11

Similar Documents

Publication Publication Date Title
CN106708480B (en) Management platform implementation method and device
US10515001B2 (en) System and method for automating testing of software applications
US20110123973A1 (en) Systems and methods for visual test authoring and automation
CN111061475B (en) Software code generating method, device, computer equipment and storage medium
US20210232374A1 (en) Integrated System for Designing a User Interface
JP2006323812A (en) Method and device for evaluating various phases of web page
CN114115844A (en) Page generation method and device, computer equipment and storage medium
CN109657177A (en) The generation method of the page, device, storage medium and computer equipment after upgrading
CN111522552A (en) Sub-application generation method and device, computer equipment and storage medium
CN111045707B (en) Method, apparatus, computer device and storage medium for updating applet
Seixas et al. A Model-Driven Approach for Developing Responsive Web Apps.
US20150234732A1 (en) Executable software specification generation
CN110727777A (en) Knowledge graph management method and device, computer equipment and storage medium
CN112148276A (en) Visual programming for deep learning
US11074054B1 (en) Integrated system for designing a user interface
CN115168779B (en) Form flow processing method and device, computer equipment and storage medium
CN114764296A (en) Machine learning model training method and device, electronic equipment and storage medium
Chalstrey Developing and publishing code for trusted research environments: Best practices and ways of working
CN111083007B (en) Test method, test device, computer equipment and storage medium
Ishihara et al. A proposal of software architecture for Java programming learning assistant system
CN115935938B (en) Automatic generation method and device for case report
CN117473871B (en) Formalized system modeling method based on CATIA MAGIC
CN114546986A (en) Database architecture determination method and device
Apelthun et al. A scalable order tracking system built on serverless cloud technology.
CN115964020A (en) Design report document generation method and device and processor

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant