CN114862571A - Service simulation method, device, equipment and storage medium of ESOP system - Google Patents

Service simulation method, device, equipment and storage medium of ESOP system Download PDF

Info

Publication number
CN114862571A
CN114862571A CN202210443452.1A CN202210443452A CN114862571A CN 114862571 A CN114862571 A CN 114862571A CN 202210443452 A CN202210443452 A CN 202210443452A CN 114862571 A CN114862571 A CN 114862571A
Authority
CN
China
Prior art keywords
order
execution request
simulation
esop
service
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
CN202210443452.1A
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.)
Shenzhen Futu Network Technology Co Ltd
Original Assignee
Shenzhen Futu Network 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 Futu Network Technology Co Ltd filed Critical Shenzhen Futu Network Technology Co Ltd
Priority to CN202210443452.1A priority Critical patent/CN114862571A/en
Publication of CN114862571A publication Critical patent/CN114862571A/en
Priority to PCT/CN2022/140087 priority patent/WO2023207146A1/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/186Templates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/546Message passing systems or structures, e.g. queues

Abstract

The embodiment of the application discloses a service simulation method of an ESOP system, a service simulation device of the ESOP system, an electronic device and a computer readable storage medium. The service simulation method of the ESOP system comprises the steps of obtaining a service execution request triggered by a user through the ESOP system, wherein the service execution request comprises transaction information of virtual resources; responding to the service execution request, and generating a simulated order based on the transaction information of the virtual resource and the order template; and storing the simulation orders into a message queue provided by the message queue server, so that the message queue server reads the simulation orders in the message queue and sends the simulation orders to a server corresponding to the ESOP system to indicate the ESOP system to display the simulation orders. The embodiment provided by the application can improve the function demonstration efficiency of the ESOP system.

Description

Service simulation method, device, equipment and storage medium of ESOP system
Technical Field
The present application relates to the field of computer technologies, and in particular, to a service simulation method, apparatus, device, and storage medium for an ESOP system.
Background
ESOP (Employee Stock Ownership plan), also called Employee Stock keeping system, is an implementation form of Employee Ownership, and is a system arrangement for an enterprise owner and an Employee to share enterprise Ownership and future profit and gain. The employee has part of property rights of the enterprise by purchasing part of stocks of the enterprise and obtains corresponding management rights, and the purpose of implementing the employee share plan is to make the employee become a shareholder of the company. The system for hosting, operating and centrally managing part or all of the stock rights acquired through the employee share plan by the corporate law is an ESOP system, and the ESOP system depends on a stock trading server for performing the businesses such as rights, selling the unified links of stocks and the like, but the efficiency of the function demonstration process of the ESOP system is not high because the stock trading server is often unstable and the trading time of the stock trading server is limited.
Disclosure of Invention
In order to solve the foregoing technical problem, embodiments of the present application provide a service simulation method for an ESOP system, a service simulation apparatus for an ESOP system, an electronic device, and a computer-readable storage medium.
Other features and advantages of the present application will be apparent from the following detailed description, or may be learned by practice of the application.
According to an aspect of an embodiment of the present application, there is provided a service simulation method of an ESOP system, including: acquiring a service execution request triggered by a user through an ESOP system, wherein the service execution request comprises transaction information of virtual resources; responding to the service execution request, and generating a simulated order based on the transaction information of the virtual resource and the order template; and storing the simulation orders into a message queue provided by the message queue server, so that the message queue server reads the simulation orders in the message queue and sends the simulation orders to a server corresponding to the ESOP system to indicate the ESOP system to display the simulation orders.
In an exemplary embodiment, generating the simulated order based on the trading information for the virtual resource and the order template in response to the business execution request comprises: acquiring a target order template matched with a type corresponding to a service execution request, wherein the type corresponding to the service execution request comprises one of an order change request, an order cancel request and a trade order request; and filling the target order template based on the transaction information of the virtual resources to obtain a simulated order.
In an exemplary embodiment, the type corresponding to the business execution request is a change order request, and after generating a simulation order based on the transaction information of the virtual resource and the order template in response to the business execution request, the method further includes: updating the service flow state corresponding to the service execution request into a successful change state, wherein the successful change state represents that the ESOP system successfully triggers the order change request; and sending a first notification message containing the change success state to a server corresponding to the ESOP system.
In an exemplary embodiment, the type corresponding to the service execution request is a cancel order request, and after generating a simulation order based on the transaction information of the virtual resource and the order template in response to the service execution request, the method further includes: updating the service flow state corresponding to the service execution request into a revocation success state, wherein the revocation success state represents that the ESOP system successfully triggers the service execution request; and sending a second notification message containing the revocation success state to a server corresponding to the ESOP system.
In one exemplary embodiment, the type corresponding to the business execution request is a trade order request, the target order template includes a placeholder control named a trade indicator, the trade indicator includes at least one of a line weight amount, a trade amount, and a trade price; filling the target order template based on the transaction information of the virtual resources to obtain a simulated order, wherein the step of filling the target order template comprises the following steps: and inserting the value of the trading index acquired from the trading information of the virtual resource into the placeholder control of the target order template to obtain the simulated order.
In an exemplary embodiment, obtaining a service execution request triggered by a user through an ESOP system comprises: and intercepting a service execution request sent by a user to a virtual resource transaction server through an ESOP system, wherein the virtual resource transaction server is used for executing a corresponding service execution request based on the received service execution request in a virtual resource transaction time period.
In an exemplary embodiment, after the simulation order is stored in a message queue provided by the message queue server, so that the message queue server reads the simulation order in the message queue and sends the simulation order to a server corresponding to the ESOP system, the method further includes: receiving a display result which is fed back by a server corresponding to the ESOP system and used for displaying the simulated order; and carrying out exception testing on the ESOP system based on the display result.
According to an aspect of an embodiment of the present application, there is provided a service simulation apparatus of an ESOP system, including: the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring a service execution request triggered by a user through an ESOP system, wherein the service execution request comprises transaction information of virtual resources; the response module is used for responding to the service execution request, and generating a simulation order based on the transaction information of the virtual resource and the order template; the storage module is used for storing the simulation orders into a message queue provided by the message queue server, so that the message queue server reads the simulation orders in the message queue and sends the simulation orders to a server corresponding to the ESOP system to indicate the ESOP system to display the simulation orders.
According to an aspect of the embodiments of the present application, there is provided an electronic device, including a processor and a memory, where the memory stores computer readable instructions, and the computer readable instructions, when executed by the processor, implement the service simulation method of the ESOP system as above.
According to an aspect of embodiments of the present application, there is provided a computer-readable storage medium having stored thereon computer-readable instructions which, when executed by a processor of a computer, cause the computer to perform the service simulation method of an ESOP system as previously provided.
According to an aspect of embodiments herein, there is provided a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the service simulation method of the ESOP system provided in the various alternative embodiments described above.
According to the technical scheme provided by the embodiment of the application, a business execution request triggered by a user through an ESOP system is obtained, the business execution request is responded, and a simulated order is generated based on the transaction information of the virtual resources and an order template; the simulation orders are stored in the message queue provided by the message queue server, so that the message queue server reads the simulation orders in the message queue and sends the simulation orders to the server corresponding to the ESOP system to indicate the ESOP system to display the simulation orders.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application. It is obvious that the drawings in the following description are only some embodiments of the application, and that for a person skilled in the art, other drawings can be derived from them without inventive effort. In the drawings:
FIG. 1 is a schematic diagram illustrating an implementation environment to which the present invention relates, according to an example embodiment;
FIG. 2 is a flow chart illustrating a method of service simulation for an ESOP system in accordance with an exemplary embodiment of the present application;
FIG. 3 is a flow chart illustrating a method of service simulation for an ESOP system in accordance with an exemplary embodiment of the present application;
FIG. 4 is a block diagram of a service simulation apparatus of an ESOP system shown in an exemplary embodiment of the present application;
FIG. 5 illustrates a schematic structural diagram of a computer system suitable for use in implementing the electronic device of an embodiment of the present application.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
The block diagrams shown in the figures are functional entities only and do not necessarily correspond to physically separate entities. I.e. these functional entities may be implemented in the form of software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor means and/or microcontroller means.
The flow charts shown in the drawings are merely illustrative and do not necessarily include all of the contents and operations/steps, nor do they necessarily have to be performed in the order described. For example, some operations/steps may be decomposed, and some operations/steps may be combined or partially combined, so that the actual execution sequence may be changed according to the actual situation.
It should also be noted that: reference to "a plurality" in this application means two or more. "and/or" describe the association relationship of the associated objects, meaning that there may be three relationships, e.g., A and/or B may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
With the continuous development of company services, it is necessary to provide a set of stable and time-unlimited demonstration environment for the ESOP system to demonstrate the system at any time for the tester to externally demonstrate the system, and the ESOP system executes the rights, sells stocks, RSU (Restricted Stock Units) attribution, and unification of the related services all depend on the virtual resource trading server, that is, the ESOP system requests the virtual resource trading server to sell the services of stocks, rights, and the like, and receives the result notification returned by the virtual resource trading server.
In order to solve at least the problems in the prior art, the embodiment of the application designs a scheme that the ESOP system is not required to be demonstrated by the virtual resource transaction server, and automatically simulates the functions of creating an order, automatically making a deal, automatically withdrawing a list, requesting to change the list and withdrawing the list and the like, so that a service request triggered based on the ESOP system is not required to be executed by the real virtual resource transaction server, the failure of the process of demonstrating the ESOP system externally due to the factors of transaction time of the virtual resource transaction server, frequent instability of the virtual resource transaction server and the like is avoided, and the demonstration efficiency of a tester can be greatly improved.
In order to solve at least the above problems in the prior art, embodiments of the present application respectively provide a service simulation method of an ESOP system, a service simulation apparatus of an ESOP system, an electronic device, and a computer-readable storage medium, which will be described in detail below.
FIG. 1 is a schematic diagram illustrating an implementation environment to which the present invention relates, according to an example embodiment. As shown in fig. 1, the environment of the present invention includes at least an ESOP system 110 used by a user and a virtual transaction server 130. Data interaction between ESOP system 110 and virtual transaction server 130 is accomplished via the Internet.
Illustratively, the ESOP system 110 is installed in a mobile terminal, and the mobile terminal may be a smart phone, a tablet Computer, a PC (Personal Computer), an intelligent voice interaction device, an intelligent household appliance, a vehicle-borne terminal, or any other electronic device capable of running an application program, which is not limited herein.
The virtual transaction server 130 may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing basic cloud computing services such as a cloud service, a cloud database, cloud computing, a cloud function, cloud storage, a Network service, cloud communication, a middleware service, a domain name service, a security service, a CDN (Content Delivery Network), a big data and artificial intelligence platform, and the like, which is not limited herein.
For example, the virtual transaction server 130 is configured to obtain a service execution request triggered by a user through the ESOP system, where the service execution request includes transaction information of a virtual resource; responding to the service execution request, and generating a simulated order based on the transaction information of the virtual resource and the order template; and storing the simulation orders into a message queue provided by the message queue server, so that the message queue server reads the simulation orders in the message queue and sends the simulation orders to a server corresponding to the ESOP system to indicate the ESOP system to display the simulation orders.
Referring to fig. 2, fig. 2 is a flowchart illustrating a service simulation method of an ESOP system according to an exemplary embodiment of the present application, which is applied to a virtual transaction server, and as shown in fig. 2, the service simulation method of the ESOP system according to the present embodiment includes steps S101 to S103, and reference is made to the following detailed description:
step S101: and acquiring a service execution request triggered by a user through an ESOP system.
In this embodiment, the service execution request includes transaction information of the virtual resource.
Illustratively, the trading information of the virtual resource includes information related to a stock trading service including, but not limited to, rights of bank, selling stocks, RSU attribution, and union, etc., the RSU attribution means that the incentive subject awards a certain number of stock assets to the incentive subject according to a predetermined condition, and the incentive subject can sell and benefit from the restrictive stock assets only when the working year or the performance goal meets the conditions specified by the equity incentive plan.
Illustratively, the information related to the stock trading service is used to instruct the stock trading server to execute user information, category, manner, trading price, trading volume, etc. of the stock trading service. Illustratively, the user information related to the stock trading business includes: user's ID, stock account, etc.; the mode of executing the stock trading business comprises rights of bank, stock selling, RSU attribution and union; the category of executing the stock trading service comprises one of a trading part after placing an order, a complete trading after placing an order and a complete trading after dividing a plurality of trades after placing an order; the trading prices for executing the stock trading service include a limit order and a market order, wherein the trading prices are limit order prices for the limit order; for a market order, the transaction price is the contract price.
For example, information related to a stock trading business includes: the kind of the executed stock trading business is selling stocks, the trading quantity of the executed stock trading business is 1000 units of stocks, the execution mode of the executed stock trading business is that after the stock is placed, 2 deals are divided, the trading quantities corresponding to the two stock trading businesses are the same, and the trading price of the executed stock trading business is a market price list.
Illustratively, a service execution request sent by a user to a virtual resource transaction server through an ESOP system is intercepted, wherein the virtual resource transaction server is used for executing the corresponding service execution request based on the received service execution request in the virtual resource transaction time period. Illustratively, the virtual resource trading server is provided at a stock exchange. Generally, a stock exchange defines a stock trading time, and a service execution request can be made only in a stock trading time period, and cannot be made in a stock non-trading time period.
In this embodiment, by intercepting the service execution request that should be sent to the virtual resource transaction server, the virtual resource transaction server can be prevented from receiving the service execution request, and further, an exception in the demonstration process of the ESOP system due to the fact that the virtual resource transaction server cannot execute the service execution request in the stock non-trading period can be avoided.
Illustratively, a business execution request sent by an ESOP system to a virtual resource transaction server is intercepted by a request interceptor based on a springAop technology, wherein springAop is an important component in Spring. The AOP (Aspect organized Programming) is used to extract common features of different requests, such as security verification, log record, and the like, to form a section, so that the section is merged into service logic in a plug-in manner when the system runs, thereby reducing repeated codes in the system and effectively reducing the coupling degree of different modules in the system. It should be noted that a program flow includes a plurality of connection points, and the connection points are generally calls corresponding to different methods; the connecting point is crossed with the tangent plane to obtain an entry point, wherein the entry point is a method or a class to be processed generally; the AOP framework performs notification at the entry point to implement the method in the section, wherein the type of the notification may include pre-notification, post-notification, surround notification, exception notification, and the like. The Spring framework is a J2 EE-based lightweight application framework adopting an Inversion of Control (IoC) policy, is managed by a IoC container and defined by an XML configuration file, so that in an application scenario of Spring aop, when a system runs, a target object is found through a IoC container according to the name of the target object, a dynamic proxy object can be automatically generated by the IoC container by using a proxy mechanism, and corresponding notification is executed at a cut-in point.
It is to be understood that the type of notification of the request interceptor may be a surround notification, which refers to a notification enclosing a connection point for execution before invoking a method specified by the connection point and after executing the method specified by the connection point, and may control whether and when the connection point is executed.
Step S102: and responding to the business execution request, and generating a simulated order based on the transaction information of the virtual resource and the order template.
In this embodiment, at least one order template is generated in advance, for example, the order template is a word format order document, the order template includes a plurality of placeholder controls with fixed positions, and each placeholder control includes a placeholder name.
Illustratively, information matched with the placeholder name corresponding to each placeholder control is obtained from the transaction information of the virtual resource, and the order template is filled with the information, so that the simulated order is obtained.
In this embodiment, the simulation order includes information representing that the execution of the service execution request is successful, which is different from the case where the virtual resource transaction server executes the service execution request first in real virtual resource transaction, and then generates information representing that the execution of the service execution request is successful.
Further, in the present embodiment, in the process of generating the simulated order based on the transaction information of the virtual resource and the order template, the following steps may be included:
identifying the transaction type, the triggering moment and the transaction amount in the transaction information, and determining a priority parameter corresponding to the transaction information;
sending the corresponding transaction information to a preset message queue according to a mode that the priority parameter is changed from high to low; to ensure that the transaction information can be processed in the message queue according to the priority parameter from high to low.
And according to the sequence of the transaction information in the message queue, performing template matching based on transaction types in a template database, determining an order template corresponding to the transaction information, and generating a simulated order based on the order template and the transaction information.
Specifically, in this embodiment, based on the weight type (i) corresponding to the transaction type i, the trigger time Tim _ ocr, the current time Tim _ cur, and the transaction amount Mon, it is determined that the priority parameter corresponding to the transaction information is Par _ pri:
Par_pri=α·type(i)·(Tim_cur-Tim_ocr)·log(Mon)
where α represents a preset factor.
Specifically, in this embodiment, the process of performing template matching based on the transaction type in the template database may be performed in a character matching manner, where a template character string in the template database is x k And the character string of the transaction type in the transaction information is y k And calculating to obtain the correlation Col (x) of the two k ,y k ) Comprises the following steps:
Figure BDA0003614891310000081
wherein l represents the highest number of characters in the character string, η represents the correlation factor, and k represents the character sequence number. And after the correlation between the two is calculated, determining the corresponding template with the highest correlation as the order template.
Step S103: and storing the simulation orders into a message queue provided by the message queue server, so that the message queue server reads the simulation orders in the message queue and sends the simulation orders to a server corresponding to the ESOP system to indicate the ESOP system to display the simulation orders.
In this embodiment, in order to avoid failure of simulation demonstration for the ESOP system when the server where the ESOP system is located does not establish a communication connection with the virtual transaction server, or when the communication connection established between the server and the virtual transaction server is disconnected, the simulation order is stored in the message queue provided by the message queue server, so that the message queue server reads the simulation order in the message queue and sends the simulation order to the server corresponding to the ESOP system, so as to instruct the ESOP system to display the simulation order.
A message queue is a linked list that holds messages, which can be viewed as a record, having a particular format and a particular priority. The process having write permission to the message queue may add a new message to the message queue according to a certain rule, and the process having read permission to the message queue may read the message from the message queue. A message queue server is a device capable of providing message queue services, which acts as an intermediary in relaying messages from its source to its destination.
Exemplarily, after step S103, the method further includes steps S104 to S105, which are described in detail as follows:
step S104: and receiving a display result which is fed back by the server corresponding to the ESOP system and used for displaying the simulated order.
In this embodiment, the ESOP system may not execute successfully in the links of triggering the service execution request, receiving the simulated order sent by the message queue server, and displaying the simulated order, that is, the ESOP system is abnormal, and this embodiment performs an abnormality test on the ESOP system through the display result, so that the abnormal condition of the ESOP system can be tested in time, and when the ESOP system is tested to be abnormal, it indicates that an error occurs in the transaction service of the real virtual resource by the ESOP system.
Step S105: and carrying out exception testing on the ESOP system based on the display result.
In this embodiment, the display result representation is successful or failed, if the representation fails to display, it is determined that the ESOP system is abnormal, otherwise, if the representation succeeds, it indicates that the ESOP system is not abnormal.
Illustratively, if the display result fed back by the ESOP system is not received within a preset time period, the ESOP system is determined to be abnormal.
Illustratively, if the ESOP system is confirmed to be abnormal according to the display result, the notification information representing the occurrence of the abnormality of the ESOP system is sent to the client so as to notify troubleshooting personnel to perform troubleshooting on the ESOP system in time.
In this embodiment, after the ESOP system displays the simulation order, it indicates that the execution of the simulation demonstration process for the ESOP system is completed, and further illustrates that the ESOP system can execute the business execution request in the real transaction business of the virtual asset without error.
Illustratively, after the simulated order is sent to the ESOP system, the ESOP system learns that the execution of the business execution request is successful, and when it is detected that the business execution request further comprises a subsequent flow, the subsequent flow of the business execution request is executed based on the simulated order.
In this embodiment, the subsequent flow of the service execution request differs according to the difference of the transaction services of the virtual resource, for example, for the stock trading services, after the ESOP system receives the corresponding simulated order, the services such as confirming the result of the trading right and completing the delivery need to be executed, for example, the stock trading services of the stock unit with the request of the trading rights quantity of 1000, after receiving the corresponding service trading information and confirming the result of the trading right, the ESOP system executes the stocking operation under the employee virtual account under the hosting account, and simultaneously freezes the part of the stock, specifically, the following operations are performed:
a) add 1000 shares of stock to the stock record for the hosted account;
b) adding 600 stock frozen records of which the frozen types are stock selling, and immediately unfreezing and deducting 600 stocks after the ESOP system receives the records;
c) the type of freeze is added as a stock to account 400 stock freeze record.
Step S104: and judging whether the ESOP system is abnormal or not according to the execution result fed back by the ESOP system aiming at the subsequent flow.
In this embodiment, when the ESOP system executes the subsequent process of the stock trading service based on the simulated order, it is not necessary to rely on other external devices such as the virtual resource trading server, and therefore, it can be determined whether the ESOP system is abnormal or not according to the execution result of the subsequent process fed back by the ESOP system.
The service simulation method of the ESOP system provided in this embodiment obtains a service execution request triggered by a user through the ESOP system, responds to the service execution request, and generates a simulation order based on transaction information of virtual resources and an order template; the simulation orders are stored in the message queue provided by the message queue server, so that the message queue server reads the simulation orders in the message queue and sends the simulation orders to the server corresponding to the ESOP system to indicate the ESOP system to display the simulation orders.
Illustratively, step S102 includes steps S201-S202, described in detail as follows:
step S201: and acquiring a target order template matched with the type corresponding to the service execution request.
In this embodiment, the type corresponding to the business execution request includes one of a change order request, a cancel order request, and a trade order request.
In this embodiment, an order template matching the type of each service execution request is preset, for example, if the type corresponding to the service execution request includes a change order request, the generated order template matching the change order request includes a placeholder control with a name of a change transaction price, a change transaction quantity, or a change right quantity.
If the type corresponding to the service execution request comprises an order cancel request, the order template matched with the order change request comprises a placeholder control with the name of the order cancel.
Step S202: and filling the target order template based on the transaction information of the virtual resources to obtain a simulated order.
In this embodiment, the transaction information of the virtual resource includes information to be filled in the target order template, so that the target order template is filled based on the transaction information of the virtual resource to obtain the simulated order.
Illustratively, the type corresponding to the business execution request is a trade order request, and the target order template includes a placeholder control named a trade indicator, the trade indicator including at least one of a line weight, a trade quantity, and a trade price. Typically, the trade information for the virtual resource included in the trade order request includes a line weight amount, a trade amount, and a trade price.
Illustratively, the value of the trade index obtained from the trade information of the virtual resource is inserted into the placeholder control of the target order template, resulting in the simulated order. Illustratively, a trade order requests "sell 1000 units of stock, trade price is defined as 200 units", thus, trade volume, which has a value of 1000, and trade price, which has a value of 200. Inserting the value 1000 into the place of the placeholder control named as 'transaction quantity' in the target order template, and inserting the value 200 into the place of the placeholder control named as 'transaction price' in the target order template, so as to obtain the simulated order.
The service simulation method of the ESOP system provided by this embodiment can realize simulation demonstration of multiple different types of service execution requests, and generate a simulation order corresponding to each type based on the different types of service execution requests, so that a tester can clearly distinguish different types of simulation orders through the ESOP system, and then demonstrate different types of simulation orders.
Exemplarily, after step S202, the service simulation method of the ESOP system provided by the present embodiment further includes step S301 to step S302, which are described in detail as follows:
step S301: and updating the service flow state corresponding to the service execution request into a change success state.
In this embodiment, the type corresponding to the service execution request is an order change request, and the success change state represents that the ESOP system triggers that the order change request is successful.
In this embodiment, the service flow state corresponding to the service execution request is used to indicate an execution state of the service execution request, and an execution state used to characterize success or failure of the change is generated after the change order request is executed, so that a tester can know the execution state of the service execution request based on the service flow state corresponding to the service execution request.
Step S302: and sending a first notification message containing the change success state to a server corresponding to the ESOP system.
In this embodiment, the first notification message including the state of successful change is sent to the ESOP system to notify the ESOP system of completion of the order change request, and the simulated order is displayed based on the changed simulated order execution.
In addition, the tester can also obtain the first notification message containing the state of successful change through the ESOP system, and the first notification message is used as the result of the abnormal test of the business change aiming at the ESOP system.
In the anomaly testing method for the ESOP system provided by the embodiment, the service flow state corresponding to the service change request is set, and the first notification message containing the state of successful change is generated and sent to the ESOP system after the service change request is successfully executed, so that the ESOP system is indicated to display the updated simulation order, errors in executing the service change request by the ESOP system are avoided, and in addition, a tester can be notified that the service change anomaly test for the ESOP system passes.
Exemplarily, after step S202, the service simulation method of the ESOP system provided by the present embodiment further includes step S401 to step S402, which are described in detail as follows:
step S401: updating the service flow state corresponding to the service execution request to be a revocation success state,
in this embodiment, the type corresponding to the service execution request is an order cancellation request, and the cancellation success state represents that the ESOP system triggers that the order cancellation request is successful.
In this embodiment, the cancellation success status indicates that the ESOP system executes the cancellation order request complete. In order to avoid the situation that the ESOP system has already received the simulation order, the ESOP system still displays the simulation order based on the execution of the simulation order.
Step S402: and sending a second notification message containing the revocation success state to a server corresponding to the ESOP system.
In this embodiment, the second notification message including the revocation success status is sent to the ESOP system to notify the ESOP system that the order revocation request is completed without displaying the simulation order.
In addition, the tester may also obtain, through the ESOP system, a second notification message that includes a revocation success status, and use the second notification message as a result of the service revocation exception test for the ESOP system, and obviously, if the second notification message is received, it is determined that the service revocation exception test for the ESOP system passes.
In this embodiment, by setting a service flow state corresponding to the service execution request, and generating a second notification message including a cancellation success state after the execution of the order cancellation request is successful, and sending the second notification message to the ESOP system, it can be avoided that the ESOP system still executes a process of displaying the simulated order after the user intends to cancel the transaction service of the virtual resource, which causes resource waste; in addition, the tester can be informed that the abnormal test for the business revocation of the ESOP system passes.
Referring to fig. 3, fig. 3 is a flowchart illustrating an abnormal testing method of an ESOP system according to an exemplary embodiment of the present application, and as shown in fig. 3, the service simulation method of the ESOP system according to the present embodiment includes steps S501 to S509, and reference is made to the following in detail:
step S501: the ESOP system sends a service execution request to the virtual resource transaction server.
In this embodiment, the service execution request includes transaction information of the virtual resource.
Step S502: the virtual transaction server intercepts and stores the service execution request.
Step S503: the virtual transaction server returns the result of the service execution request to the ESOP system.
Step S504: the virtual trading server sends a request for processing stock trading service to the message queue server.
Step S505: and the message queue server returns the request result to the virtual transaction server.
Step S506: the virtual trading server generates a simulated order based on the trading information of the virtual resources.
Step S507: the virtual trading server sends the simulation order to the message queue server;
step S508: and the message queue server reads the simulation orders in the message queue and sends the simulation orders to the ESOP system.
Step S509: the ESOP system displays the simulation order.
Referring to fig. 4, fig. 4 is a block diagram of a service simulation apparatus of an ESOP system according to an exemplary embodiment of the present application, and as shown in fig. 4, the service simulation apparatus 700 of the ESOP system includes an obtaining module 701, a response module 702, and a storage module 703, where the obtaining module 701 is configured to obtain a service execution request triggered by a user through the ESOP system, where the service execution request includes transaction information of a virtual resource; the response module 702 is configured to respond to the service execution request, and generate a simulated order based on the transaction information of the virtual resource and the order template; the storage module 703 is configured to store the simulation order into a message queue provided by the message queue server, so that the message queue server reads the simulation order in the message queue and sends the simulation order to a server corresponding to the ESOP system, so as to instruct the ESOP system to display the simulation order.
In another exemplary embodiment, the response module 702 includes an obtaining unit and a filling unit, wherein the obtaining unit is configured to obtain a target order template matching a type corresponding to a business execution request, the type corresponding to the business execution request including one of a change order request, a cancel order request, and a trade order request; the filling unit is used for filling the target order template based on the transaction information of the virtual resources to obtain a simulated order.
In another exemplary embodiment, the response module 702 further includes a first updating unit and a first sending unit, where the first updating unit is configured to update the service flow state corresponding to the service execution request to a change success state, and the change success state represents that the ESOP system triggers that the change order request is successful; the first sending unit is used for sending a first notification message containing a change success state to a server corresponding to the ESOP system, and the type corresponding to the service execution request is a change order request.
In another exemplary embodiment, the response module 702 further includes a second updating unit and a second sending unit, where the second updating unit is configured to update the service flow state corresponding to the service execution request to be a revocation success state, and the revocation success state represents that the ESOP system triggers that the service execution request is successful; the second sending unit is used for sending a second notification message containing the revocation success status to a server corresponding to the ESOP system.
In another exemplary embodiment, the service simulation apparatus 700 of the ESOP system includes a receiving module and an exception testing module, where the receiving module is configured to receive a display result, which is fed back by a server corresponding to the ESOP system and displays the simulation order; and the anomaly testing module is used for carrying out anomaly testing on the ESOP system based on the display result.
It should be noted that the apparatus provided in the foregoing embodiment and the method provided in the foregoing embodiment belong to the same concept, and the specific manner in which each module and unit execute operations has been described in detail in the method embodiment, and is not described again here.
In another exemplary embodiment, the present application provides an electronic device comprising a processor and a memory, wherein the memory has stored thereon computer readable instructions which, when executed by the processor, implement the service simulation method of the ESOP system as before.
FIG. 5 illustrates a schematic structural diagram of a computer system suitable for use in implementing the electronic device of an embodiment of the present application.
It should be noted that the computer system 1000 of the electronic device shown in fig. 5 is only an example, and should not bring any limitation to the functions and the application scope of the embodiments of the present application.
As shown in fig. 5, the computer system 1000 includes a Central Processing Unit (CPU)1001 that can perform various appropriate actions and processes, such as performing the information recommendation method in the above-described embodiment, according to a program stored in a Read-Only Memory (ROM) 1002 or a program loaded from a storage portion 1008 into a Random Access Memory (RAM) 1003. In the RAM 1003, various programs and data necessary for system operation are also stored. The CPU 1001, ROM 1002, and RAM 1003 are connected to each other via a bus 1004. An Input/Output (I/O) interface 1005 is also connected to the bus 1004.
The following components are connected to the I/O interface 1005: an input section 1006 including a keyboard, a mouse, and the like; an output section 1007 including a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and a speaker; a storage portion 1008 including a hard disk and the like; and a communication section 1009 including a Network interface card such as a LAN (Local Area Network) card, a modem, or the like. The communication section 1009 performs communication processing via a network such as the internet. The driver 1010 is also connected to the I/O interface 1005 as necessary. A removable medium 1011 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 1010 as necessary, so that a computer program read out therefrom is mounted into the storage section 1008 as necessary.
In particular, according to embodiments of the application, the processes described above with reference to the flow diagrams may be implemented as computer software programs. For example, embodiments of the present application include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising a computer program for performing the method illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication part 1009 and/or installed from the removable medium 1011. When the computer program is executed by a Central Processing Unit (CPU)1001, various functions defined in the system of the present application are executed.
It should be noted that the computer readable medium shown in the embodiments of the present application may be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination 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), a 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 present application, 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 this application, however, a computer readable signal medium may include a propagated data signal with a computer program embodied therein, for example, in baseband or as part of a carrier wave. 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 thereof. 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. The computer program embodied on the computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the foregoing.
The flowchart 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 application. 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 units described in the embodiments of the present application may be implemented by software or hardware, and the described units may also be disposed in a processor. Wherein the names of the elements do not in some way constitute a limitation on the elements themselves.
Another aspect of the present application also provides a computer readable storage medium having stored thereon computer readable instructions, which when executed by a processor, implement the service simulation method of the ESOP system as in any one of the preceding embodiments.
Another aspect of the application also provides a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the service simulation method of the ESOP system provided in the above embodiments.
It should be noted that the computer readable medium shown in the embodiments of the present application may be a computer readable signal medium or a computer readable storage medium or any combination of the two. The computer readable storage medium may be, for example, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination 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), a 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 present application, 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 this application, however, a computer readable signal medium may include a propagated data signal with a computer program embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. 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. The computer program embodied on the computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the foregoing.
The flowchart 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 application. 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 units described in the embodiments of the present application may be implemented by software, or may be implemented by hardware, and the described units may also be disposed in a processor. Wherein the names of the elements do not in some way constitute a limitation on the elements themselves.
The above description is only a preferred exemplary embodiment of the present application, and is not intended to limit the embodiments of the present application, and those skilled in the art can easily make various changes and modifications according to the main concept and spirit of the present application, so that the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A service simulation method of an ESOP system is characterized by comprising the following steps:
acquiring a service execution request triggered by a user through an ESOP system, wherein the service execution request comprises transaction information of virtual resources;
responding to the service execution request, and generating a simulated order based on the transaction information of the virtual resource and an order template;
and storing the simulation order into a message queue provided by a message queue server, so that the message queue server reads the simulation order in the message queue and sends the simulation order to a server corresponding to the ESOP system, and the ESOP system is instructed to display the simulation order.
2. The method of claim 1, wherein generating a simulated order based on the transaction information for the virtual resource and an order template in response to the business execution request comprises:
acquiring a target order template matched with the type corresponding to the service execution request, wherein the type corresponding to the service execution request comprises one of an order change request, an order cancel request and a trade order request;
and filling the target order template based on the transaction information of the virtual resources to obtain the simulated order.
3. The method of claim 2, wherein the type corresponding to the business execution request is a change order request, and after generating a simulation order based on the transaction information of the virtual resource and an order template in response to the business execution request, the method further comprises:
updating the service flow state corresponding to the service execution request into a change success state, wherein the change success state represents that the ESOP system successfully triggers the order change request;
and sending a first notification message containing the change success state to a server corresponding to the ESOP system.
4. The method of claim 2, wherein the type corresponding to the business execution request is a cancel order request, and after generating a simulated order based on the transaction information of the virtual resource and an order template in response to the business execution request, the method further comprises:
updating a service flow state corresponding to the service execution request into a revocation success state, wherein the revocation success state represents that the ESOP system successfully triggers the service execution request;
and sending a second notification message containing the revocation success state to a server corresponding to the ESOP system.
5. The method of claim 2, wherein the type corresponding to the business execution request is a trade order request, wherein the target order template comprises a placeholder control named a trade indicator, and wherein the trade indicator comprises at least one of a line weight amount, a trade quantity, and a trade price;
the filling the target order template based on the transaction information of the virtual resources to obtain the simulated order comprises:
and inserting the value of the transaction index acquired from the transaction information of the virtual resource into the placeholder control of the target order template to obtain the simulated order.
6. The method of claim 1, wherein obtaining the service execution request triggered by the user through the ESOP system comprises:
and intercepting a service execution request sent by a user to a virtual resource transaction server through the ESOP system, wherein the virtual resource transaction server is used for executing a corresponding service execution request based on the received service execution request in the virtual resource transaction time period.
7. The method according to claim 1, wherein after storing the simulation order in a message queue provided by a message queue server, so that the message queue server reads the simulation order in the message queue and sends the simulation order to a server corresponding to the ESOP system, the method further comprises:
receiving a display result which is fed back by a server corresponding to the ESOP system and used for displaying the simulation order;
and carrying out exception testing on the ESOP system based on the display result.
8. A service simulation apparatus of an ESOP system, comprising:
the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring a service execution request triggered by a user through an ESOP system, wherein the service execution request comprises transaction information of virtual resources;
the response module is used for responding to the service execution request and generating a simulated order based on the transaction information of the virtual resource and the order template;
the storage module is configured to store the simulation order into a message queue provided by a message queue server, so that the message queue server reads the simulation order in the message queue and sends the simulation order to a server corresponding to the ESOP system, so as to instruct the ESOP system to display the simulation order.
9. An electronic device, comprising:
a memory storing computer readable instructions;
a processor to read computer readable instructions stored by the memory to perform the method of any of claims 1-7.
10. A computer-readable storage medium having computer-readable instructions stored thereon, which, when executed by a processor of a computer, cause the computer to perform the method of any one of claims 1-7.
CN202210443452.1A 2022-04-25 2022-04-25 Service simulation method, device, equipment and storage medium of ESOP system Pending CN114862571A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202210443452.1A CN114862571A (en) 2022-04-25 2022-04-25 Service simulation method, device, equipment and storage medium of ESOP system
PCT/CN2022/140087 WO2023207146A1 (en) 2022-04-25 2022-12-19 Service simulation method and apparatus for esop system, and device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210443452.1A CN114862571A (en) 2022-04-25 2022-04-25 Service simulation method, device, equipment and storage medium of ESOP system

Publications (1)

Publication Number Publication Date
CN114862571A true CN114862571A (en) 2022-08-05

Family

ID=82633164

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210443452.1A Pending CN114862571A (en) 2022-04-25 2022-04-25 Service simulation method, device, equipment and storage medium of ESOP system

Country Status (2)

Country Link
CN (1) CN114862571A (en)
WO (1) WO2023207146A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116245477A (en) * 2023-01-31 2023-06-09 北京一心向上科技有限公司 Escp system-based transfer exchange method, apparatus, device and medium
CN116664299A (en) * 2023-05-24 2023-08-29 东方证券股份有限公司 Service data processing method and device, electronic equipment and storage medium
WO2023207146A1 (en) * 2022-04-25 2023-11-02 深圳市富途网络科技有限公司 Service simulation method and apparatus for esop system, and device and storage medium
CN117455568A (en) * 2023-08-31 2024-01-26 广州市玄武无线科技股份有限公司 Transaction incentive resource transmitting method, device, computer equipment and storage medium

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11392873B2 (en) * 2015-06-30 2022-07-19 Level 3 Communications, Llc Systems and methods for simulating orders and workflows in an order entry and management system to test order scenarios
CN108153660A (en) * 2016-12-05 2018-06-12 深圳壹账通智能科技有限公司 The simulation process method and apparatus of sequence information
CN107730385B (en) * 2017-07-27 2020-04-21 深圳壹账通智能科技有限公司 Order information simulation processing method and device, storage medium and computer equipment
CN110264092A (en) * 2019-06-24 2019-09-20 北京向上一心科技有限公司 Simulate stock trading method, system, equipment and medium
CN112966382A (en) * 2021-03-10 2021-06-15 华泰证券股份有限公司 Securities trading simulation method and system
CN114155073A (en) * 2021-11-24 2022-03-08 富途网络科技(深圳)有限公司 Tax data processing method and device of stock right incentive system and electronic equipment
CN114862571A (en) * 2022-04-25 2022-08-05 深圳市富途网络科技有限公司 Service simulation method, device, equipment and storage medium of ESOP system

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023207146A1 (en) * 2022-04-25 2023-11-02 深圳市富途网络科技有限公司 Service simulation method and apparatus for esop system, and device and storage medium
CN116245477A (en) * 2023-01-31 2023-06-09 北京一心向上科技有限公司 Escp system-based transfer exchange method, apparatus, device and medium
CN116664299A (en) * 2023-05-24 2023-08-29 东方证券股份有限公司 Service data processing method and device, electronic equipment and storage medium
CN116664299B (en) * 2023-05-24 2024-02-20 东方证券股份有限公司 Service data processing method and device, electronic equipment and storage medium
CN117455568A (en) * 2023-08-31 2024-01-26 广州市玄武无线科技股份有限公司 Transaction incentive resource transmitting method, device, computer equipment and storage medium

Also Published As

Publication number Publication date
WO2023207146A1 (en) 2023-11-02

Similar Documents

Publication Publication Date Title
CN111417946B (en) Blockchain-based consensus processing
CN114862571A (en) Service simulation method, device, equipment and storage medium of ESOP system
Oehmen et al. System-oriented supply chain risk management
US20210006478A1 (en) Distributed computing platform service management
US10970780B2 (en) Zero-knowledge predictions market
CN110533419B (en) Block chain-based sharing method, device and server of wind control model
US20220028010A1 (en) Management of reconciliation and reporting workflow using robotic process automation
US20180211312A1 (en) Systems and Methods for Intraday Facility Monitoring
CN112613877A (en) Intelligent contract triggering method and device applied to block chain network and related equipment
JP6349469B1 (en) Company group management method and system
CA3032616C (en) Electronic managerial decision request form updating method and system
CN114693358A (en) Data processing method and device, electronic equipment and storage medium
CN111405060B (en) Service influence range determining method, device, tool and electronic equipment
CN114612055A (en) Method, system, device and readable medium for managing order business in stock right incentive
CN113626379A (en) Research and development data management method, device, equipment and medium
CN113297163A (en) System, method, device, equipment and medium for transferring inquiry letter based on block chain
CN111815272A (en) Application auditing method and device, electronic equipment and storage medium
CN111275557A (en) Method and device for controlling risk of resource management
CN111131438B (en) Method and apparatus for accessing block chains
CN113656435B (en) Transaction data query method, electronic device and storage medium
CN112862608A (en) Transaction data matching method and device
CN114049211A (en) Request instruction processing method, device, equipment and medium
CN115034892A (en) Fund verification method, apparatus, electronic device, medium, and program product
CN114529418A (en) Data processing method, device, medium and equipment based on ESOP system
CN114201214A (en) File generation method, file generation device, electronic equipment, medium and program product

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