CN114170006A - Information data acquisition method, device, equipment and medium based on state machine - Google Patents

Information data acquisition method, device, equipment and medium based on state machine Download PDF

Info

Publication number
CN114170006A
CN114170006A CN202111516869.8A CN202111516869A CN114170006A CN 114170006 A CN114170006 A CN 114170006A CN 202111516869 A CN202111516869 A CN 202111516869A CN 114170006 A CN114170006 A CN 114170006A
Authority
CN
China
Prior art keywords
state
information data
action
file
request
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
CN202111516869.8A
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.)
China Construction Bank Corp
Original Assignee
China Construction Bank Corp
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 China Construction Bank Corp filed Critical China Construction Bank Corp
Priority to CN202111516869.8A priority Critical patent/CN114170006A/en
Publication of CN114170006A publication Critical patent/CN114170006A/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/02Banking, e.g. interest calculation or account maintenance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/448Execution paradigms, e.g. implementations of programming paradigms
    • G06F9/4498Finite state machines

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Finance (AREA)
  • Accounting & Taxation (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Computational Linguistics (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Technology Law (AREA)
  • General Business, Economics & Management (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The application relates to the technical field of data analysis, and provides an information data acquisition method, device, equipment and medium based on a state machine, which are used for improving the efficiency of acquiring information data. The method comprises the following steps: configuring a state transition diagram of the finite state machine, wherein the state transition diagram comprises a transition relation among states, a trigger event and a corresponding action of each state transition, and each state represents a state in a process of acquiring information data from the information platform by the service system; executing the action corresponding to each trigger event in the plurality of trigger events, and updating the current state of the finite state machine in sequence until the current state is the analyzed state of the feedback file, wherein the analyzed state of the feedback file is used for indicating that the flow for acquiring the information data is finished; and obtaining target information data based on the analyzed feedback file. According to the method and the device, the information data are automatically acquired through the finite state machine, and the efficiency of acquiring the information data is improved.

Description

Information data acquisition method, device, equipment and medium based on state machine
Technical Field
The application relates to the technical field of data analysis, in particular to a state machine-based information data acquisition method, device, equipment and medium.
Background
Many companies' business systems need to acquire information data from some financial information platforms for subsequent business processing. The business system, such as a bank hosting system, is mainly responsible for the fund hosting business of a client, and the information platform, such as a penbo information platform, also called a penbo terminal, is a set of computer systems for a Professional person to access a "blomber Professional Service", and can provide a large amount of real-time financial market data.
At present, business personnel need to manually download relevant information data from an information platform and manually import the relevant information data into a bank escrow system, the process needs manual whole-course intervention, the business operation mode is complicated, and the efficiency of acquiring the information data is low.
Disclosure of Invention
The embodiment of the application provides an information data acquisition method, device, equipment and medium based on a state machine, which are used for improving the efficiency of acquiring information data.
In a first aspect, the present application provides a method for acquiring information data based on a state machine, the method comprising:
configuring a state transition diagram of a finite state machine, wherein the state transition diagram comprises a transition relation among states, a trigger event and a corresponding action of each state transition, and each state represents a state in a process of acquiring information data from an information platform by a service system;
executing actions corresponding to each trigger event in a plurality of trigger events, and updating the current state of the finite state machine in sequence until the current state is a feedback file analyzed state, wherein the feedback file analyzed state is used for indicating that the process of acquiring the information data is finished;
and obtaining target information data based on the analyzed feedback file.
In a possible embodiment, the triggering event and the corresponding action of each state transition include: the method comprises the steps of generating a request file event and a corresponding request file, sending the request event and a corresponding request action, receiving a feedback file event and a corresponding feedback file preprocessing action, a preprocessing success event and a corresponding feedback file analyzing action, wherein the request file generating action represents the request file for generating information data, the request action represents the sending of the request file to an information platform, the feedback file preprocessing action represents the format conversion of the received feedback file to obtain a converted feedback file, and the feedback file analyzing action represents the analysis of the converted feedback file.
In one possible embodiment, when the trigger event is a request file generation event, and the action corresponding to the trigger event is a request file generation action, the action corresponding to each trigger event in the multiple trigger events is executed, including:
determining a target template corresponding to the type of the target information data according to the corresponding relation between each pre-stored type and each template;
and generating a request file of the target information data based on the target template.
In a possible embodiment, after sequentially updating the current state of the finite state machine by performing an action corresponding to each of a plurality of trigger events, the method further includes:
and if the current state is an abnormal state, re-executing a first action corresponding to a first trigger event, wherein the abnormal state comprises a request file generation failure state, a request failure state, a feedback file preprocessing failure state and a feedback file analysis failure state, and the first action is an action causing the abnormal state.
In a second aspect, the present application provides a state machine-based information data acquisition apparatus, including:
the configuration module is used for configuring a state transition diagram of the finite-state machine, wherein the state transition diagram comprises a transition relation among states, a trigger event and a corresponding action of each state transition, and each state represents a state in a process of acquiring information data from an information platform by a service system;
the execution module is used for sequentially updating the current state of the finite-state machine by executing actions corresponding to each trigger event in a plurality of trigger events until the current state is a feedback file analyzed state, wherein the feedback file analyzed state is used for indicating that the process of acquiring the information data is finished;
and the obtaining module is used for obtaining the target information data based on the analyzed feedback file.
In a possible embodiment, the triggering event and the corresponding action of each state transition include: the method comprises the steps of generating a request file event and a corresponding request file, sending the request event and a corresponding request action, receiving a feedback file event and a corresponding feedback file preprocessing action, a preprocessing success event and a corresponding feedback file analyzing action, wherein the request file generating action represents the request file for generating information data, the request action represents the sending of the request file to an information platform, the feedback file preprocessing action represents the format conversion of the received feedback file to obtain a converted feedback file, and the feedback file analyzing action represents the analysis of the converted feedback file.
In a possible embodiment, when the trigger event is a request file generation event, and the action corresponding to the trigger event is a request file generation action, the execution module is specifically configured to:
determining a target template corresponding to the type of the target information data according to the corresponding relation between each pre-stored type and each template;
and generating a request file of the target information data based on the target template.
In a possible embodiment, the execution module is further configured to:
after the current state of the finite state machine is updated in sequence by executing the action corresponding to each trigger event in a plurality of trigger events, if the current state is an abnormal state, the first action corresponding to the first trigger event is executed again, wherein the abnormal state comprises a request file generation failure state, a request failure state, a feedback file preprocessing failure state and a feedback file analysis failure state, and the first action is the action causing the abnormal state.
In a third aspect, the present application provides an electronic device, comprising:
a memory for storing program instructions;
a processor for calling the program instructions stored in the memory and executing the method of any of the first aspect according to the obtained program instructions.
In a fourth aspect, the present application provides a computer readable storage medium having stored thereon a computer program comprising program instructions which, when executed by a computer, cause the computer to perform the method of any of the first aspects.
In a fifth aspect, the present application provides a computer program product comprising: computer program code which, when run on a computer, causes the computer to perform the method of any of the first aspects.
In the embodiment of the application, a state transition diagram of the finite-state machine is configured, the action corresponding to each trigger event in the plurality of trigger events is executed, the current state of the finite-state machine is sequentially updated until the current state is the analyzed state of the feedback file, which indicates that the process of acquiring the information data is finished, and the target information data is acquired based on the analyzed feedback file. The multi-state automatic torsion is realized through the finite-state machine, so that the process of acquiring the information data from the information platform by the service system is automatically completed, manual operation is not needed, the efficiency of acquiring the information data is improved, and the service risk caused by manual operation is avoided.
For each of the second to fifth aspects and possible technical effects of each aspect, reference is made to the above description of the possible technical effects of the first aspect or various possible solutions of the first aspect, and repeated descriptions are omitted here.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments or related technologies, the drawings needed to be used in the description of the embodiments or related technologies are briefly introduced below, it is obvious that the drawings in the following description are only the embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
FIG. 1 is a schematic diagram of interaction between a business device, a Penbo information platform, and a bank hosting system in the prior art;
fig. 2 is a schematic view of an application scenario of a state machine-based information data acquisition method according to an embodiment of the present application;
FIG. 3 is a schematic flowchart illustrating a method for acquiring information data based on a state machine according to an embodiment of the present disclosure;
FIG. 4 is a schematic diagram illustrating interaction between a business system and an information platform according to an embodiment of the present disclosure;
fig. 5 is a state transition diagram of a finite state machine according to an embodiment of the present application;
FIG. 6 is a block diagram of an information data acquisition apparatus based on a state machine according to an embodiment of the present application;
fig. 7 is a block diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the technical solutions in the embodiments of the present invention will be described clearly and completely in the following with reference to the accompanying drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, not all of the embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application. In the present application, the embodiments and features of the embodiments may be arbitrarily combined with each other without conflict. Also, while a logical order is shown in the flow diagrams, in some cases, the steps shown or described may be performed in an order different than here.
The terms "first" and "second" in the description and claims of the present application and the above-described drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the term "comprises" and any variations thereof, which are intended to cover non-exclusive protection. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
In the embodiments of the present application, "a plurality" may mean at least two, for example, two, three, or more, and the embodiments of the present application are not limited.
Before introducing the information data acquisition method based on the state machine provided by the embodiment of the present application, first, taking the business system as a bank hosting system and the information platform as a penbo information platform as an example, an existing information data acquisition process is introduced. In the existing information data acquisition process, business personnel download information data from the Pengbo information platform through business equipment and import the downloaded information data into a bank hosting system.
Fig. 1 is a schematic diagram showing interaction among a business apparatus, a penbo information platform and a bank hosting system in the prior art.
S101, the service equipment determines information data required to be acquired.
The business equipment can respond to the input operation of business personnel to determine the information data required to be acquired.
S102, the service equipment sends a downloading request to the Pengbo information platform.
And the service equipment generates a downloading request according to the information of the information data acquired as required and sends the downloading request to the Pengbo information platform.
S103, generating information data by the Pengbo information platform.
The Pengbo information platform generates corresponding information data, generally data of an Excel table, according to a downloading request sent by the service equipment.
S104, the business equipment downloads the information data from the Pengbo information platform.
After the information data is generated by the Penbo information platform, the service equipment can download the information data from the Penbo information platform.
S105, the business equipment preprocesses the downloaded information data.
Because the information data provided by the Pengbo information platform is generally in a fixed format, the bank hosting system can analyze the data in the fixed format by legal business, and therefore the business equipment can arrange the downloaded information data into a format which can be analyzed by the bank hosting system.
S106, the business equipment imports the preprocessed information data into the bank hosting system.
The business equipment responds to the import operation of business personnel and imports the preprocessed information data into the bank hosting system.
S107, the bank hosting system analyzes the preprocessed information data and executes business processing.
The bank hosting system analyzes the preprocessed information data, and initiates data checking and other subsequent business processing after the data analysis is successful.
In the prior art, business equipment is rolled between a Pengbo information platform and a bank hosting system, the Pengbo information platform provides information data, the bank hosting system stores and uses the information data, and the business equipment is used as a link and is responsible for information transmission. Because the business equipment needs manual operation, the efficiency of manually acquiring the information data is low, and the omission risk exists.
In view of this, an embodiment of the present application provides an information data obtaining method based on a state machine, which configures a state transition diagram of the finite state machine, executes an action corresponding to each trigger event in a plurality of trigger events, sequentially updates a current state of the finite state machine until the current state is an analyzed state of a feedback file, and obtains target information data based on the analyzed feedback file. The process of acquiring the information data from the information platform by the service system is automatically completed through the finite state machine, manual operation is not needed, the efficiency of acquiring the information data is improved, and the risk of omission of manual operation is avoided.
After introducing the design concept of the embodiment of the present application, some simple descriptions are provided below for application scenarios to which the technical solution of the embodiment of the present application can be applied, and it should be noted that the application scenarios described below are only used for describing the embodiment of the present application and are not limited. In a specific implementation process, the technical scheme provided by the embodiment of the application can be flexibly applied according to actual needs.
The technical scheme of the embodiment of the application can be applied to any possible scene for acquiring the information data. Referring to fig. 2, an application scenario of the method for acquiring information data based on a state machine according to the embodiment of the present application is schematically illustrated, where the application scenario includes a service system 201 and an information platform 202.
The business system 201 may be implemented by a terminal or a server, for example, a business system is installed in the terminal or the server, the business system may be a bank escrow system for being responsible for a fund escrow business of a customer, and the business system may also be another system that needs to obtain information data. The terminal may be, for example, a mobile phone, a Personal Computer (PC), a notebook computer, or the like. The server 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, middleware service, a domain name service, a security service, a CDN, and a big data and artificial intelligence platform, but is not limited thereto.
The information platform 202 is used for providing information data downloading service, and may also be implemented by a terminal or a server, and the implementation of the terminal or the server refers to the foregoing discussion, which is not described herein again. The information platform 202 may be a penbo information platform or a non-penbo information platform, the non-penbo information platform representing other information platforms in addition to the penbo information platform. The service system 201 and the information platform 202 can communicate with each other through a dedicated line to ensure the security of the information data, and if the information platform 202 is a penbo information platform, the dedicated line can be called a penbo dedicated line.
After the business system 201 acquires the information data from the information platform 202 through the private line, the information data is used for subsequent business processing. The process of how the business system 201 obtains the information data from the information platform 202 will be described below.
The application scenario of the information data obtaining method based on the state machine is introduced above, and the service system in fig. 2 is described as an example of executing the information data obtaining method based on the state machine. Fig. 3 is a schematic flow chart of a state machine-based information data acquisition method according to an embodiment of the present application. All the embodiments of the present application implement data acquisition, storage, use, processing, etc. in compliance with relevant regulations of national laws and regulations.
And S301, configuring a state transition diagram of the finite-state machine.
A Finite-State Machine (FSM), referred to as a State Machine for short, is a mathematical model representing a Finite number of states and the behavior of transitions and actions between these states. Applying the FSM model can help manage the order of the states of the object lifecycle and the events that cause the state changes. Therefore, in the embodiment of the present application, the service system may configure the state transition diagram of the finite state machine according to the process of acquiring the information data from the information platform.
The process of the business system obtaining the information data from the information platform is introduced with reference to the interaction diagram of the business system and the information platform shown in fig. 4.
S401, the service system generates a request file.
The business system can respond to the input operation of business personnel, acquire the target information data input by the business personnel and generate a request document of the target information data. The business system can also determine target information data required to be acquired according to the automatically collected security information and generate a request document of the target information data. The security information automatically collected may be information of a new security or taken-position information of a Qualified Domestic Institutional Investor (QDII), which represents a security that a customer has purchased. The request document is an information data acquisition document which can be received and identified by the information platform and comprises information such as data formulas, data codes and the like.
The format of the request document generated by the service system may be different for different information platforms. For example, when the service system needs to obtain the first information data from the first information platform, a request file with a first preset format is generated, and the first preset format is a format which can be recognized by the first information platform. When the service system needs to obtain the second information data from the second information platform, a request file with a second preset format is generated, and the second preset format is a format which can be identified by the second information platform.
S402, the service system sends the request document to the information platform.
In order to ensure data security, after the business system generates the request document, the request document can be sent to the information platform through a private line. For example, when the information platform is a penbo information platform, the request file can be sent to the penbo information platform through a penbo dedicated line after the business system pays the fee.
S403, the information platform generates a feedback file according to the request file.
And the information platform acquires the information data corresponding to the request document from a database of the information platform according to the received request document and generates a feedback document corresponding to the request document. The feedback document is an information data feedback document corresponding to the request document, and comprises data codes, information data corresponding to the data formula and the like.
S404, the information platform sends a feedback file to the service system.
After the information platform generates the feedback file, the feedback file can be sent to the service system through a special line. For example, the information platform is a penbo information platform, and the penbo information platform sends the feedback file to the service system through a penbo dedicated line.
S405, the service system analyzes the feedback file to obtain target information data.
After receiving the feedback file, the service system analyzes the feedback file so as to obtain target information data and initiate data check and other subsequent service processing.
The above describes a process of acquiring information data from an information platform by a service system provided in an embodiment of the present application, wherein a state transition diagram is involved, and the state transition diagram is described in detail below.
The state transition diagram comprises transition relations among the states, trigger events and corresponding actions of the state transitions, and the states represent the states of the business system in the process of acquiring the information data from the information platform. The trigger events and corresponding actions of each state transition include multiple groups, which are described below.
A first set, request file generation events and corresponding request file generation actions.
The triggering event is a request file generation event, the request file generation event may be an input operation event of a service person, for example, the service person inputs information data that the service person wants to obtain, and the service system may generate the request file in response to the input operation of the service person. The request file generation event may also be a preset time event, and when the local time is the preset time, the business system may automatically generate the request file according to the automatically collected security information. The action corresponding to the trigger event is a request file generation action which represents a request file for generating the information data.
Second group, send request event and corresponding request action.
The trigger event is a request sending event, the action corresponding to the trigger event is a request action, and the request action represents sending a request document to the information platform.
And the third group receives the feedback file event and the corresponding feedback file preprocessing action.
The triggering event is a received feedback file event, that is, the service system receives a feedback file sent by the information platform, the action corresponding to the triggering event is a feedback file preprocessing action, and the feedback file preprocessing action indicates that format conversion is performed on the received feedback file to obtain a converted feedback file, in other words, the received feedback file is converted into a format recognizable by the service system.
And the fourth group is used for preprocessing a success event and corresponding feedback file analysis actions.
The trigger event is a preprocessing success event and can also be called an analysis library falling completion event, the action corresponding to the trigger event is a feedback file analysis action, and the feedback file analysis action represents the analysis of the converted feedback file.
In a possible embodiment, when a request file generation event is received and a service system executes a request file generation action corresponding to the request file generation event, a target template corresponding to the type of target information data can be determined according to the corresponding relationship between each pre-stored type and each template, and a request file of the target information data is generated based on the target template.
Specifically, the business system prestores the corresponding relationship between the types of information data and a plurality of templates, the types of the information data comprise stock basic information, quotation, exchange rate and company action CA, the stock basic information refers to basic information such as codes of stocks, the quotation refers to the market value of the stocks, namely the prices of the stocks, the exchange rate refers to the rate of exchanging one country's currency with another country's currency, and the CA refers to the way of red sharing of companies, such as cash or stocks.
The correspondence between each type and each template can be divided into three types, which are described below.
First, a type of information data corresponds to a template.
For example, information data type 1 corresponds to template 1, information data type 2 corresponds to template 2, information data type 3 corresponds to template 3 …, and information data type n corresponds to template n. If the type of the target information data is information data type 1, the template 1 is used to generate the request document of the target information data. If the type of the target information data is the information data type 2, the template 2 is used to generate the request document of the target information data.
Second, the types of the plurality of information data correspond to a template.
For example, information data type 1 and information data type 2 correspond to template 1, and information data type 3, information data type 4, and information data type 5 correspond to template 2. If the type of the target information data is information data type 1 or information data type 2, the template 1 is used to generate the request document of the target information data. If the type of the target information data is information data type 3, information data type 4 or information data type 5, a request document of the target information data is generated using the template 2.
Third, one or more information data types correspond to a template.
For example, information data type 1 corresponds to template 1, information data type 2 and information data type 3 correspond to template 2. If the type of the target information data is information data type 1, the template 1 is used to generate the request document of the target information data. If the type of the target information data is the information data type 2 or 3, the template 2 is used to generate the request document of the target information data.
It should be noted that, in the embodiment of the present application, the types of the information data include four types, i.e., stock basic information, market quotation, exchange rate, and company action CA, and the types of the information data are not limited in practice. The business personnel can increase the types of the information data and the corresponding templates according to the requirements of the business personnel.
In the embodiment of the application, the corresponding request file is generated through the template, and the business system does not need to be repeatedly developed each time when a type of the information data is newly added, and only the type parameters of the information data and the corresponding template are configured, so that the development period of online use of the new type of information data is effectively shortened.
S302, executing the action corresponding to each trigger event in the plurality of trigger events, and updating the current state of the finite state machine in sequence until the current state is the analyzed state of the feedback file.
Specifically, the service system receives a certain trigger event, acquires an action corresponding to the trigger event according to the trigger event and the state transition diagram, executes the action corresponding to the trigger event, updates the current state of the finite-state machine to the next state, and so on, sequentially executes the action corresponding to each trigger event, and sequentially updates the current state of the finite-state machine until the current state is the analyzed state of the feedback file. Wherein the parsed state of the feedback file is used to indicate that the process of acquiring the information data is finished.
Fig. 5 is a state transition diagram of a finite state machine according to an embodiment of the present application. The circular boxes in the state transition diagram represent the various states, the diamond boxes represent actions, and the square boxes represent trigger events. A complete state flow process is described below.
When the request file generation event is received, the request file generation action is executed to generate the request file, and for a specific process of generating the request file, reference is made to the content of the foregoing discussion S401, which is not described herein again. The finite state machine is updated from the initial state to the request file generated state.
When the request sending event is received, the request is executed to send the request file to the information platform, and for a specific process of sending the request file, reference is made to the content of the foregoing discussion S402, which is not described herein again. The finite state machine has generated a state update from the request file to the request successful state.
And when a feedback file event is received, executing a preprocessing action, and performing format conversion on the received feedback file to obtain a converted feedback file. The finite state machine is updated from the request success state to a state to be analyzed of the feedback file, which can also be called as a feedback file preprocessing success state.
When a preprocessing success event is received, an analysis action is executed to analyze the converted feedback file, and for a specific analysis process, reference is made to the content of the foregoing discussion S405, which is not described herein again. The finite state machine is updated from the preprocessing success state to a feedback file parsed state, which may also be referred to as a feedback file parsing success state.
It should be noted that each trigger event may be automatically generated according to the current state, for example, the current state is a state in which the request file has been generated, the request sending event may be automatically generated, and when the current state is a state in which the feedback file is to be parsed, the preprocessing success event may be automatically generated. Each trigger event may also be generated according to the input operation of the service person, for example, when the service person inputs the information data that the service person wants to obtain, a request file generation event may be generated.
In a possible embodiment, if the current state is the abnormal state, the first action corresponding to the first trigger event is executed again. The abnormal state comprises a request file generation failure state, a request failure state, a feedback file preprocessing failure state and a feedback file analysis failure state, and the first action is an action causing the abnormal state.
Referring to fig. 5, if the current state is the request file generation failure state, the request file generation operation is executed again. And if the current state is the request failure state, re-executing the request action. And if the current state is the feedback file preprocessing failure state, re-executing the feedback file preprocessing action. And if the current state is the feedback file analysis failure state, re-executing the feedback file analysis action.
In the embodiment of the application, if the current state is the abnormal state, the action causing the abnormal state can be executed again, so that the situation that the business system processes the abnormal state for a long time and can not circulate is avoided.
S303, obtaining the target information data based on the analyzed feedback file.
When the current state is the analyzed state of the feedback file, the service system can acquire the analyzed feedback file, and trigger data checking and subsequent service processing by taking the analyzed feedback file as target information data.
As an example, in the embodiments of fig. 3 and 4, the service system is, for example, the service system 201 in fig. 2, and the information platform is, for example, the information platform 202 in fig. 2.
To sum up, the information data obtaining method based on the state machine provided in the embodiment of the present application configures a state transition diagram of the finite state machine, executes an action corresponding to each trigger event in the plurality of trigger events, sequentially updates the current state of the finite state machine until the current state is an analyzed state of the feedback file, and obtains the target information data based on the analyzed feedback file. The multi-state automatic torsion is realized through the finite state machine, manual intervention is not needed, information data are automatically acquired, and business risks brought by manual operation are reduced to zero. The method is beneficial to managing the state sequence of the life cycle of the information data acquired by the service system, managing events such as generating a request file, receiving a feedback file, preprocessing the feedback file, analyzing the feedback file and the like which cause state change, and simultaneously providing data support for the service department to count the information request quantity.
Based on the same inventive concept, an embodiment of the present application provides an information data obtaining apparatus based on a state machine, please refer to fig. 6, the apparatus includes:
the configuration module 601 is configured to configure a state transition diagram of the finite state machine, where the state transition diagram includes a transition relationship between states, a trigger event and a corresponding action of each state transition, and each state represents a state in a process in which the business system acquires information data from the information platform;
an executing module 602, configured to sequentially update a current state of the finite state machine by executing an action corresponding to each trigger event in the multiple trigger events until the current state is an analyzed state of the feedback file, where the analyzed state of the feedback file is used to indicate that a process of acquiring the information data is finished;
an obtaining module 603, configured to obtain target information data based on the parsed feedback file.
In one possible embodiment, the triggering event and corresponding action for each state transition includes: the method comprises the steps of generating a request file event and a corresponding request file, sending the request event and a corresponding request action, receiving a feedback file event and a corresponding feedback file preprocessing action, and sending a preprocessing success event and a corresponding feedback file analysis action, wherein the request file generating action represents the request file for generating information data, the request action represents the request file sent to an information platform, the feedback file preprocessing action represents the format conversion of the received feedback file, the converted feedback file is obtained, and the feedback file analysis action represents the analysis of the converted feedback file.
In a possible embodiment, when the trigger event is a request file generation event and the action corresponding to the trigger event is a request file generation action, the execution module 602 is specifically configured to:
determining a target template corresponding to the type of the target information data according to the corresponding relation between each pre-stored type and each template;
and generating a request document of the target information data based on the target template.
In a possible embodiment, the execution module 602 is further configured to:
after the current state of the finite state machine is updated in sequence by executing the action corresponding to each trigger event in the plurality of trigger events, if the current state is an abnormal state, the first action corresponding to the first trigger event is executed again, wherein the abnormal state comprises a request file generation failure state, a request failure state, a feedback file preprocessing failure state and a feedback file analysis failure state, and the first action is an action causing the abnormal state.
As an embodiment, the apparatus discussed in fig. 6 may be configured to execute the method described in the embodiment shown in fig. 3 to 5, and therefore, for functions and the like that can be realized by each functional module of the apparatus, reference may be made to the description of the embodiment shown in fig. 3 to 5, and details are not repeated here.
The information data acquisition device based on the state machine is configured with a state transition diagram of the finite state machine, executes actions corresponding to each trigger event in a plurality of trigger events, sequentially updates the current state of the finite state machine until the current state is a state analyzed by a feedback file, shows that the process of acquiring the information data is finished, and acquires target information data based on the analyzed feedback file. The multi-state automatic torsion is realized through the finite-state machine, so that the process of acquiring the information data from the information platform by the service system is automatically completed, manual operation is not needed, the efficiency of acquiring the information data is improved, and the service risk caused by manual operation is avoided.
Based on the same inventive concept, the embodiment of the present application provides an electronic device, which can implement the functions of the business system discussed above, and referring to fig. 7, the electronic device includes a processor 701 and a memory 702.
A memory 702 for storing program instructions;
the processor 701 is configured to call the program instructions stored in the memory 702, and execute the steps included in any one of the above-discussed state machine-based information data acquisition methods according to the obtained program instructions. Because the principle of the electronic device for solving the problems is similar to the information data acquisition method based on the state machine, the implementation of the electronic device can refer to the implementation of the method, and repeated details are not repeated.
The processor 701 may be a Central Processing Unit (CPU), or one or more combinations of a digital processing unit, an image processor, and the like. The memory 702 may be a volatile memory (volatile memory), such as a random-access memory (RAM); the memory 702 may also be a non-volatile memory (non-volatile memory) such as, but not limited to, a read-only memory (rom), a flash memory (flash memory), a Hard Disk Drive (HDD) or a solid-state drive (SSD), or any other medium which can be used to carry or store desired program code in the form of instructions or data structures and which can be accessed by a computer. Memory 702 may be a combination of the above.
For example, the processor 701 in FIG. 7 may implement any one of the methods for state machine based information data acquisition discussed above, and the processor 701 may also implement the functions of the apparatus for state machine based information data acquisition discussed above in FIG. 6.
Based on the same inventive concept, embodiments of the present application provide a computer-readable storage medium storing a computer program, the computer program comprising program instructions, which, when executed by a computer, cause the computer to perform any one of the above-discussed state machine-based information data acquisition methods. Since the principle of solving the problem of the computer-readable storage medium is similar to the information data acquisition method based on the state machine, the implementation of the computer-readable storage medium can refer to the implementation of the method, and repeated details are not repeated.
Based on the same inventive concept, the embodiment of the present application further provides a computer program product, where the computer program product includes: computer program code which, when run on a computer, causes the computer to perform any of the state machine based information data acquisition methods as discussed above. Because the problem solving principle of the computer program product is similar to that of the information data acquisition method based on the state machine, the implementation of the computer program product can refer to the implementation of the method, and repeated details are not repeated.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, 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.
The program product of the state machine-based information data acquisition method provided in the embodiments of the present invention may employ a portable compact disk read only memory (CD-ROM) and include program codes, and may be executed on a computing device. However, the program product of the present invention is not limited in this regard and, in the present document, a 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.
A readable signal medium may include a propagated data signal with readable program code 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 readable signal medium may also be any readable medium that is not a 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 readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing. Program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device over any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., over the internet using an internet service provider).
It should be noted that although several units or sub-units of the apparatus are mentioned in the above detailed description, such division is merely exemplary and not mandatory. Indeed, the features and functions of two or more of the units described above may be embodied in one unit, according to embodiments of the invention. Conversely, the features and functions of one unit described above may be further divided into embodiments by a plurality of units.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.

Claims (11)

1. A method for acquiring information data based on a state machine is characterized by comprising the following steps:
configuring a state transition diagram of a finite state machine, wherein the state transition diagram comprises a transition relation among states, a trigger event and a corresponding action of each state transition, and each state represents a state in a process of acquiring information data from an information platform by a service system;
executing actions corresponding to each trigger event in a plurality of trigger events, and updating the current state of the finite state machine in sequence until the current state is a feedback file analyzed state, wherein the feedback file analyzed state is used for indicating that the process of acquiring the information data is finished;
and obtaining target information data based on the analyzed feedback file.
2. The method of claim 1, wherein the triggering event and corresponding action for each state transition comprises: the method comprises the steps of generating a request file event and a corresponding request file, sending the request event and a corresponding request action, receiving a feedback file event and a corresponding feedback file preprocessing action, a preprocessing success event and a corresponding feedback file analyzing action, wherein the request file generating action represents the request file for generating information data, the request action represents the sending of the request file to an information platform, the feedback file preprocessing action represents the format conversion of the received feedback file to obtain a converted feedback file, and the feedback file analyzing action represents the analysis of the converted feedback file.
3. The method of claim 2, wherein when the trigger event is a request file generation event and the action corresponding to the trigger event is a request file generation action, performing the action corresponding to each of the plurality of trigger events comprises:
determining a target template corresponding to the type of the target information data according to the corresponding relation between each pre-stored type and each template;
and generating a request file of the target information data based on the target template.
4. The method of any of claims 1-3, wherein after sequentially updating the current state of the finite state machine by performing an action corresponding to each of a plurality of trigger events, the method further comprises:
and if the current state is an abnormal state, re-executing a first action corresponding to a first trigger event, wherein the abnormal state comprises a request file generation failure state, a request failure state, a feedback file preprocessing failure state and a feedback file analysis failure state, and the first action is an action causing the abnormal state.
5. An information data acquisition device based on a state machine, comprising:
the configuration module is used for configuring a state transition diagram of the finite-state machine, wherein the state transition diagram comprises a transition relation among states, a trigger event and a corresponding action of each state transition, and each state represents a state in a process of acquiring information data from an information platform by a service system;
the execution module is used for sequentially updating the current state of the finite-state machine by executing actions corresponding to each trigger event in a plurality of trigger events until the current state is a feedback file analyzed state, wherein the feedback file analyzed state is used for indicating that the process of acquiring the information data is finished;
and the obtaining module is used for obtaining the target information data based on the analyzed feedback file.
6. The apparatus of claim 5, wherein the triggering event and corresponding action for each state transition comprises: the method comprises the steps of generating a request file event and a corresponding request file, sending the request event and a corresponding request action, receiving a feedback file event and a corresponding feedback file preprocessing action, a preprocessing success event and a corresponding feedback file analyzing action, wherein the request file generating action represents the request file for generating information data, the request action represents the sending of the request file to an information platform, the feedback file preprocessing action represents the format conversion of the received feedback file to obtain a converted feedback file, and the feedback file analyzing action represents the analysis of the converted feedback file.
7. The apparatus of claim 6, wherein when the trigger event is a request file generation event and the action corresponding to the trigger event is a request file generation action, the execution module is specifically configured to:
determining a target template corresponding to the type of the target information data according to the corresponding relation between each pre-stored type and each template;
and generating a request file of the target information data based on the target template.
8. The apparatus of any of claims 5-7, wherein the execution module is further to:
after the current state of the finite state machine is updated in sequence by executing the action corresponding to each trigger event in a plurality of trigger events, if the current state is an abnormal state, the first action corresponding to the first trigger event is executed again, wherein the abnormal state comprises a request file generation failure state, a request failure state, a feedback file preprocessing failure state and a feedback file analysis failure state, and the first action is the action causing the abnormal state.
9. An electronic device, comprising:
a memory for storing program instructions;
a processor for calling program instructions stored in said memory and for executing the method of any one of claims 1 to 4 in accordance with the obtained program instructions.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program comprising program instructions that, when executed by a computer, cause the computer to perform the method according to any one of claims 1-4.
11. A computer program product, the computer program product comprising: computer program code which, when run on a computer, causes the computer to perform the method according to any of the preceding claims 1-4.
CN202111516869.8A 2021-12-07 2021-12-07 Information data acquisition method, device, equipment and medium based on state machine Pending CN114170006A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111516869.8A CN114170006A (en) 2021-12-07 2021-12-07 Information data acquisition method, device, equipment and medium based on state machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111516869.8A CN114170006A (en) 2021-12-07 2021-12-07 Information data acquisition method, device, equipment and medium based on state machine

Publications (1)

Publication Number Publication Date
CN114170006A true CN114170006A (en) 2022-03-11

Family

ID=80486082

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111516869.8A Pending CN114170006A (en) 2021-12-07 2021-12-07 Information data acquisition method, device, equipment and medium based on state machine

Country Status (1)

Country Link
CN (1) CN114170006A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114942801A (en) * 2022-04-15 2022-08-26 阿里巴巴(中国)有限公司 FSM-based application release task processing method and device and electronic equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114942801A (en) * 2022-04-15 2022-08-26 阿里巴巴(中国)有限公司 FSM-based application release task processing method and device and electronic equipment

Similar Documents

Publication Publication Date Title
US11789933B2 (en) System and method for a hybrid contract execution environment
CN108346028B (en) Business approval processing method, device and system
CN109146490B (en) Block generation method, device and system
WO2019055585A1 (en) Parallel-chain architecture for blockchain systems
US10963232B2 (en) Constructing and enhancing a deployment pattern
US20150370674A1 (en) Tenant provisioning for testing a production multi-tenant service
CN112613877B (en) Intelligent contract triggering method and device applied to block chain network and related equipment
CN109658059B (en) File verification method and device, electronic equipment and computer readable medium
CN111245642A (en) Method and device for acquiring dependency relationship between multiple systems and electronic equipment
CN110597888A (en) Method, device, medium and equipment for acquiring virtual resources based on block chains
CN109299913B (en) Employee salary scheme generation method and device
CN112232961A (en) Data processing method and device based on block chain system and electronic equipment
CN112348326A (en) Bank business processing method and system
CN111091439B (en) Order-related marketing campaign realization method, system, equipment and storage medium
CN110730097B (en) Internet technology architecture construction method and device, electronic equipment and medium
CN114170006A (en) Information data acquisition method, device, equipment and medium based on state machine
CN112102099B (en) Policy data processing method and device, electronic equipment and storage medium
CN113721950A (en) Resource loss prevention and control processing method and device
CN111831868A (en) Method and apparatus for financial product configuration
CN116643722A (en) Open type collaborative software development platform
US20230259994A1 (en) Reference-based software application blueprint creation
CN115801873A (en) Service distribution method, system, electronic device and storage medium
CN115391343A (en) Bill data processing method and device, electronic equipment and storage medium
CN114723455A (en) Service processing method and device, electronic equipment and storage medium
CN111526184B (en) Business auditing method and device

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