CN116048987A - Processing method, device, electronic equipment, system and storage medium for flow business - Google Patents

Processing method, device, electronic equipment, system and storage medium for flow business Download PDF

Info

Publication number
CN116048987A
CN116048987A CN202310035954.5A CN202310035954A CN116048987A CN 116048987 A CN116048987 A CN 116048987A CN 202310035954 A CN202310035954 A CN 202310035954A CN 116048987 A CN116048987 A CN 116048987A
Authority
CN
China
Prior art keywords
node
service
flow
test terminal
test
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310035954.5A
Other languages
Chinese (zh)
Inventor
张利云
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jingdong Technology Holding Co Ltd
Original Assignee
Jingdong Technology Holding 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 Jingdong Technology Holding Co Ltd filed Critical Jingdong Technology Holding Co Ltd
Priority to CN202310035954.5A priority Critical patent/CN116048987A/en
Publication of CN116048987A publication Critical patent/CN116048987A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • 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
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Human Resources & Organizations (AREA)
  • Strategic Management (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Data Mining & Analysis (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Operations Research (AREA)
  • Tourism & Hospitality (AREA)
  • General Business, Economics & Management (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The embodiment of the invention discloses a processing method, a device, an electronic device, a system and a storage medium of a flow service, wherein the method comprises the following steps: acquiring a service processing request initiated by a test terminal, wherein the service processing request comprises flow identification information of a target service; retrieving a flow configuration file of the target service according to the flow identification information, wherein the flow configuration file comprises node labels of all nodes in the service flow of the target service; determining a current processing node from all the nodes, and acquiring form data of the current processing node according to a node label of the current processing node; transmitting form data of the current processing node to a test terminal; and acquiring a node processing result of the current processing node based on form data feedback from the test terminal. The embodiment of the invention can drive the flow test of the target business according to the business flow in the flow configuration file, bypass the verification of personnel, thereby simplifying the test flow and operation, reducing the labor cost and improving the test efficiency.

Description

Processing method, device, electronic equipment, system and storage medium for flow business
Technical Field
The embodiment of the invention relates to a test technology, in particular to a processing method, a device, electronic equipment, a system and a storage medium of a flow service in a test scene.
Background
For flow type services, such as approval services and information collection services, because the processing flow of the services comprises a plurality of nodes, each node needs to be operated by different operators, and therefore, the different operators are required to switch different account login systems to carry out actual operation. In the process of implementing the present invention, the inventor finds that, in a test scenario, if an operation flow of a flow-class service is to be tested, the following problem exists: (1) Different testers are required to switch different account login systems to carry out test operation, the operation is complex, and the test efficiency is low; (2) Different personnel exist in different business systems, and the personnel configuration is needed to be carried out in different business systems to realize the test or verification of the operation flow, so that the flow is complicated and the labor cost is high.
Disclosure of Invention
The embodiment of the invention provides a processing method, a processing device, electronic equipment, a processing system and a storage medium for flow business, which can simplify the testing flow and operation, reduce the labor cost and improve the testing efficiency.
In a first aspect, an embodiment of the present invention provides a method for processing a flow service, including:
acquiring a service processing request initiated by a test terminal, wherein the service processing request comprises flow identification information of a target service;
invoking a flow configuration file of the target service according to the flow identification information, wherein the flow configuration file comprises node labels of all nodes in a service flow of the target service;
determining a current processing node from the nodes, and acquiring form data of the current processing node according to a node label of the current processing node;
transmitting form data of the current processing node to the test terminal;
and acquiring a node processing result of the current processing node based on the form data feedback from the test terminal.
In a second aspect, an embodiment of the present invention provides a processing apparatus for a flow service, including:
the system comprises a request acquisition module, a test terminal and a service processing module, wherein the request acquisition module is used for acquiring a service processing request initiated by the test terminal, and the service processing request comprises flow identification information of a target service;
the file calling module is used for calling a flow configuration file of the target service according to the flow identification information, wherein the flow configuration file comprises node labels of all nodes in a service flow of the target service;
The node determining module is used for determining a current processing node from the nodes and acquiring form data of the current processing node according to a node label of the current processing node;
the data sending module is used for sending the form data of the current processing node to the test terminal;
and the result acquisition module is used for acquiring the node processing result of the current processing node based on the form data feedback from the test terminal.
In a third aspect, an embodiment of the present invention further provides an electronic device, including a memory, a processor, and a computer program stored in the memory and capable of running on the processor, where the processor implements a method for processing a flow service according to any one of the embodiments of the present invention when the processor executes the program.
In a fourth aspect, an embodiment of the present invention further provides a processing system for a flow service, including a test terminal and an electronic device configured to execute the processing method for a flow service according to any one of the embodiments of the present invention.
In a fifth aspect, an embodiment of the present invention further provides a computer readable storage medium, where a computer program is stored, where the program when executed by a processor implements a method for processing a flow service according to any one of the embodiments of the present invention.
In the embodiment of the invention, the flow test of the target business can be driven according to the business flow in the flow configuration file, namely, the node to be processed currently (namely, the current processing node) can be determined according to the business flow in the flow configuration file, the form data of the current processing node is sent to the test terminal according to the node label of the current processing node, and the node processing result of the current processing node based on the form data feedback is obtained from the test terminal; the service processing of each node is realized by feeding back form data of the corresponding node to the test terminal according to the node label and obtaining a node processing result, and each node is processed according to the method, so that the flow test of the target service can be realized; the whole test process bypasses the verification of personnel, so that different test personnel are not required to switch different account login systems to perform test operation, different business systems are not required to be configured for personnel, one test personnel can realize the operation test of the whole process (each node) of the target business through one test account, the test process and operation are simplified, the labor cost is reduced, and the test efficiency is improved.
Drawings
Fig. 1 is a schematic flow diagram of a method for processing a flow service according to an embodiment of the present invention;
FIG. 2 is a flow diagram of a method for creating a flow configuration file according to an embodiment of the present invention;
FIG. 3 is another flow chart of a method for processing a flow service according to an embodiment of the present invention;
FIG. 4 is an interaction schematic diagram of each device in the process of processing the flow service according to the embodiment of the present invention;
FIG. 5 is an exemplary diagram of a method for processing a flow service according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a processing device for a flow service according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The invention is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting thereof. It should be further noted that, for convenience of description, only some, but not all of the structures related to the present invention are shown in the drawings.
Fig. 1 is a flow diagram of a flow service processing method according to an embodiment of the present invention, where the method may be applied in a scenario of testing or verifying a flow of processing a flow service, and the method may be performed by a flow service processing device according to an embodiment of the present invention, where the device may be implemented in a software and/or hardware manner. In a specific embodiment, the apparatus may be integrated in an electronic device, which may be a server, for example. The following embodiments will be described taking the integration of the device in an electronic apparatus as an example. Referring to fig. 1, the method may specifically include the steps of:
Step 101, a service processing request initiated by a test terminal is obtained, wherein the service processing request comprises flow identification information of a target service.
The target service may be a created process service in the service system, where the process service refers to a service executed or processed according to a process, and the process may include at least two nodes, where each node needs a corresponding person to operate or process. By way of example, the target business may be an approval business (e.g., a business requiring multiple approvers to approve in turn), an information collection business (e.g., a business requiring multiple users to participate in providing information together), and the like. The flow identification information of the target service may include a flow serial number, a flow name, a flow id, and the like.
The test terminal may be a terminal for corresponding use by a tester, and may include, but is not limited to, a cell phone, a personal computer (Personal Computer, PC), etc. The test terminal can be provided with a service system, and a tester can log in the service system through a test account number, then perform corresponding operation in the service system, such as creating a flow service in the service system, and performing flow test on the created flow service. Specifically, when performing a process test on a target service, a tester may initiate a service processing request in a service system of a test terminal, where the electronic device obtains the service processing request, and the service processing request includes process identification information of the target service.
Step 102, retrieving a flow configuration file of the target service according to the flow identification information, wherein the flow configuration file comprises node labels of all nodes in the service flow of the target service.
The flow configuration file of the target service may be created in advance according to the operation of the tester, where the flow configuration file includes node labels of each node in the service flow of the target service, and the node labels may be extensible markup language (Extensible Markup Language, XML) labels. Each node label can comprise form identification information of the corresponding node, the form identification information can be a form name, a form serial number, a form id and the like, form data can be called according to the form identification information, and the form data can be basis, reference, requirement or guidance data provided for the operation of the tester of the corresponding node. In addition, each node label can also comprise other information, such as personnel identification information of a tester of the corresponding node, operation time limit of the corresponding node and the like; the personnel identification information can be personnel name, personnel number, personnel title, personnel id and the like, and the tester of the corresponding node can be determined according to the personnel identification information; the job time limit may be a job time limit of the corresponding node, such as a job deadline.
Taking the target service as an approval service as an example, the node labels of the nodes can comprise personnel ids and form ids of approvers of the corresponding nodes, the approvers of the corresponding nodes (namely test approvers) can be determined according to the personnel ids, approval lists of the corresponding nodes can be obtained according to the form ids, and the approval lists can comprise data (such as borrowing amount) or items (such as leave days) to be approved. Taking the target service as an information collection service as an example, the node labels of the nodes can comprise user ids and form ids of users of the corresponding nodes, users (i.e. test users) needing to provide information for the corresponding nodes can be determined according to the user ids, information collection tables of the corresponding nodes can be obtained according to the form ids, and information items (such as addresses, hobbies and the like) needing to be collected can be included in the information collection tables.
And 103, determining the current processing node from the nodes, and acquiring form data of the current processing node according to the node label of the current processing node.
For example, each node in the service flow of the target service may have a preset processing sequence, and the node that needs to be processed currently may be determined according to the sequence and the processed node; for example, the business flow of the target business includes a node 1, a node 2 and a node 3, and the processing sequence of the three nodes is that the node 1 is firstly, then the node 2 is, and finally the node 3 is; if node 1 is already processed, node 2 may be determined to be the current processing node. After determining the current processing node, form identification information can be obtained from the node label of the current processing node, and form data of the current processing node can be obtained from a preset data table according to the obtained form identification information.
And 104, transmitting the form data of the current processing node to the test terminal.
After receiving the form data of the current processing node, the test terminal can display the form data, the test personnel performs service processing according to the displayed form data, and the test terminal feeds back the node processing result of the current node to the electronic equipment.
And 105, acquiring a node processing result of the current processing node based on form data feedback from the test terminal.
Illustratively, when the target service is an approval service, the node processing result of the current processing node may be approval passing, approval failing, or the like; when the target service is an information acquisition service, the node processing result of the current processing node can be the specific content of each information item provided by the tester at the current node.
In the embodiment of the invention, when the flow test is performed on the target service, the test process can be driven according to the service flow in the flow configuration file, the processing of the last node in the flow is completed, and the next node in the flow is automatically triggered. For example, for approval service, the previous node finishes processing and the node processing result is approval passing, then the next node can be triggered to enter; for the information collection service, after the last node provides the required information, the next node can be triggered to enter. After each node does not need to verify personnel, a tester enters the service system of the target service through a test account, and then the test operation of all nodes in the service flow of the target service can be completed.
In the embodiment of the invention, the flow test of the target business can be driven according to the business flow in the flow configuration file, namely, the node to be processed currently (namely, the current processing node) can be determined according to the business flow in the flow configuration file, the form data of the current processing node is sent to the test terminal according to the node label of the current processing node, and the node processing result of the current processing node based on the form data feedback is obtained from the test terminal; the service processing of each node is realized by feeding back form data of the corresponding node to the test terminal according to the node label and obtaining a node processing result, and each node is processed according to the method, so that the flow test of the target service can be realized; the whole test process bypasses the verification of personnel, so that different test personnel are not required to switch different account login systems to perform test operation, different business systems are not required to be configured for personnel, one test personnel can realize the operation test of the whole process (each node) of the target business through one test account, the test process and operation are simplified, the labor cost is reduced, and the test efficiency is improved.
The following describes a method for creating a flow configuration file of a target service, where the creation process of the flow configuration file creates the target service, as shown in fig. 2, the flow configuration file may be created according to the following method:
step 201, a service creation request initiated by a test terminal is obtained, wherein the service creation request comprises service attribute information of a target service.
In a specific implementation, a tester can log in a service system through a test account on a test terminal, initiate a service creation request in the service system, and the electronic equipment acquires the service creation request, wherein the service creation request comprises service attribute information of a target service. The service attribute information may include a service type, a service name, etc., for example, the service attribute information may be borrowing, leave, information collection, etc.
Step 202, inquiring the business processes matched with the business attribute information to obtain a business process list, wherein the business process list comprises a plurality of candidate business processes.
Specifically, for example, the service attribute information may be used as a keyword, the service flow matched with the service attribute information may be queried from the database, and there may be a plurality of service flows matched with the service attribute information, that is, a plurality of candidate service flows, where the plurality of candidate service flows form a service flow list, and the service flow list is sent to the test terminal.
And 203, sending a service flow list to the test terminal so that the test terminal can select a service flow for the target service from a plurality of candidate service flows, thereby obtaining the service flow of the target service.
The test terminal may display a service flow list, so that the tester selects a service flow for the target service based on the displayed service flow list, thereby obtaining a service flow of the target service, where the service flow of the target service may be a flow defined by service flow modeling and labeling (Business Process Modeling Notation, BPMN).
Step 204, obtaining node configuration data configured for each node in the service flow of the target service from the test terminal, wherein the node configuration data comprises personnel identification information and form data of operators corresponding to the nodes.
The service flow of the target service may include at least two nodes, after the service flow is selected for the target service, the test terminal may obtain node configuration data configured by the tester for each node in the service flow of the target service, personnel identification information in the node configuration data may be personnel name, personnel number, personnel weighing number, personnel id, etc., and form data in the node configuration data may be basis, reference, requirement or instruction data provided for the operation of the corresponding node tester. For example, when the target service is a leave-on approval service, the form data may be a leave-on form; for another example, the form data may be a borrowing order when the target transaction is a borrowing approval transaction.
Step 205, obtaining the flow template file according to the flow identification information.
Each business process has corresponding process identification information, the process identification information can comprise a process serial number, a process name, a process id and the like, a process template file can be obtained from a database according to the process identification information, and the process template file can be regarded as a general template file which is designed in advance for each type of business or each attribute business and is used for process configuration. For example, the flow template file may include a template file corresponding to an approval service, a template file corresponding to an information collection service, and the like.
And 206, storing the form data into a preset data table to obtain form identification information of the form data in the preset data table.
The preset data table can be stored in the database, namely, the form data of each node can be written into the preset data table of the database, and after the form data of each node is written, the form identification information of the form data of each node in the preset data table is obtained. The form identification information may be a form name, a form serial number, a form id, etc.
Step 207, writing the personnel identification information into the label content of the corresponding node, and writing the form identification information into the label attribute of the corresponding node, thereby obtaining the node label of the corresponding node.
And writing the personnel identification information into the label content of the corresponding node, namely binding the personnel with the corresponding node. In the testing process, different nodes can have the same or different testers, namely, the personnel identification information written in the label content of each node label can be the same or different. The method of the embodiment of the invention is mainly applied to a scene of testing the business process, and under the test scene, whether the business process can be successfully executed according to the preset logic is mainly tested, each node does not identify and verify personnel, but after the business is online, each node still needs to identify and verify the personnel, so that in order to adapt to the online scene, personnel identification information is still written into the node label.
And step 208, writing the node labels of the nodes into the corresponding nodes of the stream Cheng Moban file to obtain the flow configuration file of the target service.
After obtaining the flow configuration file of the target service, the database may be updated to store the flow configuration file of the target service in the database.
In the embodiment of the invention, the flow configuration file can be created according to the flow template file, namely, the flow service is created according to the template file, so that the creation process of the flow service is simplified; when different personnel are required to be configured for different nodes in the business process, the process template file corresponding to the business process is directly modified, personnel configuration is not required to be performed in different business systems, and the test process is simplified.
The following describes a method for processing a flow service provided by the embodiment of the present invention further in combination with the flow configuration file created by the above embodiment, as shown in fig. 3, the method of this embodiment may include the following steps:
step 301, a service processing request initiated by a test terminal is obtained, wherein the service processing request comprises flow identification information of a target service.
The target service may be a process service created in the service system, and for example, the target service may be an approval service, an information collection service, and the like.
Step 302, retrieving a flow configuration file of the target service according to the flow identification information, wherein the flow configuration file comprises node labels of all nodes in the service flow of the target service.
Specifically, the database may be queried based on the flow identification information to obtain a flow profile for the target service from the database. Each node tag may include personnel identification information, form identification information, etc. of the corresponding node.
And 303, determining the current processing node from the nodes.
Each node in the service flow of the target service may have a preset processing sequence, and the current processing node may be determined according to the processing sequence and the processed node.
Step 304, the form identification information is obtained from the label attribute of the node label of the current processing node.
And step 305, acquiring form data of the current processing node from a preset data table according to the acquired form identification information.
The form data is the basis, reference, requirement or guidance data provided for the operation of the testers of the corresponding nodes when the flow configuration file is created.
And step 306, transmitting the form data of the current processing node to the test terminal.
Step 307, obtaining the node processing result of the current processing node based on form data feedback from the test terminal.
For example, when the target service is an approval service, the form data may be an approval form, and the node processing result of the current processing node may be a result of approval passing, approval failing, and the like, which are fed back by approving the approval form; when the target service is an information acquisition service, the form data can be an information acquisition list, and the node processing result of the current processing node can be the specific content of each information item provided by the tester according to the information acquisition list of the current node.
And 308, summarizing node processing results of all the nodes to obtain a service flow test result of the target service.
Step 309, storing the business process test result in a preset storage device, thereby obtaining storage position information of the business process test result in the preset storage device.
The preset storage device may be a local device, other computers, servers, etc., and the storage location information may be a storage path, a uniform resource locator (Uniform Resource Locator, URL), etc., as examples.
Step 310, a service query request initiated by the test terminal is obtained, wherein the service query request comprises flow identification information of the target service.
Namely, the test terminal can inquire the flow test result of the target service according to the flow identification information, and when each node of the target service has completed the test operation, the complete flow test result of the target service can be fed back to the test terminal; when the partial nodes of the target service complete the test operation, the test result of the partial or all nodes which have completed the operation can be fed back to the test terminal.
Step 311, the storage location information is sent to the test terminal based on the flow identification information, so that the test terminal obtains the business flow test result from the preset storage device according to the storage location information.
In the embodiment of the invention, the flow test of the target business can be driven according to the business flow in the flow configuration file, namely, the node to be processed currently (namely, the current processing node) can be determined according to the business flow in the flow configuration file, the form data of the current processing node is sent to the test terminal according to the node label of the current processing node, and the node processing result of the current processing node based on the form data feedback is obtained from the test terminal; the service processing of each node is realized by feeding back form data of the corresponding node to the test terminal according to the node label and obtaining a node processing result, and each node is processed according to the method, so that the flow test of the target service can be realized; the whole test process bypasses the verification of personnel, so that different test personnel are not required to switch different account login systems to perform test operation, different business systems are not required to be configured for personnel, one test personnel can realize the operation test of the whole process (each node) of the target business through one test account, the test process and operation are simplified, the labor cost is reduced, and the test efficiency is improved.
In a specific implementation, the method for processing a flow service provided by the embodiment of the present invention may be implemented by one server integrating multiple functional modules, or may be implemented by multiple servers in cooperation, and the method is implemented by two servers (a verification server and a flow engine server) in cooperation, which is illustrated as an example, and as shown in fig. 4, the whole method may be divided into two parts: the configuration business process and the test configured business process are specifically as follows:
when configuring a service flow, a tester can initiate a service creation request through a test terminal, wherein the service creation request comprises service attribute information of a target service; the flow engine server acquires a service creation request initiated on the test terminal, queries the database server according to service attribute information in the service creation request, processes and assembles the queried result data to obtain a service flow list, and returns the service flow list to the test terminal; on the test terminal, a tester can select a service flow for a target service from a service flow list, so that the service flow of the target service is obtained, and the test terminal sends personnel identification information and form data configured by each node in the service flow of the target service for the tester to the verification server; the verification server can call the flow template file from the database server through the flow engine server according to the flow identification information of the target service, and in addition, the verification server can write form data of each node into a preset data table of the database server through the flow engine server, so that form identification information of the form data of each node is obtained; the verification server generates node labels for the corresponding nodes according to the personnel identification information and the form identification information of each node, writes the node labels into a stream Cheng Moban file, so as to obtain a flow configuration file of the target service, updates the flow configuration file of the target service to the database server through the flow engine server, and feeds back configuration results to the test terminal after updating is completed.
When verifying the configured business flow, a tester can send a business processing request to a flow engine server through a test terminal, wherein the business processing request comprises flow identification information of a target business; the flow engine server retrieves a flow configuration file of the target service from the database server according to the flow identification information, determines a current processing node according to the flow in the flow file, acquires form data of the current processing node according to a node tag of the current processing node, and feeds back the form data of the current processing node to the test terminal; the test terminal displays the form data and sends the node processing result of the current processing node fed back by the tester based on the form data to the flow engine server; the flow engine server can summarize the received node processing results of all the nodes so as to obtain a business flow test result of the target business, and store the business flow test result of the target business so as to obtain storage position information; when the flow engine server receives a service inquiry request initiated by the test terminal, the storage position information can be fed back to the test terminal, so that the test terminal obtains a service flow test result of the target service based on the storage position information.
In the whole flow, the testers can be divided into two types of roles, one type of roles is used for configuring the business flow, the other type of roles is used for verifying the configured business flow, the two types of roles can log in the business system through a test account, the two types of roles can be configured for different testers, or the two types of roles can be configured for the same tester. In this type of role for verifying the configured business process, since the business process includes a plurality of nodes, the plurality of nodes may be tested by the same tester, or the plurality of nodes may be tested by different testers.
Taking a specific application scenario as an example, describing personnel roles in the whole process, taking a target service as an approval service as an example, as shown in fig. 5, wherein the two roles can comprise a test user and a test approver, the test user can configure an approval sheet and an approval person for each node through an operable interface, and a process configuration file is created for the approval service through reading a template file and updating a model file operated by a BPMN model file; the test approver can approve the approval form through the operable interface, and can inquire the approval flow, approval state, node approval result and the like through the BPMN protocol interface; in addition, the testers can also query approval flows, approval states, node approval results and the like through the BPMN protocol interface.
The technical scheme of the application is used for collecting, acquiring, storing, using, processing and the like the data, and the data are in accordance with the relevant regulations of national laws and regulations.
Fig. 6 is a block diagram of a processing apparatus for a flow service according to an embodiment of the present invention, where the apparatus is adapted to execute a processing method for a flow service according to an embodiment of the present invention. As shown in fig. 6, the apparatus may specifically include:
a request acquisition module 401, configured to acquire a service processing request initiated by a test terminal, where the service processing request includes flow identification information of a target service;
a file retrieving module 402, configured to retrieve a flow configuration file of the target service according to the flow identification information, where the flow configuration file includes node labels of nodes in a service flow of the target service;
a node determining module 403, configured to determine a current processing node from the nodes, and obtain form data of the current processing node according to a node tag of the current processing node;
a data sending module 404, configured to send form data of the current processing node to the test terminal;
and the result obtaining module 405 is configured to obtain, from the test terminal, a node processing result of the current processing node based on the form data feedback.
In one embodiment, the apparatus further includes a profile creation module configured to:
acquiring a service creation request initiated by the test terminal, wherein the service creation request comprises service attribute information of the target service;
transmitting the service flow of the target service to the test terminal based on the service attribute information;
acquiring node configuration data configured for each node in a business process of the target business from the test terminal;
and creating the flow configuration file for the target service according to the node configuration data of each node in the service flow of the target service.
In one embodiment, the configuration file creating module sends the service flow of the target service to the test terminal based on the service attribute information, including:
inquiring a business process matched with the business attribute information to obtain a business process list, wherein the business process list comprises a plurality of candidate business processes;
and sending the service flow list to the test terminal so that the test terminal selects a service flow for the target service from the plurality of candidate service flows, thereby obtaining the service flow of the target service.
In one embodiment, the configuration file creating module creates the flow configuration file for the target service according to node configuration data of each node in the service flow of the target service, including:
acquiring a flow template file according to the flow identification information;
and updating the flow template file based on node configuration data configured for each node in the business flow of the target business to obtain the flow configuration file of the target business.
In an embodiment, the node configuration data includes personnel identification information of an operator of a corresponding node and form data, and the configuration file creating module updates the flow template file based on the node configuration data configured for each node in the service flow of the target service to obtain the flow configuration file of the target service, including:
creating node labels for the corresponding nodes according to personnel identification information of operators of the nodes and form data;
and writing the node labels of the nodes into the corresponding nodes of the flow template file to obtain the flow configuration file of the target service.
In one embodiment, the configuration file creating module creates a node tag for a corresponding node according to personnel identification information and form data of an operator of each node, including:
Storing the form data into a preset data table to obtain form identification information of the form data in the preset data table;
writing the personnel identification information into the label content of the corresponding node, and writing the form identification information into the label attribute of the corresponding node, thereby obtaining the node label of the corresponding node.
In one embodiment, the node determining module 403 obtains form data of the current processing node according to a node tag of the current processing node, including:
acquiring form identification information from the label attribute of the node label of the current processing node;
and acquiring form data of the current processing node from the preset data table according to the acquired form identification information.
In an embodiment, the device further includes a test result feedback module, where the test result feedback module is configured to:
summarizing node processing results of the nodes to obtain a service flow test result of the target service;
and sending the service flow test result to the test terminal.
In an embodiment, before sending the service flow test result to the test terminal, the test result feedback module is further configured to: acquiring a service query request initiated by the test terminal, wherein the service query request comprises flow identification information of the target service; and sending the business process test result of the target business to the test terminal based on the process identification information.
In an embodiment, after generating a service flow test result for the target service based on the node processing result of each node and the service flow of the target service, the test result feedback module is further configured to: storing the business process test result into preset storage equipment, thereby obtaining storage position information of the business process test result in the preset storage equipment; and sending the storage position information to the test terminal so that the test terminal obtains the service flow test result from the preset storage device according to the storage position information.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of the functional modules is illustrated, and in practical application, the above-described functional allocation may be performed by different functional modules according to needs, i.e. the internal structure of the apparatus is divided into different functional modules to perform all or part of the functions described above. The specific working process of the functional module described above may refer to the corresponding process in the foregoing method embodiment, and will not be described herein.
The device of the embodiment of the invention can drive the flow test of the target business according to the business flow in the flow configuration file, namely, the node to be processed currently (namely, the current processing node) can be determined according to the business flow in the flow configuration file, the form data of the current processing node is sent to the test terminal according to the node label of the current processing node, and the node processing result of the current processing node based on the form data feedback is obtained from the test terminal; the service processing of each node is realized by feeding back form data of the corresponding node to the test terminal according to the node label and obtaining a node processing result, and each node is processed according to the method, so that the flow test of the target service can be realized; the whole test process bypasses the verification of personnel, so that different test personnel are not required to switch different account login systems to perform test operation, different business systems are not required to be configured for personnel, one test personnel can realize the operation test of the whole process (each node) of the target business through one test account, the test process and operation are simplified, the labor cost is reduced, and the test efficiency is improved.
The embodiment of the invention also provides an electronic device, which comprises a memory, a processor and a computer program stored in the memory and capable of running on the processor, wherein the processor realizes the processing method of the flow service provided by any embodiment when executing the program.
The embodiment of the invention also provides a processing system of the flow service, which comprises a test terminal and electronic equipment for executing the processing method of the flow service.
The embodiment of the invention also provides a computer readable medium, on which a computer program is stored, the program when executed by a processor realizes the processing method of the flow service provided by any embodiment.
Referring now to FIG. 7, there is illustrated a schematic diagram of a computer system 500 suitable for use in implementing an electronic device of an embodiment of the present invention. The electronic device shown in fig. 7 is only an example and should not be construed as limiting the functionality and scope of use of the embodiments of the invention.
As shown in fig. 7, the computer system 500 includes a Central Processing Unit (CPU) 501, which can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 502 or a program loaded from a storage section 508 into a Random Access Memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the system 500 are also stored. The CPU 501, ROM 502, and RAM 503 are connected to each other through a bus 504. An input/output (I/O) interface 505 is also connected to bus 504.
The following components are connected to the I/O interface 505: an input section 506 including a keyboard, a mouse, and the like; an output portion 507 including a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker, and the like; a storage portion 508 including a hard disk and the like; and a communication section 509 including a network interface card such as a LAN card, a modem, or the like. The communication section 509 performs communication processing via a network such as the internet. The drive 510 is also connected to the I/O interface 505 as needed. A removable medium 511 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 510 as needed so that a computer program read therefrom is mounted into the storage section 508 as needed.
In particular, according to embodiments of the present disclosure, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method shown in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication portion 509, and/or installed from the removable media 511. The above-described functions defined in the system of the present invention are performed when the computer program is executed by a Central Processing Unit (CPU) 501.
The computer readable medium shown in the present invention may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present invention, however, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules and/or units involved in the embodiments of the present invention may be implemented in software, or may be implemented in hardware. The described modules and/or units may also be provided in a processor, e.g., may be described as: a processor includes a gradient compression module, a gradient transmission module, a momentum determination module, and a model update module; alternatively, it can be described as: a processor includes a request acquisition module, a file retrieval module, a node determination module, a data transmission module, and a result acquisition module. The names of these modules do not constitute a limitation on the module itself in some cases.
As another aspect, the present invention also provides a computer-readable medium that may be contained in the apparatus described in the above embodiments; or may be present alone without being fitted into the device. The computer readable medium carries one or more programs which, when executed by a device, cause the device to include: acquiring a service processing request initiated by a test terminal, wherein the service processing request comprises flow identification information of a target service; invoking a flow configuration file of the target service according to the flow identification information, wherein the flow configuration file comprises node labels of all nodes in a service flow of the target service; determining a current processing node from the nodes, and acquiring form data of the current processing node according to a node label of the current processing node; transmitting form data of the current processing node to the test terminal; and acquiring a node processing result of the current processing node based on the form data feedback from the test terminal.
According to the technical scheme of the embodiment of the invention, the flow test of the target business can be driven according to the business flow in the flow configuration file, namely, the node to be processed currently (namely, the current processing node) can be determined according to the business flow in the flow configuration file, the form data of the current processing node is sent to the test terminal according to the node label of the current processing node, and the node processing result of the current processing node based on the form data feedback is obtained from the test terminal; the service processing of each node is realized by feeding back form data of the corresponding node to the test terminal according to the node label and obtaining a node processing result, and each node is processed according to the method, so that the flow test of the target service can be realized; the whole test process bypasses the verification of personnel, so that different test personnel are not required to switch different account login systems to perform test operation, different business systems are not required to be configured for personnel, one test personnel can realize the operation test of the whole process (each node) of the target business through one test account, the test process and operation are simplified, the labor cost is reduced, and the test efficiency is improved.
The above embodiments do not limit the scope of the present invention. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives can occur depending upon design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the scope of the present invention.

Claims (14)

1. A method for processing a flow service, comprising:
acquiring a service processing request initiated by a test terminal, wherein the service processing request comprises flow identification information of a target service;
invoking a flow configuration file of the target service according to the flow identification information, wherein the flow configuration file comprises node labels of all nodes in a service flow of the target service;
determining a current processing node from the nodes, and acquiring form data of the current processing node according to a node label of the current processing node;
transmitting form data of the current processing node to the test terminal;
and acquiring a node processing result of the current processing node based on the form data feedback from the test terminal.
2. The method of claim 1, wherein the flow profile is created as follows:
acquiring a service creation request initiated by the test terminal, wherein the service creation request comprises service attribute information of the target service;
transmitting the service flow of the target service to the test terminal based on the service attribute information;
acquiring node configuration data configured for each node in a business process of the target business from the test terminal;
and creating the flow configuration file for the target service according to the node configuration data of each node in the service flow of the target service.
3. The method according to claim 2, wherein the sending the service flow of the target service to the test terminal based on the service attribute information includes:
inquiring a business process matched with the business attribute information to obtain a business process list, wherein the business process list comprises a plurality of candidate business processes;
and sending the service flow list to the test terminal so that the test terminal selects a service flow for the target service from the plurality of candidate service flows, thereby obtaining the service flow of the target service.
4. The method according to claim 2, wherein creating the flow profile for the target service from node configuration data of each node in a service flow of the target service comprises:
acquiring a flow template file according to the flow identification information;
and updating the flow template file based on node configuration data configured for each node in the business flow of the target business to obtain the flow configuration file of the target business.
5. The method according to claim 4, wherein the node configuration data includes personnel identification information of operators of corresponding nodes and form data, the updating the flow template file based on the node configuration data configured for each node in the business flow of the target business to obtain the flow configuration file of the target business includes:
creating node labels for the corresponding nodes according to personnel identification information of operators of the nodes and form data;
and writing the node labels of the nodes into the corresponding nodes of the flow template file to obtain the flow configuration file of the target service.
6. The method of claim 5, wherein creating node labels for the corresponding nodes based on personnel identification information of the personnel of the respective nodes and form data, comprises:
Storing the form data into a preset data table to obtain form identification information of the form data in the preset data table;
writing the personnel identification information into the label content of the corresponding node, and writing the form identification information into the label attribute of the corresponding node, thereby obtaining the node label of the corresponding node.
7. The method according to claim 6, wherein the obtaining the form data of the current processing node according to the node tag of the current processing node includes:
acquiring form identification information from the label attribute of the node label of the current processing node;
and acquiring form data of the current processing node from the preset data table according to the acquired form identification information.
8. The method according to claim 1, wherein the method further comprises:
summarizing node processing results of the nodes to obtain a service flow test result of the target service;
and sending the service flow test result to the test terminal.
9. The method of claim 8, wherein the step of determining the position of the first electrode is performed,
before sending the business process test result to the test terminal, the method further comprises: acquiring a service query request initiated by the test terminal, wherein the service query request comprises flow identification information of the target service;
The sending the business process test result to the test terminal comprises the following steps: and sending the business process test result of the target business to the test terminal based on the process identification information.
10. The method of claim 8, wherein the step of determining the position of the first electrode is performed,
after generating a service flow test result for the target service based on the node processing result of each node and the service flow of the target service, the method further comprises: storing the business process test result into preset storage equipment, thereby obtaining storage position information of the business process test result in the preset storage equipment;
the sending the business process test result to the test terminal comprises the following steps: and sending the storage position information to the test terminal so that the test terminal obtains the service flow test result from the preset storage device according to the storage position information.
11. A processing apparatus for a flow service, comprising:
the system comprises a request acquisition module, a test terminal and a service processing module, wherein the request acquisition module is used for acquiring a service processing request initiated by the test terminal, and the service processing request comprises flow identification information of a target service;
the file calling module is used for calling a flow configuration file of the target service according to the flow identification information, wherein the flow configuration file comprises node labels of all nodes in a service flow of the target service;
The node determining module is used for determining a current processing node from the nodes and acquiring form data of the current processing node according to a node label of the current processing node;
the data sending module is used for sending the form data of the current processing node to the test terminal;
and the result acquisition module is used for acquiring the node processing result of the current processing node based on the form data feedback from the test terminal.
12. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method of processing a flow service according to any one of claims 1 to 10 when executing the program.
13. A processing system of a flow service, characterized by comprising a test terminal and an electronic device for executing the processing method of a flow service according to any of claims 1 to 10.
14. A computer-readable storage medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements a method for processing a flow service according to any one of claims 1 to 10.
CN202310035954.5A 2023-01-10 2023-01-10 Processing method, device, electronic equipment, system and storage medium for flow business Pending CN116048987A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310035954.5A CN116048987A (en) 2023-01-10 2023-01-10 Processing method, device, electronic equipment, system and storage medium for flow business

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310035954.5A CN116048987A (en) 2023-01-10 2023-01-10 Processing method, device, electronic equipment, system and storage medium for flow business

Publications (1)

Publication Number Publication Date
CN116048987A true CN116048987A (en) 2023-05-02

Family

ID=86131250

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310035954.5A Pending CN116048987A (en) 2023-01-10 2023-01-10 Processing method, device, electronic equipment, system and storage medium for flow business

Country Status (1)

Country Link
CN (1) CN116048987A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116909933A (en) * 2023-09-12 2023-10-20 云账户技术(天津)有限公司 Method, device, equipment and medium for issuing pipelined functional service
CN117632723A (en) * 2023-11-29 2024-03-01 广州赛意信息科技股份有限公司 Automatic simulation adjustment and measurement method, system, equipment and medium
CN117670007A (en) * 2023-12-05 2024-03-08 北京领雁科技股份有限公司 Method for generating flow model, related device and medium
CN117632723B (en) * 2023-11-29 2024-05-31 广州赛意信息科技股份有限公司 Automatic simulation adjustment and measurement method, system, equipment and medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116909933A (en) * 2023-09-12 2023-10-20 云账户技术(天津)有限公司 Method, device, equipment and medium for issuing pipelined functional service
CN117632723A (en) * 2023-11-29 2024-03-01 广州赛意信息科技股份有限公司 Automatic simulation adjustment and measurement method, system, equipment and medium
CN117632723B (en) * 2023-11-29 2024-05-31 广州赛意信息科技股份有限公司 Automatic simulation adjustment and measurement method, system, equipment and medium
CN117670007A (en) * 2023-12-05 2024-03-08 北京领雁科技股份有限公司 Method for generating flow model, related device and medium

Similar Documents

Publication Publication Date Title
CN116048987A (en) Processing method, device, electronic equipment, system and storage medium for flow business
CN111813804B (en) Data query method and device, electronic equipment and storage medium
CN110019263B (en) Information storage method and device
CN111538774B (en) Data storage and display method, system, equipment and storage medium
CN108111364B (en) Service system testing method and device
CN105205757A (en) Android-based elective system
CN109241722A (en) For obtaining method, electronic equipment and the computer-readable medium of information
CN112115113B (en) Data storage system, method, device, equipment and storage medium
CN113849473A (en) Operation recording method, operation recording device, electronic device, and storage medium
CN107704357B (en) Log generation method and device
CN111881042A (en) Automatic test script generation method and device and electronic equipment
CN116594683A (en) Code annotation information generation method, device, equipment and storage medium
CN111339743A (en) Account generating method and device
CN114398044A (en) Vehicle control and software configuration method, device, electronic equipment and storage medium
CN111444077A (en) Method and device for generating flow node test data
CN110716911B (en) Data processing method and device, electronic equipment and storage medium
CN111367500A (en) Data processing method and device
CN114237588A (en) Code warehouse selection method, device, equipment and storage medium
CN114153438A (en) API automatic generation system
CN109542986B (en) Element normalization method, device, equipment and storage medium of network data
CN104156358B (en) A kind of batch read method of table for database, device and system
CN113011858A (en) Audit project configuration and execution method and device
CN113821430A (en) Multi-service testing method and device
CN113763094A (en) Service information processing method, device, server, medium and system
CN111400623A (en) Method and apparatus for searching information

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