CN112784199A - Event flow processing method, device, storage medium and program product - Google Patents

Event flow processing method, device, storage medium and program product Download PDF

Info

Publication number
CN112784199A
CN112784199A CN202110116859.9A CN202110116859A CN112784199A CN 112784199 A CN112784199 A CN 112784199A CN 202110116859 A CN202110116859 A CN 202110116859A CN 112784199 A CN112784199 A CN 112784199A
Authority
CN
China
Prior art keywords
target
preset
processing flow
event information
template
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
CN202110116859.9A
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.)
Beijing Youzhuju Network Technology Co Ltd
Original Assignee
Beijing Youzhuju Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Youzhuju Network Technology Co Ltd filed Critical Beijing Youzhuju Network Technology Co Ltd
Priority to CN202110116859.9A priority Critical patent/CN112784199A/en
Publication of CN112784199A publication Critical patent/CN112784199A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the disclosure provides an event flow processing method, an event flow processing device, a storage medium and a program product, wherein the method comprises the steps of receiving target event information and acquiring a target preset processing flow template according to the target event information; determining a target processing flow according to the target event information and a target preset processing flow template; the target processing flow is executed through the flow engine, and the response to the target event can be realized. According to the method and the device, the target processing flow to be executed can be obtained in real time through the target event information and the target preset processing flow template, the target preset processing flow template only needs to be configured in the development stage, a program of the target processing flow does not need to be written, development cost is reduced, meanwhile, some universality actions can be adopted in the target preset processing flow template, and universality and flexibility are improved.

Description

Event flow processing method, device, storage medium and program product
Technical Field
The present disclosure relates to the field of computer and network communication technologies, and in particular, to an event flow processing method, device, storage medium, and program product.
Background
In the practical scenario of some service operation platforms, various and refined operations are generally required to be performed on various users on the platform. Technically, when a user on a platform triggers some events or the platform occurs some events, some business processes are required to be automatically executed by a business operation platform to respond to the triggered events.
In the existing platform, usually, in a development stage, a developer needs to write a program of a business process in advance for each event, and the corresponding program of the business process can be run after a user triggers an event in a running stage. In the existing method, a large amount of development cost is consumed in a development stage, and the program universality and flexibility of a business process are poor.
Disclosure of Invention
Embodiments of the present disclosure provide an event flow processing method, an event flow processing apparatus, a storage medium, and a program product, so as to reduce the cost of event flow processing and improve the versatility and flexibility of event response.
In a first aspect, an embodiment of the present disclosure provides an event flow processing method, including:
receiving target event information, and acquiring a target preset processing flow template according to the target event information;
determining a target processing flow according to the target event information and the target preset processing flow template;
executing the target processing flow through a flow engine.
In a second aspect, an embodiment of the present disclosure provides an event flow processing device, including:
the acquisition unit is used for receiving the target event information and acquiring a target preset processing flow template according to the target event information;
the processing unit is used for determining a target processing flow according to the target event information and the target preset processing flow template;
and the execution unit is used for executing the target processing flow through the flow engine.
In a third aspect, an embodiment of the present disclosure provides an electronic device, including: at least one processor and memory;
the memory stores computer-executable instructions;
the at least one processor executes computer-executable instructions stored by the memory to cause the at least one processor to perform the method as set forth in the first aspect above and in various possible designs of the first aspect.
In a fourth aspect, the embodiments of the present disclosure provide a computer-readable storage medium, in which computer-executable instructions are stored, and when the computer-executable instructions are executed by a processor, the method according to the first aspect and various possible designs of the first aspect are implemented.
In a fifth aspect, embodiments of the present disclosure provide a computer program product comprising computer executable instructions that, when executed by a processor, implement a method as set forth in the first aspect above and in various possible designs of the first aspect.
In the event flow processing method, the device, the storage medium and the program product provided by the embodiment, the method receives the target event information and obtains a target preset processing flow template according to the target event information; determining a target processing flow according to the target event information and a target preset processing flow template; the target processing flow is executed through the flow engine, and the response to the target event can be realized. According to the method and the device, the target processing flow to be executed can be obtained in real time through the target event information and the target preset processing flow template, the target preset processing flow template only needs to be configured in the development stage, a program of the target processing flow does not need to be written, development cost is reduced, meanwhile, some universality actions can be adopted in the target preset processing flow template, and universality and flexibility are improved.
Drawings
In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present disclosure, and for those skilled in the art, other drawings can be obtained according to the drawings without inventive exercise.
Fig. 1a is an application scenario diagram of an event flow processing method according to an embodiment of the present disclosure;
fig. 1b is a diagram of a server architecture for executing a method for processing an event flow according to an embodiment of the present disclosure;
fig. 2 is a schematic flow chart of an event flow processing method according to an embodiment of the disclosure;
fig. 3 is a schematic flow chart of an event flow processing method according to another embodiment of the disclosure;
fig. 4 is a schematic flow chart of an event flow processing method according to another embodiment of the disclosure;
fig. 5 is a schematic flow chart of an event flow processing method according to another embodiment of the disclosure;
fig. 6 is a block diagram of an event flow processing device according to an embodiment of the present disclosure;
fig. 7 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present disclosure.
Detailed Description
To make the objects, technical solutions and advantages of the embodiments of the present disclosure more clear, the technical solutions of the embodiments of the present disclosure will be described clearly and completely with reference to the drawings in the embodiments of the present disclosure, and it is obvious that the described embodiments are some, but not all embodiments of the present disclosure. All other embodiments, which can be derived by a person skilled in the art from the embodiments disclosed herein without making any creative effort, shall fall within the protection scope of the present disclosure.
In the practical scenario of some service operation platforms, various and refined operations are generally required to be performed on various users on the platform. Technically, when a user on a platform triggers some events or the platform occurs some events, some business processes are required to be automatically executed by a business operation platform, and a notification can be sent to the user in response to the triggered events, for example, a certain author in a live platform starts live broadcasting.
In the existing platform, usually, in a development stage, a developer needs to write a program of a business process in advance for each event, and the corresponding program of the business process can be run after a user triggers an event in a running stage. In the existing method, for each event, which business processes are operated need to be determined in a development stage, and a large amount of investment of developers is needed to compile corresponding programs for the determined business processes, so that a large amount of development cost is consumed in the development stage, and the programs of the business processes are only specific to a certain event and cannot be used for responding other events, and the universality and the flexibility are poor.
In order to solve the technical problem, in the embodiment of the present disclosure, it is considered that some preset processing flow templates are configured for various types of events in advance, some generic actions of the processing flow may be configured, and then after a target event is triggered, target event information is received, a corresponding target preset processing flow template is determined according to the target event information, then a target processing flow is determined according to the target event information and the target preset processing flow template, and the target processing flow is executed by a flow engine, so as to implement a response to the target event.
The event flow processing method provided by the embodiment of the present disclosure is applicable to an application scenario shown in fig. 1a, where the application scenario includes: the server 10 and other platform servers 11, where the other platform servers 11 include, but are not limited to, a video sharing platform, a communication platform, an e-commerce platform, a data platform, and the like, and the server 10 may receive target event information sent by the other platform servers 11 and obtain a target preset processing flow template according to the target event information; determining a target processing flow according to the target event information and a target preset processing flow template; the target processing flow is executed through the flow engine, and the response to the target event can be realized. Further, the specific structure of the server 10 may be as shown in fig. 1b, and includes a signal layer, a driver layer, a service layer, and a basic capability layer, where the signal layer may provide a channel connected to the other platform servers 11, and is connected to the other platform servers 11 through the channel; the driving layer comprises an event center, can receive target event information sent by other platform servers 11, and can judge whether the target event information is complete, if the target event information is incomplete, the target event information is completed to obtain standardized target event information; the business layer comprises a process engine, a target preset processing process template can be obtained according to the target event information, a target processing process is determined according to the target event information and the target preset processing process template, and finally the target processing process is executed; the basic capability layer is used for supporting the process engine, providing some general actions, and may be some basic operation actions of various platforms, such as sending short messages, registering account numbers, and the like, and may include, but is not limited to, a notification center, a growth center, a data center, a communication platform, and the like.
The event flow processing procedure of the present disclosure will be described in detail with reference to specific embodiments.
Referring to fig. 2, fig. 2 is a schematic flow chart of an event flow processing method according to an embodiment of the present disclosure. The method of the embodiment can be applied to a server, and the event flow processing method includes:
s201, receiving target event information, and acquiring a target preset processing flow template according to the target event information.
In this embodiment, the server may be connected to different platforms, different systems, or different terminals through the event center, that is, the event flow processing method in this embodiment may respond to some specific events triggered by different platforms, different systems, or different terminals, for example, may respond to some specific events triggered by a video sharing platform, an office collaboration platform, an instant messaging platform, an e-commerce platform, a merchant background, a data platform, and the like. The specific event may be a certain action trigger executed by each platform user on the platform, for example, a user plays on a video sharing platform; or the specific event can also be that an operator defines a batch of users on the platform and marks what action needs to be triggered, for example, a batch of users are defined and a short message needs to be sent to the defined users, wherein the definition and the marking action are used as a specific event.
When a certain event is triggered, the server side can receive triggered target event information through the event center, and further can obtain a corresponding target preset processing flow template according to the target event information, wherein the target preset processing flow template is configured in advance and can comprise preset conditions and a preset action list, the preset action list can be some general actions and can be obtained from a general action set, the general action set can comprise some general actions such as actions of sending short messages, registering accounts and the like and can be some basic operation actions of various platforms, the actions can be developed once in a development stage, the actions are arranged according to the configuration through the preset processing flow template to obtain a preset action list, and then the actions in the preset action list can be executed through the flow engine; the preset condition is a condition for executing the preset action list, that is, the action in the preset action list can be executed only after the preset condition is satisfied, and the action in the preset action list cannot be executed if the preset condition is not satisfied. For example, the preset condition may be broadcast by a merchant in the apparel industry, and the preset action list may include an Identification (ID) for determining a push user and sending a push message to the user.
S202, determining a target processing flow according to the target event information and the target preset processing flow template.
In this embodiment, since the preset action list in the target preset processing flow template is only some general actions, some parameters may be absent, such as an action of sending a short message in the preset action list, recipient information, short message content, time of sending a short message, and the like, and these information may be included in the target event information, the target event information may be substituted into the target preset processing flow template, and information required by the actions in the preset action list is completely supplemented, so as to obtain a plurality of corresponding actions to be executed, and each action to be executed has a specific sequence or condition, and can be used as the target processing flow.
In addition, optionally, it may also be determined whether the target event information includes all required information or parameters of the target preset processing flow template, and if so, the target processing flow may be determined according to the target event information and the target preset processing flow template; otherwise, the target processing flow cannot be determined, a failure prompt message can be returned, or all required information or parameters of the target preset processing flow template are obtained again, and the target processing flow is determined again according to the target event information and the target preset processing flow template.
S203, executing the target processing flow through the flow engine.
In this embodiment, after the target processing flow is obtained, the target processing flow may be executed by the flow engine. Optionally, each to-be-executed action in the target processing flow may be asynchronously executed by the flow engine, so that the execution efficiency of the to-be-executed action may be improved, the time may be saved, and the response speed to the target event may be improved. In addition, asynchronous execution can be adopted between target processing flows corresponding to different target events.
In the event flow processing method provided by this embodiment, a target preset processing flow template is obtained by receiving target event information and according to the target event information; determining a target processing flow according to the target event information and a target preset processing flow template; the target processing flow is executed through the flow engine, and the response to the target event can be realized. According to the method and the device, the target processing flow to be executed can be obtained in real time through the target event information and the target preset processing flow template, the target preset processing flow template only needs to be configured in a development stage, a program of the target processing flow does not need to be written, development cost is reduced, meanwhile, some universal actions can be adopted in the target preset processing flow template, and universality and flexibility are improved.
In an embodiment of the present disclosure, on the basis of the embodiment of fig. 2, after receiving the target event information in step S201 of the above embodiment, the method may further include:
judging whether the target event information is complete or not according to preset configuration information; and if the target event information is determined to be incomplete, completing the target event information to obtain standardized target event information.
In this embodiment, different preset configuration information may be configured for each event type in advance, the preset configuration information may include standardized target event information, that is, necessary information or parameters in the target event information, and further, based on the preset configuration information, it may be determined whether the target event information is complete, that is, whether the necessary information or parameters are included, if the target event information is complete, otherwise, it is determined that the target event information is incomplete, and further, based on the preset configuration information, the target event information may be complemented, that is, parameters or information missing in the target event information is complemented, so that the standardized target event information is obtained, and then the subsequent step flow may be executed based on the standardized target event information, thereby avoiding that the step flow cannot be executed smoothly due to missing of the necessary parameters or information, and the step flow may not be executed smoothly due to missing of the necessary parameters or information, Failing to respond to the target event.
For example, for the first time that an author launches on a video sharing platform, a study course for launching needs to be sent to a user through an instant messaging platform, target event information includes an author identifier (author _ id), and an account identifier of the author on the instant messaging platform is also needed.
In an embodiment of the present disclosure, on the basis of the embodiment of fig. 2, in step S201 of the above embodiment, acquiring a target preset processing flow template according to the target event information specifically includes, as shown in fig. 3:
s301, determining the event type of the target event information;
s302, acquiring preset configuration information corresponding to the event type according to the event type; the preset configuration information comprises execution conditions of the processing flow corresponding to the event type;
and S303, if the target event information meets the execution condition, acquiring a target preset processing flow template from a preset template set according to the preset configuration information.
In this embodiment, when the preset configuration information is configured for each event type in advance, the preset configuration information may further include an execution condition of the processing flow corresponding to the event type, that is, the processing flow corresponding to the event type is executed only when the execution condition is satisfied. For example, for an author to start broadcasting on a video sharing platform for the first time, a broadcast learning course needs to be sent to a user through an instant messaging platform, after target event information including the broadcast of the user is received, whether the user is started for the first time needs to be judged, and only when a condition of starting for the first time is met, a target preset processing flow template for sending the broadcast learning course to the user through the instant messaging platform is obtained. Furthermore, the target event information and the preset action list included in the target preset processing flow template can determine a plurality of actions to be executed, for example, an account number of the communication platform is registered for the user, a short message is sent to inform that the account number of the communication platform is successfully registered, a broadcast learning course is pushed to the account number of the user, and then the flow engine executes the plurality of actions to be executed, so that the response to the first broadcast event of the user is completed.
Furthermore, after receiving the target event information, the event type to which the target event information belongs can be determined, then the preset configuration information corresponding to the event type is obtained according to the event type, the execution condition in the preset configuration information is obtained, whether the execution condition is met or not is judged according to the target event information, when the execution condition is met, the target preset processing flow template is obtained from the preset template set, the target events can be screened through the execution condition through the process, namely, all the target events are not responded, and waste of system resources can be avoided.
On the basis of the foregoing embodiment, as shown in fig. 4, the step S303 of acquiring a target preset processing flow template from a preset template set according to the preset configuration information includes:
s3031, acquiring related information of the target event information according to the target event information and the preset configuration information;
s3032, obtaining a preset processing flow template matched with the target event information and the related information of the target event information from a preset template set, and determining the preset processing flow template as the target preset processing flow template, where the preset template set includes a plurality of preset processing flow templates.
In this embodiment, since the preset template set includes a plurality of preset processing flow templates, and the same event type may correspond to a plurality of preset processing flow templates, in order to quickly obtain the target preset processing flow template from the preset template set, in this embodiment, more related information of the target event information is obtained according to the target event information and the preset configuration information, and then matching is performed in the preset template set according to the target event information and the related information of the target event information, and the preset processing flow template matched with the target event information and the related information of the target event information is obtained and used as the target preset processing flow template, and matching is performed through more information, so that matching accuracy can be improved, and the most accurate target preset processing flow template can be found.
The preset configuration information can be used for configuring related information needed for the target event information in advance, and further, the related information of the target event information can be obtained from a data center according to the preset configuration information. It should be noted that, the related information of the target event information may be obtained only before the target preset processing flow template matching process is performed, and the related information of the target event information may not be necessary information required for determining the target processing flow, so that it is not necessary to obtain the related information when the target event information is received or during the target event information standardization process after the target event information is received, and disadvantages such as data redundancy are avoided.
On the basis of any of the foregoing embodiments, the event flow processing method provided in this embodiment may further include a process of generating a preset processing flow template, as shown in fig. 5, specifically including:
s401, for any event type, acquiring configuration information corresponding to the event type, wherein the configuration information comprises event information, preset conditions and target action information;
s402, generating a preset processing flow template through a flow engine according to the preset configuration information, and storing the preset processing flow template and event information in a preset template set in an associated manner.
In this embodiment, various types of events in each platform may be predefined in a development phase, and for each event type, corresponding preset configuration information, including event information, preset conditions, and target action information, may be acquired, where the event information may include each event information of the event type, that is, an event that is determined to be of the type when which event information is received, and in addition, may also include necessary information or parameters in the target event information, which is used for standardization of the target event information, and may also include related information of the target event information required in the above embodiments, and the like; the preset condition may be an execution condition of the processing flow corresponding to the event type in the above embodiment; the target action information may include information of which actions the process flow is to perform. The preset configuration information may be configured by a developer, or may be obtained by other methods, which is not limited herein.
Further, after the preset configuration information is obtained, a preset processing flow template can be generated by the flow engine according to the event information, the preset condition and the target action information, optionally, the flow engine, selecting a target atomic operation from an atomic operation set according to the target action information, arranging the logic of a processing flow according to the target atomic operation to obtain a preset action list, wherein the atomic operation set comprises a plurality of atomic operations (atomic operations), which may comprise some common atomic operations of each platform, such as texting, account registration, etc., each atomic operation may include at least one action, the atomic operation refers to an operation which cannot be interrupted by a thread scheduling mechanism, namely once the atomic operation starts, the atomic operation is run until the atomic operation is finished, and the atomic operation cannot be switched to another thread in the middle; and generating the preset processing flow template according to the preset action list and the preset conditions to realize the process of abstracting the business logic into the atomic operation in a regular form.
After the preset processing flow template is generated, the preset processing flow template and the event information can be stored in the preset template set in an associated mode, and the target preset processing flow template can be conveniently obtained from the preset template set according to the target event information after the target event information is received and received.
According to the method and the device, the preset processing flow template is configured according to the preset configuration information in the development stage, programs of all processing flows do not need to be written, development cost is reduced, meanwhile, some universal actions can be adopted in the target preset processing flow template, and universality and flexibility are improved.
Corresponding to the event flow processing method in the foregoing embodiment, fig. 6 is a block diagram of an event flow processing device provided in the embodiment of the present disclosure. For ease of illustration, only portions that are relevant to embodiments of the present disclosure are shown. Referring to fig. 6, the event flow processing apparatus 600 includes: an acquisition unit 601, a processing unit 602, and an execution unit 603.
An obtaining unit 601, configured to receive target event information, and obtain a target preset processing flow template according to the target event information;
a processing unit 602, configured to determine a target processing flow according to the target event information and the target preset processing flow template;
an executing unit 603, configured to execute the target processing flow through a flow engine.
According to one or more embodiments of the present disclosure, when acquiring a target preset processing flow template according to the target event information, the acquiring unit 601 is configured to:
determining the event type to which the target event information belongs;
acquiring preset configuration information corresponding to the event type according to the event type; the preset configuration information comprises execution conditions of the processing flow corresponding to the event type;
and if the target event information meets the execution condition, acquiring a target preset processing flow template from a preset template set according to the preset configuration information.
According to one or more embodiments of the present disclosure, when the obtaining unit 601 obtains the target preset processing flow template from the preset template set according to the preset configuration information, the obtaining unit is configured to:
acquiring relevant information of the target event information according to the target event information and the preset configuration information;
and acquiring a preset processing flow template matched with the target event information and the related information of the target event information from a preset template set, and determining the preset processing flow template as the target preset processing flow template, wherein the preset template set comprises a plurality of preset processing flow templates.
According to one or more embodiments of the present disclosure, after receiving the target event information, the obtaining unit 601 is further configured to:
judging whether the target event information is complete or not according to the preset configuration information;
and if the target event information is determined to be incomplete, completing the target event information to obtain standardized target event information.
According to one or more embodiments of the present disclosure, when determining a target processing flow according to the target event information and the target preset processing flow template, the processing unit 602 is configured to:
acquiring a plurality of corresponding actions to be executed according to the target event information and a preset action list included in the target preset processing flow template;
and determining the action to be executed as the target processing flow.
According to one or more embodiments of the present disclosure, the execution unit 603, when executing the target processing flow through a flow engine, is configured to:
and asynchronously executing each action to be executed through the process engine.
According to one or more embodiments of the present disclosure, the apparatus further comprises a template generation unit configured to:
for any event type, acquiring configuration information corresponding to the event type, wherein the configuration information comprises event information, preset conditions and target action information;
and generating a preset processing flow template through a flow engine according to the preset configuration information, and storing the preset processing flow template and the event information in a preset template set in an associated manner.
According to one or more embodiments of the present disclosure, when the template generating unit generates a preset processing flow template through a flow engine according to the preset configuration information, the template generating unit is configured to:
selecting a target atomic operation from an atomic operation set according to the target action information through the process engine, and arranging a logic of a processing process according to the target atomic operation to obtain a preset action list, wherein the atomic operation set comprises a plurality of atomic operations;
and generating the preset processing flow template according to the preset action list and the preset condition.
The event flow processing device provided in this embodiment may be used to implement the technical solutions of the above method embodiments, and the implementation principles and technical effects are similar, which are not described herein again.
The event flow processing device provided by this embodiment receives the target event information, and obtains a target preset processing flow template according to the target event information; determining a target processing flow according to the target event information and a target preset processing flow template; the target processing flow is executed through the flow engine, and the response to the target event can be realized. According to the method and the device, the target processing flow to be executed can be obtained in real time through the target event information and the target preset processing flow template, the target preset processing flow template only needs to be configured in a development stage, a program of the target processing flow does not need to be written, development cost is reduced, meanwhile, some universal actions can be adopted in the target preset processing flow template, and universality and flexibility are improved.
Referring to fig. 7, a schematic structural diagram of an electronic device 700 suitable for implementing the embodiment of the present disclosure is shown, where the electronic device 700 may be a terminal device or a server. Among them, the terminal Device may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a Digital broadcast receiver, a Personal Digital Assistant (PDA), a tablet computer (PAD), a Portable Multimedia Player (PMP), a car terminal (e.g., car navigation terminal), etc., and a fixed terminal such as a Digital TV, a desktop computer, etc. The electronic device shown in fig. 7 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 7, the electronic device 700 may include a processing means (e.g., a central processing unit, a graphics processor, etc.) 701, which may perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 702 or a program loaded from a storage means 708 into a Random Access Memory (RAM) 703. In the RAM 703, various programs and data necessary for the operation of the electronic apparatus 700 are also stored. The processing device 701, the ROM702, and the RAM 703 are connected to each other by a bus 704. An input/output (I/O) interface 705 is also connected to bus 704.
Generally, the following devices may be connected to the I/O interface 705: input devices 706 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; an output device 707 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 708 including, for example, magnetic tape, hard disk, etc.; and a communication device 709. The communication means 709 may allow the electronic device 700 to communicate wirelessly or by wire with other devices to exchange data. While fig. 7 illustrates an electronic device 700 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such embodiments, the computer program may be downloaded and installed from a network via the communication means 709, or may be installed from the storage means 708, or may be installed from the ROM 702. The computer program, when executed by the processing device 701, performs the above-described functions defined in the methods of the embodiments of the present disclosure.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to perform the methods shown in the above embodiments.
Computer program code for carrying out operations for aspects of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, 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 computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of Network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present disclosure may be implemented by software or hardware. Where the name of a unit does not in some cases constitute a limitation of the unit itself, for example, the first retrieving unit may also be described as a "unit for retrieving at least two internet protocol addresses".
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), systems on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
In a first aspect, according to one or more embodiments of the present disclosure, there is provided an event flow processing method, including:
receiving target event information, and acquiring a target preset processing flow template according to the target event information;
determining a target processing flow according to the target event information and the target preset processing flow template;
executing the target processing flow through a flow engine.
According to one or more embodiments of the present disclosure, the obtaining a target preset processing flow template according to the target event information includes:
determining the event type to which the target event information belongs;
acquiring preset configuration information corresponding to the event type according to the event type; the preset configuration information comprises execution conditions of the processing flow corresponding to the event type;
and if the target event information meets the execution condition, acquiring a target preset processing flow template from a preset template set according to the preset configuration information.
According to one or more embodiments of the present disclosure, the obtaining a target preset processing flow template from a preset template set according to the preset configuration information includes:
acquiring relevant information of the target event information according to the target event information and the preset configuration information;
and acquiring a preset processing flow template matched with the target event information and the related information of the target event information from a preset template set, and determining the preset processing flow template as the target preset processing flow template, wherein the preset template set comprises a plurality of preset processing flow templates.
According to one or more embodiments of the present disclosure, after receiving the target event information, the method further includes:
judging whether the target event information is complete or not according to the preset configuration information;
and if the target event information is determined to be incomplete, completing the target event information to obtain standardized target event information.
According to one or more embodiments of the present disclosure, the determining a target processing flow according to the target event information and the target preset processing flow template includes:
acquiring a plurality of corresponding actions to be executed according to the target event information and a preset action list included in the target preset processing flow template;
and determining the action to be executed as the target processing flow.
According to one or more embodiments of the present disclosure, the executing, by the process engine, the target processing process includes:
and asynchronously executing each action to be executed through the process engine.
According to one or more embodiments of the present disclosure, the method further comprises:
for any event type, acquiring configuration information corresponding to the event type, wherein the configuration information comprises event information, preset conditions and target action information;
and generating a preset processing flow template through a flow engine according to the preset configuration information, and storing the preset processing flow template and the event information in a preset template set in an associated manner.
According to one or more embodiments of the present disclosure, the generating a preset processing flow template through a flow engine according to the preset configuration information includes:
selecting a target atomic operation from an atomic operation set according to the target action information through the process engine, and arranging a logic of a processing process according to the target atomic operation to obtain a preset action list, wherein the atomic operation set comprises a plurality of atomic operations;
and generating the preset processing flow template according to the preset action list and the preset condition.
In a second aspect, according to one or more embodiments of the present disclosure, there is provided an event flow processing apparatus including:
the acquisition unit is used for receiving the target event information and acquiring a target preset processing flow template according to the target event information;
the processing unit is used for determining a target processing flow according to the target event information and the target preset processing flow template;
and the execution unit is used for executing the target processing flow through the flow engine.
According to one or more embodiments of the present disclosure, when the obtaining unit obtains the target preset processing flow template according to the target event information, the obtaining unit is configured to:
determining the event type to which the target event information belongs;
acquiring preset configuration information corresponding to the event type according to the event type; the preset configuration information comprises execution conditions of the processing flow corresponding to the event type;
and if the target event information meets the execution condition, acquiring a target preset processing flow template from a preset template set according to the preset configuration information.
According to one or more embodiments of the present disclosure, when the obtaining unit obtains the target preset processing flow template from the preset template set according to the preset configuration information, the obtaining unit is configured to:
acquiring relevant information of the target event information according to the target event information and the preset configuration information;
and acquiring a preset processing flow template matched with the target event information and the related information of the target event information from a preset template set, and determining the preset processing flow template as the target preset processing flow template, wherein the preset template set comprises a plurality of preset processing flow templates.
According to one or more embodiments of the present disclosure, after receiving the target event information, the obtaining unit is further configured to:
judging whether the target event information is complete or not according to the preset configuration information;
and if the target event information is determined to be incomplete, completing the target event information to obtain standardized target event information.
According to one or more embodiments of the present disclosure, when determining a target processing flow according to the target event information and the target preset processing flow template, the processing unit is configured to:
acquiring a plurality of corresponding actions to be executed according to the target event information and a preset action list included in the target preset processing flow template;
and determining the action to be executed as the target processing flow.
According to one or more embodiments of the present disclosure, the execution unit, when executing the target processing flow by the flow engine, is configured to:
and asynchronously executing each action to be executed through the process engine.
According to one or more embodiments of the present disclosure, the apparatus further comprises a template generation unit configured to:
for any event type, acquiring configuration information corresponding to the event type, wherein the configuration information comprises event information, preset conditions and target action information;
and generating a preset processing flow template through a flow engine according to the preset configuration information, and storing the preset processing flow template and the event information in a preset template set in an associated manner.
According to one or more embodiments of the present disclosure, when the template generating unit generates a preset processing flow template through a flow engine according to the preset configuration information, the template generating unit is configured to:
selecting a target atomic operation from an atomic operation set according to the target action information through the process engine, and arranging a logic of a processing process according to the target atomic operation to obtain a preset action list, wherein the atomic operation set comprises a plurality of atomic operations;
and generating the preset processing flow template according to the preset action list and the preset condition.
In a third aspect, according to one or more embodiments of the present disclosure, there is provided an electronic device including: at least one processor and memory;
the memory stores computer-executable instructions;
the at least one processor executing the computer-executable instructions stored by the memory causes the at least one processor to perform the event flow processing method as set forth in the first aspect and various possible designs of the first aspect above.
In a fourth aspect, according to one or more embodiments of the present disclosure, a computer-readable storage medium is provided, in which computer-executable instructions are stored, and when the computer-executable instructions are executed by a processor, the event flow processing method according to the first aspect and various possible designs of the first aspect is implemented.
In a fifth aspect, according to one or more embodiments of the present disclosure, there is provided a computer program product comprising computer executable instructions that, when executed by a processor, implement the event flow processing method as described above in the first aspect and in various possible designs of the first aspect.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other embodiments in which any combination of the features described above or their equivalents does not depart from the spirit of the disclosure. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.
Further, while operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limitations on the scope of the disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.

Claims (12)

1. An event flow processing method, comprising:
receiving target event information, and acquiring a target preset processing flow template according to the target event information;
determining a target processing flow according to the target event information and the target preset processing flow template;
executing the target processing flow through a flow engine.
2. The method according to claim 1, wherein the obtaining a target preset processing flow template according to the target event information comprises:
determining the event type to which the target event information belongs;
acquiring preset configuration information corresponding to the event type according to the event type; the preset configuration information comprises execution conditions of the processing flow corresponding to the event type;
and if the target event information meets the execution condition, acquiring a target preset processing flow template from a preset template set according to the preset configuration information.
3. The method according to claim 2, wherein the obtaining a target preset process flow template from a preset template set according to the preset configuration information comprises:
acquiring relevant information of the target event information according to the target event information and the preset configuration information;
and acquiring a preset processing flow template matched with the target event information and the related information of the target event information from a preset template set, and determining the preset processing flow template as the target preset processing flow template, wherein the preset template set comprises a plurality of preset processing flow templates.
4. The method of claim 2, wherein after receiving the target event information, further comprising:
judging whether the target event information is complete or not according to the preset configuration information;
and if the target event information is determined to be incomplete, completing the target event information to obtain standardized target event information.
5. The method according to any one of claims 1 to 4, wherein the determining a target process flow according to the target event information and the target preset process flow template comprises:
acquiring a plurality of corresponding actions to be executed according to the target event information and a preset action list included in the target preset processing flow template;
and determining the action to be executed as the target processing flow.
6. The method of claim 5, wherein said executing the target process flow by a flow engine comprises:
and asynchronously executing each action to be executed through the process engine.
7. The method of claim 1, further comprising:
for any event type, acquiring configuration information corresponding to the event type, wherein the configuration information comprises event information, preset conditions and target action information;
and generating a preset processing flow template through a flow engine according to the preset configuration information, and storing the preset processing flow template and the event information in a preset template set in an associated manner.
8. The method of claim 7, wherein generating a preset processing flow template by a flow engine according to the preset configuration information comprises:
selecting a target atomic operation from an atomic operation set according to the target action information through the process engine, and arranging a logic of a processing process according to the target atomic operation to obtain a preset action list, wherein the atomic operation set comprises a plurality of atomic operations;
and generating the preset processing flow template according to the preset action list and the preset condition.
9. An event flow processing apparatus, comprising:
the acquisition unit is used for receiving the target event information and acquiring a target preset processing flow template according to the target event information;
the processing unit is used for determining a target processing flow according to the target event information and the target preset processing flow template;
and the execution unit is used for executing the target processing flow through the flow engine.
10. An electronic device, comprising: at least one processor and memory;
the memory stores computer-executable instructions;
the at least one processor executing the computer-executable instructions stored by the memory causes the at least one processor to perform the method of any one of claims 1-8.
11. A computer-readable storage medium having computer-executable instructions stored thereon which, when executed by a processor, implement the method of any one of claims 1-8.
12. A computer program product comprising computer executable instructions, characterized in that the computer executable instructions, when executed by a processor, implement the method of any of claims 1-8.
CN202110116859.9A 2021-01-28 2021-01-28 Event flow processing method, device, storage medium and program product Pending CN112784199A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110116859.9A CN112784199A (en) 2021-01-28 2021-01-28 Event flow processing method, device, storage medium and program product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110116859.9A CN112784199A (en) 2021-01-28 2021-01-28 Event flow processing method, device, storage medium and program product

Publications (1)

Publication Number Publication Date
CN112784199A true CN112784199A (en) 2021-05-11

Family

ID=75759331

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110116859.9A Pending CN112784199A (en) 2021-01-28 2021-01-28 Event flow processing method, device, storage medium and program product

Country Status (1)

Country Link
CN (1) CN112784199A (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110010209A1 (en) * 2009-07-09 2011-01-13 International Business Machines Corporation Statistical condition detection and resolution management
US20120131612A1 (en) * 2010-11-20 2012-05-24 Motorola, Inc. Method and system for policy-based re-broadcast video on demand service
US20130283088A1 (en) * 2012-04-24 2013-10-24 International Business Machines Corporation Automated Fault and Recovery System
US20170146986A1 (en) * 2014-08-07 2017-05-25 Honeywell International Inc. Providing a standard operating procedure associated with a monitoring system of a facility
US20170228253A1 (en) * 2016-02-10 2017-08-10 Salesforce.Com, Inc. Throttling Events in Entity Lifecycle Management
US20180287969A1 (en) * 2017-03-28 2018-10-04 International Business Machines Corporation Event processing
CN110084525A (en) * 2019-05-05 2019-08-02 重庆天蓬网络有限公司 A kind of work management engine method and device based on business demand
WO2020063550A1 (en) * 2018-09-30 2020-04-02 中兴通讯股份有限公司 Policy decision method, apparatus and system, and storage medium, policy decision unit and cluster
CN110947182A (en) * 2019-11-26 2020-04-03 上海米哈游网络科技股份有限公司 Event handling method, device, game terminal and medium
WO2020233037A1 (en) * 2019-05-20 2020-11-26 深圳壹账通智能科技有限公司 Data processing method and apparatus, and storage medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110010209A1 (en) * 2009-07-09 2011-01-13 International Business Machines Corporation Statistical condition detection and resolution management
US20120131612A1 (en) * 2010-11-20 2012-05-24 Motorola, Inc. Method and system for policy-based re-broadcast video on demand service
US20130283088A1 (en) * 2012-04-24 2013-10-24 International Business Machines Corporation Automated Fault and Recovery System
US20170146986A1 (en) * 2014-08-07 2017-05-25 Honeywell International Inc. Providing a standard operating procedure associated with a monitoring system of a facility
US20170228253A1 (en) * 2016-02-10 2017-08-10 Salesforce.Com, Inc. Throttling Events in Entity Lifecycle Management
US20180287969A1 (en) * 2017-03-28 2018-10-04 International Business Machines Corporation Event processing
WO2020063550A1 (en) * 2018-09-30 2020-04-02 中兴通讯股份有限公司 Policy decision method, apparatus and system, and storage medium, policy decision unit and cluster
CN110084525A (en) * 2019-05-05 2019-08-02 重庆天蓬网络有限公司 A kind of work management engine method and device based on business demand
WO2020233037A1 (en) * 2019-05-20 2020-11-26 深圳壹账通智能科技有限公司 Data processing method and apparatus, and storage medium
CN110947182A (en) * 2019-11-26 2020-04-03 上海米哈游网络科技股份有限公司 Event handling method, device, game terminal and medium

Similar Documents

Publication Publication Date Title
CN110098998B (en) Method and apparatus for processing information
CN110781373B (en) List updating method and device, readable medium and electronic equipment
CN110597602B (en) Transaction processing method and device, computer equipment and storage medium
CN112596720A (en) Service operation method and device, electronic equipment and computer storage medium
CN111190657B (en) Activity configuration method and device, readable medium and electronic equipment
CN112257478A (en) Code scanning method, device, terminal and storage medium
CN110083768B (en) Information sharing method, device, equipment and medium
CN110908921A (en) Game problem positioning method and device, electronic equipment and storage medium
CN111414152B (en) Method, system, readable medium and electronic device for realizing business logic
CN113050985A (en) Front-end engineering dependence automatic registration method and device
CN110519373B (en) Method and device for pushing information
CN111752644A (en) Interface simulation method, device, equipment and storage medium
CN111580883A (en) Application program starting method, device, computer system and medium
CN111262778A (en) Invitation link information processing method and device, electronic equipment and readable medium
CN111124523A (en) Method and apparatus for initializing applications
CN111625326B (en) Task pipeline execution method and device and electronic equipment
CN112422648B (en) Data synchronization method and system
CN112784199A (en) Event flow processing method, device, storage medium and program product
CN109669679B (en) Service detection and processing method and device and electronic equipment
CN111367590A (en) Interrupt event processing method and device
CN113360704A (en) Voice playing method and device and electronic equipment
CN113163154B (en) Information processing method and device and electronic equipment
CN111324888B (en) Verification method and device for application program starting, electronic equipment and storage medium
CN111369295A (en) Method, device, equipment and storage medium for reporting application program effect information
CN114035933A (en) Scheduling method and device, electronic equipment 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