CN115480843A - Service processing method and device, electronic equipment and nonvolatile storage medium - Google Patents

Service processing method and device, electronic equipment and nonvolatile storage medium Download PDF

Info

Publication number
CN115480843A
CN115480843A CN202211268507.6A CN202211268507A CN115480843A CN 115480843 A CN115480843 A CN 115480843A CN 202211268507 A CN202211268507 A CN 202211268507A CN 115480843 A CN115480843 A CN 115480843A
Authority
CN
China
Prior art keywords
service processing
decision step
target
preset
strategy
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
CN202211268507.6A
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 Telecom Corp Ltd
Original Assignee
China Telecom Corp 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 China Telecom Corp Ltd filed Critical China Telecom Corp Ltd
Priority to CN202211268507.6A priority Critical patent/CN115480843A/en
Publication of CN115480843A publication Critical patent/CN115480843A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The application discloses a service processing method, a service processing device, electronic equipment and a nonvolatile storage medium. Wherein, the method comprises the following steps: responding to a configuration instruction of a target object, and obtaining a first business processing strategy, wherein the first business processing strategy comprises the following steps: a first decision step and first data source information; optimizing the first service processing strategy according to a preset strategy network to obtain a second service processing strategy; acquiring operation data of the target equipment according to second data source information in a second service processing strategy to obtain target data; and processing the service according to the target data and a second decision step in a second service processing strategy. The method and the system solve the technical problems of long service processing period and low efficiency caused by the fact that professional developers are required to be relied on when the service processing flow is developed or changed in the system at present.

Description

Service processing method and device, electronic equipment and nonvolatile storage medium
Technical Field
The present application relates to the technical field of artificial intelligence, and in particular, to a service processing method, an apparatus, an electronic device, and a non-volatile storage medium.
Background
With the rapid development and deep application of new technologies such as global internet of things and artificial intelligence, more and more traditional industrial parks are transforming to the direction of the intelligent industrial park. However, since the information of each project in the smart campus is independent from each other, the relevance of each service system is poor, and the comprehensive control and information sharing of the smart campus cannot be realized, and in addition, in the actual service development process, when the service processing flow in the system is developed or changed, professional developers must be relied on to complete the development, so that the realization period of the service processing is long, the efficiency is low, and the developed or changed service processing flow cannot guarantee whether to follow the standard specification.
In view of the above problems, no effective solution has been proposed.
Disclosure of Invention
The embodiment of the application provides a business processing method, a business processing device, electronic equipment and a nonvolatile storage medium, so as to at least solve the technical problems of long business processing period and low efficiency caused by the fact that professional developers are required to develop business processing flows in a system or change the existing business processing flows at present.
According to an aspect of an embodiment of the present application, a service processing method is provided, including: responding to a configuration instruction of a target object, and obtaining a first business processing strategy, wherein the first business processing strategy comprises the following steps: the method comprises a first decision step and first data source information, wherein the first decision step is a minimum step unit which can be executed in the service processing process; optimizing the first service processing strategy according to a preset strategy network to obtain a second service processing strategy, wherein the preset strategy network is used for representing the incidence relation between each preset decision step in the system and preset data source information, and the number of the second decision steps contained in the second service processing strategy is less than the number of the first decision steps contained in the first service processing strategy; acquiring operation data of the target equipment according to second data source information in a second service processing strategy to obtain target data; and processing the service according to the target data and a second decision step in a second service processing strategy.
Optionally, the first service processing policy includes at least one first decision step, the second service processing policy includes at least one second decision step, and the optimizing the first service processing policy according to the preset policy network to obtain the second service processing policy includes: searching whether a target preset decision step matched with the first decision step exists in a preset strategy network or not; under the condition that a target preset decision step exists, acquiring a target association relation corresponding to the target preset decision step, wherein the target association relation is used for representing the connection relation between the target preset decision step and the rest preset decision steps in a preset strategy network; and selecting the first decision step of the preset decision steps in the preset strategy network for replacement according to the target association relation to obtain a second decision step.
Optionally, after the step of retrieving whether there is a target preset decision matching the first decision step in the preset policy network, the method further includes: under the condition that a target preset decision step does not exist, acquiring a preset standard file corresponding to a first business processing strategy, wherein the preset standard file is used for indicating standard requirements required to be met by the business processing strategy; identifying a preset standard file to obtain a first standard requirement which needs to be met by a first service processing strategy; verifying the first service processing strategy, and judging whether the first service processing strategy meets the first standard requirement; and under the condition that the first business processing strategy meets the first specification requirement, determining the first business processing strategy as a second business processing strategy.
Optionally, when the first traffic processing policy meets the first specification requirement, determining the first traffic processing policy as the second traffic processing policy further includes: and updating a first decision step and first data source information in a first service processing strategy meeting the first specification requirement to a preset strategy network.
Optionally, the obtaining the first service processing policy in response to the configuration instruction of the target object includes: acquiring a first decision step and first data source information of a target object configured in a front-end interactive interface through a target configuration mode, wherein the target configuration mode comprises at least one of the following steps: the method comprises the steps of configuring preset decision steps and preset data source information stored in a visual interface selection system, and creating a first decision step and first data source information through a scripting language.
Optionally, acquiring the operation data of the target device according to second data source information in the second service processing policy, and obtaining the target data includes: determining a target database indicated in the second data source information; and sending a data request instruction to the target database through the target interface to obtain target data fed back by the target database after receiving the data request instruction.
Optionally, performing service processing according to the target data and a second decision step in the second service processing policy includes: configuring the target data to a second decision step corresponding to the target data; under the condition that the second decision step supports the format of the target data, the second decision step is executed in sequence according to an execution mode corresponding to the second decision step, and an execution log generated in the execution process of the second decision step is stored, wherein the execution mode comprises one of the following modes: the execution log comprises at least one of the following modes: and executing the step identification number, the execution time and the execution result.
According to another aspect of the embodiments of the present application, there is also provided a service processing apparatus, including: a processing policy obtaining module, configured to respond to a configuration instruction of a target object, and obtain a first service processing policy, where the first service processing policy includes: the method comprises a first decision step and first data source information, wherein the first decision step is a minimum step unit which can be executed in the service processing process; the processing strategy optimization module is used for optimizing the first service processing strategy according to a preset strategy network to obtain a second service processing strategy, wherein the preset strategy network is used for representing the incidence relation between each preset decision step in the system and preset data source information, and the number of the second decision steps contained in the second service processing strategy is less than the number of the first decision steps contained in the first service processing strategy; the target data acquisition module is used for acquiring the operating data of the target equipment according to second data source information in a second service processing strategy to obtain target data; and the processing strategy executing module is used for processing the service according to the target data and the second decision step in the second service processing strategy.
According to another aspect of the embodiments of the present application, there is also provided an electronic device, which includes a processor, where the processor is configured to execute a program, and the program executes a business processing method when running.
According to another aspect of the embodiments of the present application, there is also provided a non-volatile storage medium, where the non-volatile storage medium includes a stored computer program, and a device in which the non-volatile storage medium is located executes a service processing method by running the computer program.
In this embodiment of the present application, a configuration instruction responding to a target object is adopted to obtain a first service processing policy, where the first service processing policy includes: the method comprises a first decision step and first data source information, wherein the first decision step is a minimum step unit which can be executed in the service processing process; optimizing the first service processing strategy according to a preset strategy network to obtain a second service processing strategy, wherein the preset strategy network is used for representing the incidence relation between each preset decision step in the system and preset data source information, and the number of the second decision steps contained in the second service processing strategy is less than the number of the first decision steps contained in the first service processing strategy; acquiring operation data of the target equipment according to second data source information in a second service processing strategy to obtain target data; according to the target data and the second decision step in the second business processing strategy, the business processing strategy can be automatically created by a user through a visual interface, the system comprehensively analyzes and processes the business processing strategy according to a strategy network, and the strategy is optimized, so that the effects of application scene linkage, application rapid development and rapid realization of demand are realized, and the technical problems of long business processing period and low efficiency caused by the fact that professional developers are required to be relied on when the business processing flow is developed or the existing business processing flow is changed in the system at present are solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
fig. 1 is a schematic diagram of a method flow of service processing according to an embodiment of the present application;
FIG. 2 is a flow chart illustrating a standard identification process provided according to an embodiment of the present application;
FIG. 3 is a schematic diagram of a flow of a criteria matching process provided in accordance with an embodiment of the present application;
FIG. 4 is a schematic diagram of a decision step provided in accordance with an embodiment of the present application;
FIG. 5 is a schematic diagram of a decision step list provided in accordance with an embodiment of the present application;
FIG. 6 is a block diagram of a business processing system according to an embodiment of the present disclosure;
fig. 7 is a schematic structural diagram of a service processing apparatus according to an embodiment of the present application;
fig. 8 is a block diagram of a hardware structure of a computer terminal (or an electronic device) for implementing a method for service processing according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions of the present application better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only some embodiments of the present application, and not all embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application without making any creative effort shall fall within the protection scope of the present application.
In order to facilitate the understanding of the embodiments of the present application by those skilled in the art, some technical terms or terms related to the embodiments of the present application will be explained as follows:
hypertext Transfer Protocol (HTTP): is a simple request-response protocol that typically runs on top of TCP. It specifies what messages the client might send to the server and what responses get.
CoAP Protocol (The Constrained Application Protocol): the method is a computer protocol, is applied to the Internet of things and is based on the REST architecture.
Message Queue Telemetry Transport (MQTT): is a message protocol based on a publish/subscribe paradigm under the ISO standard (ISO/IEC PRF 20922).
Internet of things DDS protocol (Data Distribution Service for Real-Time Systems, DDS): the method is a data distribution service oriented to a real-time system.
Internet of things AMQP Protocol (Advanced Message Queuing Protocol, AMQP): the OASIS organization proposes an advanced message queuing protocol.
Extensible Messaging and Presence Protocol (XMPP): is a protocol based on a subset XML of a standard generic markup language that inherits flexible developability in an XML environment.
Java Message Service (JMS) application program interface: is an interface (API) for Message Oriented Middleware (MOM) in a Java platform, which is used for sending messages between two application programs or in a distributed system to carry out asynchronous communication.
JS Object Notation (JavaScript Object Notation, JSON): is a lightweight data exchange format.
Extensible Markup Language (XML): a subset of the standard, generic markup languages, which can be used to tag data, define data types, is a source language that allows a user to define his or her own markup language.
AES encryption standard: is the 21 st encrypted standard that the national institute of standards and technology NIST aims to replace DES.
RSA: is an encryption standard proposed in 1977.
Quotient secret No. 1 algorithm (SM 1cryptographic algorithm, SM 1): is a commercial cipher block standard symmetrical algorithm compiled by the national cipher administration.
SM2: is an elliptic curve public key cryptographic algorithm issued by the State crypto administration. The algorithm is based on ECC, so the signature speed and the key generation speed are faster than those of RSA. The security strength of the ECC256 bits (the SM2 adopts one of the ECC256 bits) is higher than that of the RSA 2048 bits, but the operation speed is faster than that of the RSA.
Error correction code: (Error Correcting Code, ECC): a technique for realizing error check and correction is generally applied to servers and graphic workstations, and can improve the stability and reliability of computer operation.
Community Enterprise Operating System (Community Enterprise Operating System, centOS): is a free, open source, redistributed, open source operating system.
Darmon database management system: the database management system is a high-performance database management system with completely independent intellectual property rights.
Big gold storehouse database management system: the system is a universal relational database management system which is independently developed and has independent intellectual property rights.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
With the acceleration of the intellectualization of cities, the industrial park also accelerates the transformation footfalls. For project management of intelligent industrial parks and intelligent buildings, centralized monitoring, unified event processing, unified operation and maintenance and cross-system linkage are required. It has the following characteristics: the project has higher requirements on automation and intellectualization; the system is more, the suppliers are more, and the integration difficulty is high; the real-time requirement on data is high; the data volume is large and the complexity is high. However, in the actual business process, the following problems often exist: the information of each project in the intelligent park is independent, the relevance of each business system is poor, and the comprehensive control and information sharing of the intelligent park cannot be realized; the manual dependence is high, a plurality of systems need to be attended by personnel, the working intensity is high, the warning situation response is not timely, and the event processing is not intelligent enough; the data utilization rate is low, the standards such as data storage are not unified, and the standards are not unified; high system construction investment cannot provide data support for comprehensive management; the system has low iteration efficiency, and can be developed or changed by professional developers, so that the realization period is long and the efficiency is low; the traditional method is that expert intervention is needed to verify whether the design of the business processing flow meets the standard specification, and under the condition, if the business scene needs to carry out frequent iteration on the flow, the working difficulty is greatly increased.
To solve the above problem, according to the embodiments of the present application, a method embodiment of business process is provided, and it should be noted that the steps shown in the flowchart of the attached drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from the order shown.
Fig. 1 is a schematic diagram of a method flow of service processing provided according to an embodiment of the present application, and as shown in fig. 1, the method includes the following steps:
step S102, responding to a configuration instruction of a target object, and obtaining a first business processing strategy, wherein the first business processing strategy comprises: the method comprises a first decision step and first data source information, wherein the decision step is a minimum step unit which can be executed in the service processing process;
in order to enable the target object to create or change the business process by itself without the intervention of professional developers, the step of obtaining a first business process strategy in response to the configuration instruction of the target object comprises the following steps: acquiring a first decision step and first data source information of a target object configured in a front-end interactive interface through a target configuration mode, wherein the target configuration mode comprises at least one of the following steps: the method comprises the steps of configuring preset decision steps and preset data source information stored in a visual interface selection system, and creating a first decision step and first data source information through a scripting language.
The decision steps involved in the embodiment of the application are the minimum step units which can be executed in the service processing process;
specifically, a user (and the target object) creates a first service processing policy on a visual interface in the system according to an actual service requirement, and as an optional implementation manner, the user may perform a drag-and-drop operation through the visual interface to select a decision step and data source information (i.e., the preset decision step and the preset data source information) pre-stored in the system to form the first service processing policy to implement the service requirement, where fig. 4 is a schematic diagram of a decision step provided according to an embodiment of the present application; fig. 5 is a schematic diagram of a decision step list provided according to an embodiment of the present application, as shown in fig. 4 and fig. 5.
As an optional implementation manner, the user may also create or modify the decision step and the data source information by himself or herself through the programming language according to the actual requirement, and add the decision step and the data source information to the first business processing policy.
Step S104, optimizing the first service processing strategy according to a preset strategy network to obtain a second service processing strategy, wherein the preset strategy network is used for representing the incidence relation between each preset decision step in the system and preset data source information, and the number of the second decision steps contained in the second service processing strategy is less than the number of the first decision steps contained in the first service processing strategy;
in some embodiments of the present application, the first service processing policy includes at least one first decision step, the second service processing policy includes at least one second decision step, and optimizing the first service processing policy according to a preset policy network to obtain the second service processing policy includes the following steps: searching whether a target preset decision step matched with the first decision step exists in a preset strategy network; under the condition that a target preset decision step exists, acquiring a target association relation corresponding to the target preset decision step, wherein the target association relation is used for representing the connection relation between the target preset decision step and the rest preset decision steps in a preset strategy network; and selecting the first decision step of the preset decision steps in the preset strategy network for replacement according to the target association relation to obtain a second decision step.
In this embodiment, a preset policy network is used to perform comprehensive analysis and processing on the decision step and the data source information, specifically, a policy network with a graph structure is constructed according to the decision step and the data source information stored in the system and the association relationship between them, in the policy network, each graph node represents an action, which may be an action of executing the decision step or an action of acquiring corresponding data according to the data source information, and edges between graph nodes represent the relationship between respective works, for example, for a graph node a and a graph node B having an edge connection, a decision step of executing a graph node B after acquiring corresponding data according to the data source information of the graph node a may be represented.
In the present embodiment, the actions include, but are not limited to: request interfaces, execute database query statements, execute executables, and execute scripting languages.
As an optional implementation manner, according to the policy network, the first service processing policy may be optimized by determining probability distribution of action nodes (i.e., actions for executing the decision step or actions for acquiring corresponding data according to data source information) in the policy network to obtain a policy model, calculating utility of the policy model according to an action execution result, and analyzing the first service processing policy according to the utility, thereby optimizing the first service processing policy.
In this embodiment, the optimization process is implemented by a decision engine, specifically, the decision engine is composed of input parameters, reference values, conditional expressions, and result values, and based on a decision-making system structure, a decision-making matching logic is stored in a decision-making library, and when a decision-making matching operation is triggered, the input parameters and the reference values are brought in, and then a reasoning machine completes the decision-making matching work, and a generative discrete decision is adopted. Meanwhile, by combining with a discrete matrix inversion algorithm, related decisions are quickly positioned by searching an index array, so that quick matching of the decisions is realized.
For example, the first service processing policy created by the user includes a flow from the decision step a to the decision step B, then to the decision step C, and finally to the decision step D, that is, the service processing method specified by the user is to execute the step B by using the result obtained in the step a after executing the step a, then execute the step C by using the result of the step B, and finally execute the step D by using the result of the step C; if a path from the decision step A to the decision step D through the decision step E is detected through the decision network, the decision step B to the decision step C of the first service processing strategy can be replaced by the decision step E, so that the first service processing strategy is optimized, and a second service processing strategy with higher service processing efficiency is obtained.
In order to ensure the normativity of the business processing flow, the step of searching whether a target preset decision step matched with the first decision step exists in the preset strategy network further comprises the following steps: under the condition that a target preset decision step does not exist, acquiring a preset standard file corresponding to a first business processing strategy, wherein the preset standard file is used for indicating standard requirements required to be met by the business processing strategy; identifying a preset standard file to obtain a first standard requirement which needs to be met by a first service processing strategy; verifying the first service processing strategy, and judging whether the first service processing strategy meets the first standard requirement; and under the condition that the first business processing strategy meets the first specification requirement, determining the first business processing strategy as a second business processing strategy.
Fig. 2 is a schematic flowchart of a standard identification process provided according to an embodiment of the present application, and as shown in fig. 2, the standard identification process includes the following steps:
step S202, a user uploads a standard document to a system platform;
step S204, identifying the standard file;
in this embodiment, the determining whether the service function (i.e. the service processing policy) meets the standard requirement is completed by using a standard identification module, specifically, the identifying the standard file (i.e. the preset standard file) line by line through a Natural Language Processing (NLP) technique, and identifying each requirement as standard model data includes: as an alternative implementation, the requirement enforcement degree may be marked according to a keyword field in the text, such as "should provide, should support", and the like, and the standard categories include: information technology, software engineering, information security and the like, and the required types are as follows: functional requirements, non-functional requirements. The function requirements can be matched through a function module, a service form and a service list; the non-functional requirements comprise reliability, safety, expandability and the like, and the system provides a safety detection module and a performance detection module for judging whether the business function (namely the business processing strategy) meets the non-functional requirements.
Step S206, a standard model is established;
furthermore, semantization of the keyword phrases is carried out to form a standard model, each standard requirement is extracted, and the requirements are stored as decision step requirements which can be identified by the system. The system determines whether the service function (i.e. the service processing policy) meets the standard requirement, and the determination result may be: "X strips should be provided, actually X strips; preferably, X strips are provided, and X strips are actually provided; preferably, X strips are supported, actually X strips are supported ".
For example, as shown below, the content of a standard file for determining whether a business processing policy created by a user for data preprocessing meets a standard is:
"a) should provide data extraction function, support to extract structured data, unstructured data and semi-structured data;
b) A data cleaning function is provided to support the processing of inconsistent data, invalid data, missing data and repeated data;
c) Column conversion, row conversion and table conversion functions of the structured data should be provided;
d) A data loading function is provided to support loading of the cleaned and converted data to the data analysis module;
e) Preferably, the data comparison function before and after cleaning is provided;
f) It is advantageous to support data transformation functions for unstructured data. "
After the business processing strategy which is created by the user and used for data preprocessing is judged according to the standard file, the judgment result is as follows: "4 should be provided, actually 4; preferably, 1 strip is provided, and actually 1 strip is provided; preferably support 1 strip, actually support 0 strip "
And step S208, standard warehousing.
As an alternative implementation, fig. 3 is a schematic diagram of a flow of a standard matching process provided in an embodiment of the present application, and as shown in fig. 3, whether an application meets relevant standards and specifications may be determined by a standard automatic verification function, in this embodiment, a standard matching manner includes at least one of the following: uploading a document (such as a construction scheme document) with standard requirements in an application program (the application program is automatically created according to the business processing strategy, namely whether the business processing strategy meets the standard is judged), identifying the description document by the system, automatically matching according to the standard description in the document and a system standard model, and forming a report according to the matching result; the system can identify the module function (such as form, list and the like) content of the application program, match the module function with the standard model and form a report according to the matching result; the system can automatically identify the data interface API, match the data interface API with the standard model and form a report according to the matching result.
In order to realize the continuous iteration updating of the preset strategy network, under the condition that the first service processing strategy meets the first specification requirement, the method also comprises the following steps after determining the first service processing strategy as the second service processing strategy: and updating a first decision step and first data source information in a first service processing strategy meeting the first specification requirement to a preset strategy network.
Step S106, collecting the operation data of the target equipment according to the second data source information in the second service processing strategy to obtain target data;
in some embodiments of the present application, acquiring the operation data of the target device according to the second data source information in the second service processing policy to obtain the target data includes the following steps: determining a target database indicated in the second data source information; and sending a data request instruction to the target database through the target interface to obtain target data fed back by the target database after receiving the data request instruction.
In this embodiment, the smart park service system provides a unified data collection procedure, and the collection method includes at least one of the following: the direct connection database (i.e. the target database), requests through an interface (i.e. the target interface), and collects through a protocol, and specifically, the direct connection database supports relational and non-relational databases, local files, and the like, for example: mysql, oracle, sql server, postgresql, teleDB, dameng database, redmond, sqlite, etc.; requesting data through an interface; the system can automatically identify the interface specification through the message, and can acquire data through the protocols of HTTP, COAP, MQTT, DDS, AMQP, XMPP and JMS.
As an optional implementation manner, in the data interaction process, the interface management module may further perform unified management on data reception and external public interface, where the interface type supports GET and POST modes, and the data type includes but is not limited to JSON and XML.
In this embodiment, in order to ensure the security of the service processing process, the encryption module performs encryption transmission and storage on the data source management and the data interface during data interaction, and specifically, a user may select an encryption policy according to the interaction performance requirement between systems, the usage scenario, and the actual requirement.
In this embodiment, the system provides the common encryption algorithms RSA and AES, the common cryptographic algorithms SM1 and SM2, and the default usage cryptographic algorithm SM2, based on ECC 256-bit asymmetric encryption, as an optional implementation, a dual-key mixed encryption authentication method with a higher security level may be used to ensure the security of data transmission and storage.
And step S108, performing service processing according to the target data and a second decision step in the second service processing strategy.
In some embodiments of the present application, performing the service processing according to the target data and the second decision step in the second service processing policy includes: configuring the target data to a second decision step corresponding to the target data; under the condition that the second decision step supports the format of the target data, the second decision step is executed in sequence according to an execution mode corresponding to the second decision step, and an execution log generated in the execution process of the second decision step is stored, wherein the execution mode comprises one of the following modes: the system comprises an instant execution mode and a delay execution mode, wherein an execution log comprises at least one of the following: and executing the step identification number, the execution time and the execution result.
In this embodiment, the execution mode is divided into an instant execution mode and a delayed execution mode, and the execution mode of the decision step in the service processing policy can be adjusted according to actual requirements.
In this embodiment, the execution log includes execution time, policy execution condition, request parameters, and the like, and specifically, each application subsystem in the intelligent park service system performs service node docking with the service processing system through an interface (API), completes policy configuration in the service processing system, that is, the docking operation can be completed, and when the application subsystem triggers a corresponding service, the policy execution condition is monitored through the policy execution log module.
In the embodiment of the application, firstly, a user combs service requirements, creates a project through a system, arranges the requirements into a decision implementation method (namely the service processing strategy) according to a scheme provided by a system help document, and inputs the decision implementation method into the project through a visual operation interface provided by the system; the data source is automatically identified through the function provided by the visual interface, the action definition (namely the action of executing the decision step or the action of acquiring corresponding data according to data source information) is realized in a code-free development mode, and the system can provide an automatic test function and verify the correctness and the integrity of the service; and debugging and packaging deployment are carried out on the finished decision application program, the deployment can be executed after the deployment, and a user can monitor the execution condition through a log. The traditional business processing mode is that a specific responsible person of an owner is in butt joint with a developer to complete business development, and the business development can be completed without the intervention of developers.
The application provides a method for developing park business processing strategies for intelligent park construction, which can realize automatic data identification and collection and automatic event processing through a strategy driving mode, realize multi-business platform linkage, adopt a decision-making driving mechanism, have no code building capacity, realize quick deployment, effectively improve management efficiency and improve the intelligence of a park system.
Through the steps, a user can create a business processing strategy by himself through a visual interface, the system carries out comprehensive analysis and processing on the business processing strategy according to a strategy network, the strategy is optimized, the effects of application scene linkage, application rapid development and rapid realization of demand are achieved, and the technical problems that the business processing period is long and the efficiency is low due to the fact that professional developers are required to be relied on when a business processing flow is developed or changed in the existing business processing flow in the system at present are solved.
According to the embodiment of the application, the embodiment of the service processing system is also provided. Fig. 6 is a schematic structural diagram of a framework of a service processing system according to an embodiment of the present application. As shown in fig. 6, the system includes:
the engineering creation module 600 is used for creating and managing application programs, wherein the application programs comprise a policy model, a decision model, action definition, data source management and encryption algorithm management;
a policy model module 602 for developing a policy model created and managed according to the business requirements of the intelligent campus;
specifically, the policy model includes a data identification policy (equivalent to the above acquiring corresponding data according to the data source information) and an event processing policy (equivalent to the above performing decision step), where the data identification policy is used to automatically identify device operation data, data source, data type, and the like, and dynamically build a table for the database according to the data type. The event policy is used to automate the handling of campus management events. The strategy model comprises: strategy ID, strategy name, service classification, data source, data type, action set, decision set and corresponding relation between decision and data;
in this embodiment, the policy model is further configured to execute a finally determined service processing policy, specifically, substitute input data (i.e. the above target data) into the processing unit, and determine whether the current input data makes a decision LES (beta) = = true expression, where LES (beta) is a function for determining whether the policy step supports the format of the target data, and if the expression is true, perform the next decision node to continue execution until all decisions are matched
A decision model module 604 for developing and managing a decision model based on the policy model;
specifically, a user (and the target object) creates a first service processing policy on a visual interface in the system according to an actual service requirement, and as an optional implementation manner, the user may perform a drag-and-drop operation through the visual interface to select a decision step and data source information (i.e., the preset decision step and the preset data source information) pre-stored in the system to form the first service processing policy to implement the service requirement.
As an optional implementation manner, the user may also create or modify the decision step and the data source information by himself or herself through the programming language according to the actual requirement, and add the decision step and the data source information to the first business processing policy.
An action definition module 606, configured to edit an action instruction initiated by the service system;
in this embodiment, one action may be an action of performing a decision step or an action of collecting corresponding data according to data source information, and the actions include but are not limited to: request interfaces, execute database query statements, execute executables, and execute scripting languages.
The data source management module 608 is configured to manage a data source, and during a data source collection process, the data source type may be automatically identified and automatically stored through an identification policy;
in this embodiment, the smart park service system provides a unified data collection procedure, and the collection method includes at least one of the following: the direct connection database (i.e. the target database), requests through an interface (i.e. the target interface), and collects through a protocol, and specifically, the direct connection database supports relational and non-relational databases, local files, and the like, for example: mysql, oracle, sql server, postgresql, teleDB, dameng database, redmond, sqlite, etc.; requesting data through an interface; the system can automatically identify the interface specification through the message, and can acquire data through the protocols of HTTP, COAP, MQTT, DDS, AMQP, XMPP and JMS.
An encryption algorithm management module 610 for setting an encryption algorithm;
in order to ensure the security of the service processing process, the data source management and the data interface are encrypted, transmitted and stored through the encryption module during data interaction, and specifically, a user can select an encryption strategy according to the interaction performance requirement between systems, a use scene and actual requirements.
In this embodiment, the system provides the common encryption algorithms RSA and AES, the common cryptographic algorithms SM1 and SM2, and the default usage cryptographic algorithm SM2, based on ECC 256-bit asymmetric encryption, as an optional implementation, a dual-key mixed encryption authentication method with a higher security level may be used to ensure the security of data transmission and storage.
A policy execution log module 612, configured to store an execution log generated in a policy execution process;
in this embodiment, the execution log includes execution time, policy execution condition, request parameters, and the like, and specifically, each application subsystem in the smart park service system performs service node docking with the service processing system through an interface (API), completes policy configuration in the service processing system, that is, the docking operation can be completed, and when the application subsystem triggers a corresponding service, the policy execution condition is monitored through the policy execution log module.
As an optional implementation manner, the system further includes: the interface management module is used for managing an interface issued externally; the standard verification module is used for automatically verifying whether the application program meets the standard; and the application program issuing module is used for packaging and issuing the application programs.
The method and the system are based on unified specifications and application programs, can establish strategies and decision models based on the visual interface provided by the business processing system, and are simple to operate and easy to use. The application program is issued through the tool, has cross-platform performance, can independently run on operating systems such as windows and centros, and the application program configuration file is stored in a binary mode. The application subsystems are connected together, the data source is automatically identified, the event is automatically processed, a large amount of manual operation is not needed, and therefore the park management efficiency is improved. Service nodes among the application subsystems are communicated through a tool, interconnection and intercommunication among the application subsystems are achieved, and each application system can achieve multi-service scene linkage through strategies.
According to the embodiment of the application, the embodiment of the service processing device is also provided. Fig. 7 is a schematic structural diagram of a service processing apparatus according to an embodiment of the present application. As shown in fig. 7, the apparatus includes:
a processing policy obtaining module 70, configured to obtain a first service processing policy in response to a configuration instruction of a target object, where the first service processing policy includes: the method comprises a first decision step and first data source information, wherein the decision step is a minimum step unit which can be executed in the service processing process;
a processing policy optimization module 72, configured to optimize a first service processing policy according to a preset policy network to obtain a second service processing policy, where the preset policy network is used to represent an association relationship between each preset decision step in the system and preset data source information, and the number of second decision steps included in the second service processing policy is less than the number of first decision steps included in the first service processing policy;
a target data acquisition module 74, configured to acquire operating data of the target device according to second data source information in the second service processing policy to obtain target data;
and a processing policy executing module 76, configured to perform service processing according to the target data and the second decision step in the second service processing policy.
It should be noted that each module in the service processing apparatus may be a program module (for example, a set of program instructions for implementing a certain specific function), or may be a hardware module, and in the latter case, it may be represented in the following form, but is not limited thereto: the above modules are all represented by one processor, or the functions of the above modules are realized by one processor.
It should be noted that the service processing apparatus provided in this embodiment may be configured to execute the service processing method shown in fig. 1, and therefore, the explanation on the service processing method is also applicable to this embodiment, and is not described herein again.
According to the embodiment of the application, the embodiment of the computer terminal for realizing the service processing method is also provided. Fig. 8 is a block diagram of a hardware structure of a computer terminal (or an electronic device) for implementing a method for service processing according to an embodiment of the present application. As shown in fig. 8, the computer terminal 80 (or electronic device 80) may include one or more processors (shown here as 802a, 802b, … …,802 n) (which may include, but are not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA), a memory 804 for storing data, and a transmission module 806 for communication functions. Besides, the method can also comprise the following steps: a display, an input/output interface (I/O interface), a Universal Serial Bus (USB) port (which may be included as one of the ports of the I/O interface), a network interface, a power source, and/or a camera. It will be understood by those skilled in the art that the structure shown in fig. 8 is only an illustration and is not intended to limit the structure of the electronic device. For example, the computer terminal 80 may also include more or fewer components than shown in FIG. 8, or have a different configuration than shown in FIG. 8.
It should be noted that the one or more processors and/or other data processing circuitry described above may be referred to generally herein as "data processing circuitry". The data processing circuitry may be embodied in whole or in part in software, hardware, firmware, or any combination thereof. Further, the data processing circuit may be a single stand-alone processing module, or incorporated in whole or in part into any of the other elements in the computer terminal 80 (or electronic device). As referred to in the embodiments of the application, the data processing circuit acts as a processor control (e.g. selection of variable resistance termination paths connected to the interface).
The memory 804 can be used for storing software programs and modules of application software, such as program instructions/data storage devices corresponding to the service processing method in the embodiment of the present application, and the processor executes various functional applications and data processing by running the software programs and modules stored in the memory 804, that is, implementing the service processing method described above. The memory 804 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 804 may further include memory located remotely from the processor, which may be connected to the computer terminal 80 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission module 806 is used to receive or transmit data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the computer terminal 80. In one example, the transmission device 806 includes a Network Interface Controller (NIC) that can be connected to other Network devices through a base station to communicate with the internet. In one example, the transmission device 806 can be a Radio Frequency (RF) module, which is used to communicate with the internet in a wireless manner.
The display may be, for example, a touch screen type Liquid Crystal Display (LCD) that may enable a user to interact with a user interface of the computer terminal 80 (or electronic device).
It should be noted that, in some alternative embodiments, the computer device (or electronic device) shown in fig. 8 may include hardware elements (including circuitry), software elements (including computer code stored on a computer-readable medium), or a combination of both hardware and software elements. It should be noted that fig. 8 is only one example of a particular specific example and is intended to illustrate the types of components that may be present in the computer device (or electronic device) described above.
It should be noted that the electronic device for service processing shown in fig. 8 is used to execute the method for service processing shown in fig. 1, and therefore, the related explanations in the method for service processing are also applicable to the electronic device for service processing, and are not described herein again.
According to another aspect of the embodiments of the present application, there is also provided a non-volatile storage medium, where the non-volatile storage medium includes a stored computer program, and a device in which the non-volatile storage medium is located executes the following service processing method by running the computer program: responding to a configuration instruction of a target object, and obtaining a first business processing strategy, wherein the first business processing strategy comprises the following steps: the method comprises a first decision step and first data source information, wherein the decision step is a minimum step unit which can be executed in the service processing process; optimizing the first service processing strategy according to a preset strategy network to obtain a second service processing strategy, wherein the preset strategy network is used for representing the incidence relation between each preset decision step in the system and preset data source information, and the number of the second decision steps contained in the second service processing strategy is less than the number of the first decision steps contained in the first service processing strategy; acquiring operation data of the target equipment according to second data source information in a second service processing strategy to obtain target data; and processing the service according to the target data and a second decision step in a second service processing strategy.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
In the above embodiments of the present application, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed technology can be implemented in other ways. The above-described apparatus embodiments are merely illustrative, and for example, the division of the units may be a logical division, and in actual implementation, there may be another division, for example, multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or may not be executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
The foregoing is only a preferred embodiment of the present application and it should be noted that, as will be apparent to those skilled in the art, numerous modifications and adaptations can be made without departing from the principles of the present application and such modifications and adaptations are intended to be considered within the scope of the present application.

Claims (10)

1. A method for processing a service, comprising:
responding to a configuration instruction of a target object, and obtaining a first business processing strategy, wherein the first business processing strategy comprises: the method comprises a first decision step and first data source information, wherein the first decision step is a minimum step unit which can be executed in the service processing process;
optimizing the first service processing strategy according to a preset strategy network to obtain a second service processing strategy, wherein the preset strategy network is used for representing the association relation between each preset decision step in a system and preset data source information, and the number of second decision steps contained in the second service processing strategy is less than that of the first decision steps contained in the first service processing strategy;
acquiring operating data of target equipment according to second data source information in the second service processing strategy to obtain target data;
and processing the service according to the target data and the second decision step in the second service processing strategy.
2. The service processing method according to claim 1, wherein the first service processing policy includes at least one first decision step, the second service processing policy includes at least one second decision step, and the optimizing the first service processing policy according to a preset policy network to obtain the second service processing policy includes:
searching whether a target preset decision step matched with the first decision step exists in the preset strategy network;
under the condition that the target preset decision step exists, acquiring a target association relation corresponding to the target preset decision step, wherein the target association relation is used for representing the connection relation between the target preset decision step and the rest preset decision steps in the preset strategy network;
and selecting the preset decision step in the preset strategy network and the first decision step for replacement according to the target association relation to obtain the second decision step.
3. The traffic processing method according to claim 2, wherein the step of retrieving whether a target predetermined decision step matching the first decision step exists in the predetermined policy network further comprises:
under the condition that the target preset decision step does not exist, acquiring a preset standard file corresponding to a first business processing strategy, wherein the preset standard file is used for indicating the standard requirement required to be met by the business processing strategy;
identifying the preset standard file to obtain a first standard requirement which needs to be met by the first service processing strategy;
verifying the first service processing strategy and judging whether the first service processing strategy meets the first specification requirement;
and determining the first business processing strategy as the second business processing strategy under the condition that the first business processing strategy meets the first specification requirement.
4. The traffic processing method according to claim 3, wherein, in a case that the first traffic processing policy satisfies the first specification requirement, determining the first traffic processing policy as the second traffic processing policy further comprises:
and updating the first decision step and the first data source information in the first service processing strategy meeting the first specification requirement into the preset strategy network.
5. The business processing method of claim 1, wherein obtaining the first business processing policy in response to the configuration instruction of the target object comprises:
acquiring the first decision step and the first data source information, which are configured by the target object through a target configuration mode on a front-end interactive interface, wherein the target configuration mode comprises at least one of the following steps: and configuring the preset decision step and the preset data source information stored in a visual interface selection system, and creating the first decision step and the first data source information through a script language.
6. The service processing method of claim 1, wherein acquiring operation data of a target device according to second data source information in the second service processing policy to obtain target data comprises:
determining a target database indicated in the second data source information;
and sending a data request instruction to the target database through a target interface to obtain the target data fed back by the target database after receiving the data request instruction.
7. The traffic processing method according to claim 1, wherein performing traffic processing according to the target data and the second decision step in the second traffic processing policy comprises:
configuring the target data to the second decision step corresponding to the target data;
under the condition that the second decision step supports the format of the target data, sequentially executing the second decision step according to an execution mode corresponding to the second decision step, and storing an execution log generated in the execution process of the second decision step, wherein the execution mode comprises one of the following modes: an instant execution mode and a delayed execution mode, wherein the execution log comprises at least one of the following: and executing the step identification number, the execution time and the execution result.
8. A traffic processing apparatus, comprising:
a processing policy obtaining module, configured to obtain a first service processing policy in response to a configuration instruction of a target object, where the first service processing policy includes: the method comprises a first decision step and first data source information, wherein the first decision step is a minimum step unit which can be executed in the service processing process;
a processing policy optimization module, configured to optimize the first service processing policy according to a preset policy network to obtain a second service processing policy, where the preset policy network is used to represent an association relationship between each preset decision step in a system and preset data source information, and a number of second decision steps included in the second service processing policy is less than a number of first decision steps included in the first service processing policy;
the target data acquisition module is used for acquiring the operating data of the target equipment according to the second data source information in the second service processing strategy to obtain target data;
and the processing strategy executing module is used for processing the service according to the target data and the second decision step in the second service processing strategy.
9. An electronic device comprising a processor, wherein the processor is configured to execute a program, and wherein the program executes to perform the service processing method according to any one of claims 1 to 7.
10. A non-volatile storage medium, comprising a stored computer program, wherein a device on which the non-volatile storage medium is located executes the service processing method according to any one of claims 1 to 7 by running the computer program.
CN202211268507.6A 2022-10-17 2022-10-17 Service processing method and device, electronic equipment and nonvolatile storage medium Pending CN115480843A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211268507.6A CN115480843A (en) 2022-10-17 2022-10-17 Service processing method and device, electronic equipment and nonvolatile storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211268507.6A CN115480843A (en) 2022-10-17 2022-10-17 Service processing method and device, electronic equipment and nonvolatile storage medium

Publications (1)

Publication Number Publication Date
CN115480843A true CN115480843A (en) 2022-12-16

Family

ID=84395928

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211268507.6A Pending CN115480843A (en) 2022-10-17 2022-10-17 Service processing method and device, electronic equipment and nonvolatile storage medium

Country Status (1)

Country Link
CN (1) CN115480843A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116302211A (en) * 2023-05-22 2023-06-23 美云智数科技有限公司 Configuration method and device of policy executor, computer equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116302211A (en) * 2023-05-22 2023-06-23 美云智数科技有限公司 Configuration method and device of policy executor, computer equipment and storage medium
CN116302211B (en) * 2023-05-22 2023-11-21 美云智数科技有限公司 Configuration method and device of policy executor, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
US11196637B2 (en) Systems and methods for modeling and simulating an IoT system
JP6523354B2 (en) State machine builder with improved interface and handling of state independent events
US20200401465A1 (en) Apparatuses, systems, and methods for providing healthcare integrations
CA2948700A1 (en) Systems and methods for websphere mq performance metrics analysis
CN113590576A (en) Database parameter adjusting method and device, storage medium and electronic equipment
CN112732227B (en) Workflow engine and configuration method and device thereof
CN111355622A (en) Container traffic monitoring method, system and computer readable storage medium
US20120215583A1 (en) System and method for managing real-time batch workflows
US20210141779A1 (en) System and method for facilitating an objective-oriented data structure and an objective via the data structure
US20240250996A1 (en) System and method for algorithm crowdsourcing, monetization, and exchange
CN110502538B (en) Method, system, equipment and storage medium for portrait tag generation logic mapping
CN110493304A (en) Edge calculations system and transaction system
CN107181729B (en) Data encryption in a multi-tenant cloud environment
CN112380255A (en) Service processing method, device, equipment and storage medium
CN111143465A (en) Method and device for realizing data center station and electronic equipment
CN114416313A (en) Task scheduling method and device based on resource prediction model
CN114443639A (en) Method and system for processing data table and automatically training machine learning model
CN115277692B (en) Automatic operation and maintenance method, device and system for edge network computing terminal equipment
CN118095803B (en) Logistics resource integration and scheduling platform and method based on big data
CN115480843A (en) Service processing method and device, electronic equipment and nonvolatile storage medium
WO2021030638A1 (en) Blockchain communication architecture
CN115392501A (en) Data acquisition method and device, electronic equipment and storage medium
CN114757448B (en) Manufacturing inter-link optimal value chain construction method based on data space model
EP4242848B1 (en) Method and computer system for capture and analysis of repetitive actions generated by the employee-computer interaction
TW202010292A (en) Method and apparatus for predicting target device, and electronic device and storage medium

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