Activity flow processing method, device, and electronic equipment
By obtaining and generating execution configuration information, the complex website activity process is automatically executed, which solves the problem of low efficiency in executing complex activity processes in the existing technology, realizes the automation and intelligence of the process, and improves user stickiness and participation.
Patent Information
- Application Number
- CN202310202324.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-02
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2043-03-02
AI Technical Summary
Existing technologies are difficult to efficiently and accurately execute complex website activity processes, resulting in decreased user stickiness and participation.
By obtaining activity-related data, the execution configuration information is generated, and the activity process is automatically executed according to the logical relationship of the process nodes to realize the automation and intelligence of the activity process.
It improves the execution efficiency of the activity process, meets the needs of large data volumes and complex processes, and realizes the automation and intelligent execution of the activity process.
Smart Images

Figure CN116308148B
Abstract
Description
Technical Field
[0001] The present application relates to the field of network technology, and in particular to an activity flow processing method, device, and electronic device. Background Art
[0002] With the rapid development of network technology, various service websites emerge in an endless stream. During the operation of the website, it is necessary to constantly create new activities or activity patterns on user activities to improve user stickiness and attract users to participate in activities.
[0003] However, in actual applications, the activities launched by the website are of various types and the activity processes are complicated. Therefore, how to execute the activity process efficiently and accurately is a technical problem that needs to be solved urgently. Summary of the invention
[0004] In view of the above problems, the embodiments of the present application propose an activity process processing method, device, and electronic device, which can realize automated and intelligent execution of activity processes and improve the execution efficiency of activity processes.
[0005] According to one aspect of an embodiment of the present application, a method for processing an activity flow is provided, the method comprising:
[0006] Get the activity-related data corresponding to the activity to be executed;
[0007] Generate execution configuration information of the to-be-executed activity based on the activity association data, the execution configuration information including execution sequence information of the to-be-executed activity, execution sequence information of the activity flow included in the to-be-executed activity, and execution sequence information of the flow nodes included in the activity flow;
[0008] Based on the execution sequence information of the activity to be executed, the execution sequence information of the activity flow, and the execution sequence information of the flow node, the activity to be executed is executed according to the logical relationship among the activity to be executed, the activity flow included in the activity to be executed, and the flow nodes included in the activity flow.
[0009] Optionally, based on the execution sequence information of the activity to be executed, the execution sequence information of the activity flow, and the execution sequence information of the flow node, the activity to be executed is executed according to the logical relationship among the activity to be executed, the activity flow included in the activity to be executed, and the flow nodes included in the activity flow, including: determining the target activity to be executed that currently needs to be executed, the target activity flow in the target activity to be executed, and the target flow node in the target activity flow according to the execution sequence information of the activity to be executed, the execution sequence information of the activity flow, and the execution sequence information of the flow node; calling the target data script corresponding to the target flow node from the preset data script, and executing the target flow node through the target data script.
[0010] Optionally, the execution configuration information also includes the node type of the process node, and the data script corresponds to the node type; calling the target data script corresponding to the target process node from the preset data script includes: obtaining the node type of the target process node as the target node type from the execution configuration information; selecting the data script corresponding to the target node type from the data script as the target data script, and calling the target data script.
[0011] Optionally, the execution configuration information also includes the identifier of the activity to be executed and the identifier of the process node; executing the target process node through the target data script includes: obtaining script parameters corresponding to the target data script from the execution configuration information, the script parameters including the identifier of the target activity to be executed and the identifier of the target process node; inputting the script parameters into the target data script so that the target data script executes the target process node according to the script parameters.
[0012] Optionally, the target to-be-executed activity that currently needs to be executed, the target activity flow in the target to-be-executed activity, and the target flow node in the target activity flow are determined based on the execution sequence information of the to-be-executed activity, the execution sequence information of the activity flow, and the execution sequence information of the flow node, including: in response to a notification of successful execution of a target data script, the target to-be-executed activity that currently needs to be executed, the target activity flow in the target to-be-executed activity, and the target flow node in the target activity flow are determined based on the execution sequence information of the to-be-executed activity, the execution sequence information of the activity flow, and the execution sequence information of the flow node.
[0013] Optionally, the method further comprises: storing activity list data generated during the execution of the to-be-executed activity.
[0014] Optionally, the method also includes: generating activity analysis data under preset dimensions based on the activity list data; connecting the activity analysis data to a service system through a preset service method, and the preset service method includes at least one of the following: file push method, data middle platform service method, and application service method.
[0015] Optionally, generating the execution configuration information of the activity to be executed based on the activity association data includes: processing the activity association data to obtain the activity association data in a platform requirement format; and configuring the execution rules corresponding to the activity to be executed, the activity processes included in the activity to be executed, and the process nodes included in the activity process based on the activity association data in the platform requirement format to obtain the execution configuration information of the activity to be executed.
[0016] According to another aspect of an embodiment of the present application, there is provided an activity flow processing device, the device comprising:
[0017] An acquisition module, used to acquire activity-related data corresponding to the activity to be executed;
[0018] A generating module, configured to generate execution configuration information of the to-be-executed activity based on the activity association data, wherein the execution configuration information includes execution sequence information of the to-be-executed activity, execution sequence information of the activity flow included in the to-be-executed activity, and execution sequence information of the flow nodes included in the activity flow;
[0019] An execution module is used to execute the activity to be executed based on the execution sequence information of the activity to be executed, the execution sequence information of the activity flow, and the execution sequence information of the flow node, according to the logical relationship between the activity to be executed, the activity flow included in the activity to be executed, and the flow nodes included in the activity flow.
[0020] Optionally, the execution module includes: a target determination unit, which is used to determine the target to-be-executed activity that needs to be executed, the target activity process in the target to-be-executed activity, and the target process node in the target activity process according to the execution sequence information of the to-be-executed activity, the execution sequence information of the activity process, and the execution sequence information of the process node; a script execution unit, which is used to call the target data script corresponding to the target process node from a preset data script, and execute the target process node through the target data script.
[0021] Optionally, the execution configuration information also includes the node type of the process node, and the data script corresponds to the node type; the script execution unit includes: a type acquisition subunit, used to obtain the node type of the target process node as the target node type from the execution configuration information; a script selection subunit, used to select the data script corresponding to the target node type from the data script as the target data script, and call the target data script.
[0022] Optionally, the execution configuration information also includes the identifier of the activity to be executed and the identifier of the process node; the script execution unit includes: a parameter acquisition subunit, used to obtain the script parameters corresponding to the target data script from the execution configuration information, the script parameters including the identifier of the target activity to be executed and the identifier of the target process node; a parameter input subunit, used to input the script parameters into the target data script, so that the target data script executes the target process node according to the script parameters.
[0023] Optionally, the target determination unit is specifically used to respond to the notification of successful execution of the target data script, and determine the target to-be-executed activity that needs to be executed currently, the target activity process in the target to-be-executed activity, and the target process node in the target activity process according to the execution sequence information of the to-be-executed activity, the execution sequence information of the activity process, and the execution sequence information of the process node.
[0024] Optionally, the device further comprises: a storage module, configured to store activity list data generated during the execution of the to-be-executed activity.
[0025] Optionally, the device also includes: an analysis module, used to generate activity analysis data under preset dimensions based on the activity list data; an access module, used to connect the activity analysis data to a service system through a preset service method, and the preset service method includes at least one of the following: file push method, data middle platform service method, and application service method.
[0026] Optionally, the generation module includes: a data processing unit, used to process the activity-related data to obtain the activity-related data in the platform requirement format; an information configuration unit, used to configure the execution rules corresponding to the to-be-executed activity, the activity processes included in the to-be-executed activity, and the process nodes included in the activity process based on the activity-related data in the platform requirement format to obtain the execution configuration information of the to-be-executed activity.
[0027] According to another aspect of an embodiment of the present application, an electronic device is provided, comprising: one or more processors; and one or more computer-readable storage media having instructions stored thereon; when the instructions are executed by the one or more processors, the processors execute the activity flow processing method as described in any one of the above items.
[0028] According to another aspect of an embodiment of the present application, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the processor executes the activity flow processing method as described in any one of the above items.
[0029] In an embodiment of the present application, based on the activity-related data corresponding to the activity to be executed, the execution configuration information of the activity to be executed can be automatically generated, and the execution configuration information indicates the execution sequence information of the activity to be executed, the execution sequence information of the activity flow included in the activity to be executed, and the execution sequence information of the flow nodes included in the activity flow. Therefore, based on the execution sequence information of the activity to be executed, the execution sequence information of the activity flow, and the execution sequence information of the flow nodes, the activity to be executed can be automatically executed according to the logical relationship between the activity to be executed, the activity flow included in the activity to be executed, and the flow nodes included in the activity flow. By acquiring data and configuring automatic batch processing of data, basic batch logical underlying data is provided for the process, thereby realizing automated and intelligent execution of the activity flow, improving the execution efficiency of the activity flow, and being able to meet the activity flow execution requirements in cases of large data volumes, complex processes, etc. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] In order to more clearly illustrate the technical solution of the embodiment of the present application, the drawings required for use in the description of the embodiment of the present application will be briefly introduced below. Obviously, the drawings described below are only some drawings of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0031] Figure 1 It is a step flow chart of an activity process processing method in an embodiment of the present application.
[0032] Figure 2 It is a step flow chart of another activity flow processing method of an embodiment of the present application.
[0033] Figure 3 It is a schematic diagram of an activity flow processing process of an embodiment of the present application.
[0034] Figure 4 It is a structural block diagram of an activity flow processing device according to an embodiment of the present application.
[0035] Figure 5 It is a structural block diagram of another activity flow processing device according to an embodiment of the present application.
[0036] Figure 6 It is a structural schematic diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0037] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0038] Reference Figure 1 , showing a step flow chart of an activity process processing method according to an embodiment of the present application.
[0039] like Figure 1 As shown, the activity flow processing method may include the following steps:
[0040] Step 101: Acquire activity-related data corresponding to the activity to be executed.
[0041] In the embodiment of the present application, there may be one or more activities to be executed, and multiple activities to be executed may be executed automatically and intelligently. The activities to be executed may be any type of activities launched by the website.
[0042] Exemplarily, the activities to be executed may include but are not limited to: multi-band activities, A / B testing activities, task marketing activities, fission marketing activities, etc. For example, the activities to be executed may be marketing activities for financial products launched by mobile banking, and the like.
[0043] In the embodiment of the present application, activity association data corresponding to the activity to be executed may be obtained from the network, and the activity association data corresponding to the activity to be executed may be stored.
[0044] Exemplarily, the activity-related data corresponding to the pending activity may include, but is not limited to, at least one of the following: activity configuration data, behavior tracking data, market / data warehouse data, customer portrait data, big retail data, customer service center data, SMS platform data, mobile banking data, equity system data, mall / cashback data, etc. It is understandable that the activity-related data corresponding to different types of pending activities may be different, and relevant processing can be performed according to the actual situation.
[0045] Exemplarily, the access method of activity-related data corresponding to the activity to be executed may include but is not limited to at least one of the following: data synchronization, table data authorization, file processing, service interface, sqoop (sqoop is an open source tool mainly used for transferring data between Hadoop (Hive) and traditional relational databases), etc.
[0046] Step 102: Generate execution configuration information of the activity to be executed based on the activity association data.
[0047] In the embodiment of the present application, relevant logic pre-processing is performed on the activity-related data corresponding to the activity to be executed, and information such as the execution rules that the activity to be executed needs to follow when executing is analyzed, thereby generating execution configuration information of the activity to be executed.
[0048] Exemplarily, a to-be-executed activity may include at least one activity flow, and an activity flow may include at least one flow node. Therefore, executing a to-be-executed activity means executing each flow node included in the to-be-executed activity.
[0049] Exemplarily, the process of generating execution configuration information of the activity to be executed based on the activity association data may include: processing the activity association data to obtain the activity association data in the platform requirement format; configuring the execution rules corresponding to the activity to be executed, the activity processes included in the activity to be executed, and the process nodes included in the activity process based on the activity association data in the platform requirement format to obtain the execution configuration information of the activity to be executed.
[0050] Exemplarily, data processing may include but is not limited to operations such as data normalization, optimization and supplementation, etc. The platform required format may refer to a data format that the platform can recognize and process.
[0051] Exemplarily, the execution configuration information of the activity to be executed may include, but is not limited to: the execution order information of the activity to be executed, the execution order information of each activity process included in the activity to be executed, the execution order information of each process node included in the activity process, the identification of the activity to be executed, the identification of the process node, the node type of the process node, the configuration information of the process node, and the like.
[0052] The node types of the process nodes may include but are not limited to: entering the process, list screening, list splitting, list merging, diversion optimization, active reach, contact reach, standard determination, equity incentives, etc. The configuration information of the process nodes may include but is not limited to: the target user information of the process nodes, the execution rules of the process nodes, etc.
[0053] Step 103, based on the execution sequence information of the activity to be executed included in the execution configuration information, the execution sequence information of each activity flow included in the activity to be executed, and the execution sequence information of each flow node included in the activity flow, execute the activity to be executed according to the logical relationship among the activity to be executed, the activity flow included in the activity to be executed, and the flow nodes included in the activity flow.
[0054] Based on the execution sequence information of the activity to be executed, the execution sequence information of each activity flow contained in the activity to be executed, and the execution sequence information of each process node contained in the activity flow, each process node contained in the activity to be executed can be executed in sequence according to the logical relationship between the activity to be executed, the activity flow contained in the activity to be executed, and the process nodes contained in the activity flow, until the process nodes contained in the activity to be executed are completed.
[0055] In an optional implementation, step 103 may include the following steps A1 to A2:
[0056] Step A1, determine the target activity to be executed, the target activity flow in the target activity to be executed, and the target flow node in the target activity flow according to the execution sequence information of the activity to be executed, the execution sequence information of the activity flow, and the execution sequence information of the flow node.
[0057] Exemplarily, the execution sequence information may include an execution sequence number. For example, initially, the target to-be-executed activity that needs to be executed currently is the to-be-executed activity with an execution sequence number of 1, the target activity flow in the target to-be-executed activity is the activity flow with an execution sequence number of 1 in the to-be-executed activity with an execution sequence number of 1, and the target flow node in the target activity flow is the flow node with an execution sequence number of 1 under the activity flow with an execution sequence number of 1 in the to-be-executed activity with an execution sequence number of 1; after the above-mentioned flow nodes are executed, the target to-be-executed activity that needs to be executed currently is the to-be-executed activity with an execution sequence number of 1, the target activity flow in the target to-be-executed activity is the activity flow with an execution sequence number of 1 in the to-be-executed activity with an execution sequence number of 1, and the target flow node in the target activity flow is the flow node with an execution sequence number of 2 under the activity flow with an execution sequence number of 1 in the to-be-executed activity with an execution sequence number of 1; and so on.
[0058] Step A2: calling the target data script corresponding to the target process node from the preset data script, and executing the target process node through the target data script.
[0059] In an optional implementation, a data script may be set according to the node type of the process node. For example, a corresponding data script may be set for each node type. The logic of each data script does not interfere with each other, and the execution of the data script may be driven by data.
[0060] Therefore, the process of calling the target data script corresponding to the target process node from the preset data script may include: obtaining the node type of the target process node as the target node type from the execution configuration information; selecting the data script corresponding to the target node type from the data script as the target data script, and calling the target data script.
[0061] For example, data scripts can combine common functions, Python (computer programming language), and SQL (Structured Query Language) to implement business logic. Among them, Python refers to the type of computer programming language used by the data script, common functions involve operations such as character processing and function calculation in the data script, and SQL involves database-related operations in the data script. The method of writing data scripts in Python language is more convenient to implement than simply using SQL statements.
[0062] In an optional implementation, the data script may include script parameters to be input, and the execution of the data script may be driven by inputting these script parameters into the data script.
[0063] Therefore, the process of executing the target process node through the target data script may include: obtaining the script parameters corresponding to the target data script from the execution configuration information; inputting the script parameters into the target data script so that the target data script executes the target process node according to the script parameters.
[0064] Exemplarily, the script parameters corresponding to the target data script may include, but are not limited to: the identifier of the target activity to be executed and the identifier of the target process node, etc. The script parameters corresponding to the target data script may also include a date, which may be used to filter relevant data corresponding to the date during the process node execution process, and may also be used to perform analysis according to the date dimension during the subsequent data analysis process.
[0065] In an optional implementation, after the target data script is successfully executed, a target data script execution success notification may be issued. In response to the target data script execution success notification, the system will determine the target to-be-executed activity that needs to be executed, the target activity flow in the target to-be-executed activity, and the target flow node in the target activity flow according to the execution sequence information of the to-be-executed activity, the execution sequence information of the activity flow, and the execution sequence information of the flow node. After the target data script fails to execute, a target data script execution failure notification may be issued. In response to the target data script execution failure notification, the system will suspend the execution of the to-be-executed activity and issue a reminder message to remind relevant personnel to handle it.
[0066] In an embodiment of the present application, based on the activity-related data corresponding to the activity to be executed, the execution configuration information of the activity to be executed can be automatically generated, and the execution configuration information indicates the execution sequence information of the activity to be executed, the execution sequence information of the activity flow included in the activity to be executed, and the execution sequence information of the flow nodes included in the activity flow. Therefore, based on the execution sequence information of the activity to be executed, the execution sequence information of the activity flow, and the execution sequence information of the flow nodes, the activity to be executed can be automatically executed according to the logical relationship between the activity to be executed, the activity flow included in the activity to be executed, and the flow nodes included in the activity flow. By acquiring data and configuring automatic batch processing of data, basic batch logical underlying data is provided for the process, thereby realizing automated and intelligent execution of the activity flow, improving the execution efficiency of the activity flow, and being able to meet the activity flow execution requirements in cases of large data volumes, complex processes, etc.
[0067] Reference Figure 2 , showing a step flow chart of another activity process processing method according to an embodiment of the present application.
[0068] like Figure 2 As shown, the activity flow processing method may include the following steps:
[0069] Step 201: Acquire activity-related data corresponding to the activity to be executed.
[0070] Step 202: Generate execution configuration information of the activity to be executed based on the activity association data, wherein the execution configuration information includes execution sequence information of the activity to be executed, execution sequence information of the activity flow included in the activity to be executed, and execution sequence information of the flow nodes included in the activity flow.
[0071] Step 203, based on the execution sequence information of the activity to be executed, the execution sequence information of the activity flow, and the execution sequence information of the flow node, execute the activity to be executed according to the logical relationship among the activity to be executed, the activity flow included in the activity to be executed, and the flow nodes included in the activity flow, and store the activity list data generated in the process of executing the activity to be executed.
[0072] In an embodiment of the present application, relevant activity list data will be generated during the execution of the activity to be executed. Therefore, in an embodiment of the present application, the activity list data generated during the execution of the activity to be executed can be obtained and stored, thereby realizing massive data processing and storage.
[0073] Process nodes of different node types may generate different types of activity list data during execution, so these activity list data can be stored in different categories.
[0074] Exemplarily, the activity list data generated by the process node whose node type is entering the process may include but is not limited to the initialization list, etc., the activity list data generated by the process node whose node type is list screening, list splitting, list merging, and diversion optimization may include but is not limited to the activity diversion list, activity behavior list, etc., the activity list data generated by the process node whose node type is active contact may include but is not limited to the active contact list, etc., the activity list data generated by the process node whose node type is contact contact may include but is not limited to the contact contact list, etc., the activity list data generated by the process node whose node type is compliance determination may include but is not limited to the compliance determination list, etc., the activity list data generated by the process node whose node type is equity incentive may include but is not limited to the equity incentive list, etc.
[0075] Step 204: Generate activity analysis data under preset dimensions based on the activity list data.
[0076] In the embodiment of the present application, after the execution of the pending activity is completed, it is further possible to perform dimension calculations under preset dimensions based on the activity list data generated during the execution of the pending activity, the activity association data corresponding to the pending activity, the execution configuration information of the pending activity, and other data, and based on the changes in the business indicators of the customers in the activity list data during the activity period, thereby generating activity analysis data under preset dimensions and obtaining activity execution effect analysis under different dimensions. For specific dimensions and data analysis methods, relevant processing can be performed according to actual conditions, and this embodiment does not limit this.
[0077] Exemplarily, the preset dimensions may include but are not limited to: activity dimension, channel dimension, organization dimension, time dimension, etc. Activity analysis data may include but are not limited to: activity view dashboard, activity effect statistical analysis data, channel funnel analysis data, core business indicator analysis data, target achievement statistical analysis data, behavior indicator analysis data, equity report analysis data, etc.
[0078] Step 205: Connect the activity analysis data to the service system through a preset service method.
[0079] For the activity analysis data generated under the preset dimensions, these activity analysis data can be synchronized to different data components for storage, and the activity analysis data can be connected to the service system in a preset service mode.
[0080] Exemplarily, the preset service mode may include but is not limited to at least one of the following: file push mode, data middle platform service mode, application service mode, etc. The data component may include but is not limited to at least one of the following: ClickHouse (ClickHouse is an open source column storage database), Hbase (HBase is a distributed, column-oriented open source database), Hive (Hive is a data warehouse tool based on Hadoop (Hadoop is a distributed system infrastructure)), etc.
[0081] In the embodiment of the present application, by storing, analyzing, and accessing the service system for the relevant data of the activities to be performed, integrated data processing such as data access, data processing, data storage, and data push can be achieved.
[0082] Next, combine Figure 3 The activity flow processing process of the embodiment of the present application is described.
[0083] Reference Figure 3 , showing a schematic diagram of an activity flow processing process of an embodiment of the present application.
[0084] like Figure 3 As shown, the activity flow processing process can include:
[0085] (1) Access activity-related data from different data sources to the source layer, and automatically parse and store them in the corresponding Hive mapping table.
[0086] like Figure 3 As shown, data sources may include but are not limited to: activity configuration data, behavioral tracking data, market / data warehouse data, customer portrait data, big retail data, customer service center data, SMS platform data, mobile banking data, rights and interests system data, mall / cashback data, etc.
[0087] like Figure 3 As shown, the access methods may include but are not limited to: data synchronization, table data authorization, file processing, service interface, sqoop, etc.
[0088] like Figure 3 As shown, after the data is automatically parsed, different types of data are stored in the corresponding Hive mapping table, including but not limited to: activity configuration data, user / institution / product data, source list data, tracking point data, channel execution feedback data, equity reconciliation data, etc. It should be noted that in the embodiment of the present application, data can also be stored in other types of database tools, such as ClickHouse, Hbase, etc., and this embodiment does not limit this.
[0089] (2) Combine activity configuration data, user / organization / product data, source list data, tracking point data, channel execution feedback data, equity reconciliation data, etc., and perform data preprocessing in the big data component Spark (Spark is a fast and general computing engine designed for large-scale data processing) to generate execution configuration information for the activities to be executed.
[0090] like Figure 3 As shown, data preprocessing may include: activity flow node set, activity channel information, initialization list, indicator combination calculation rules, channel feedback indicator processing, behavior indicator processing, equity indicator processing, feature indicator processing, etc. Among them, activity flow node set, activity channel information, initialization list, indicator combination calculation rules refer to the execution configuration information of the activities to be executed; channel feedback indicator processing, behavior indicator processing, equity indicator processing, feature indicator processing include normalization, optimization and supplementation of indicator data and other operations.
[0091] It should be noted that in the embodiments of the present application, other types of computing engines may also be used for data preprocessing, such as Hadoop, etc., and this embodiment does not limit this.
[0092] (3) Based on the preprocessed execution configuration information, all pending activities are automatically and intelligently executed by looping through the set of pending activities → the set of single activity processes → the set of single process nodes → the single node logic execution. During the execution process, the activity list data is stored in the Hive mapping table to realize the massive processing and storage of data.
[0093] like Figure 3 As shown, the node types of the executed process nodes may include but are not limited to: entering the process, list screening, list splitting, list merging, diversion optimization, active reaching, contact reaching, compliance determination, equity incentives, etc.
[0094] In the embodiment of the present application, massive data calculation is realized by looping the set of activities to be executed, the set of activity processes, and the set of process nodes through the data script logic, combined with the data processing characteristics of the big data component Sqark and the Hive mapping table. Each data script is implemented by the technology of public function + Phthon + SQL to implement business logic. The logic of each data script does not interfere with each other, and the execution of the script is driven by data. Different activities and different process nodes realize logical processing through calls between data scripts, ensuring that each activity is logically processed by the relationship between process nodes, realizing the automated and intelligent execution of activity processes.
[0095] (4) After the execution of the activity is completed, the dimensional data is processed in the big data component Spark to obtain activity analysis data in different dimensions.
[0096] like Figure 3 As shown, the activity effect analysis under different dimensions such as activity effect statistical analysis data, channel funnel analysis data, core business indicator analysis data, target achievement statistical analysis data, behavioral indicator analysis data, and equity report analysis data can be statistically analyzed.
[0097] (5) The calculated activity data, channel push data, dimension data, etc. are synchronized to different data components respectively, and the data is provided to the external service system through different service methods.
[0098] like Figure 3 As shown in the figure, the offline channel distribution data and the rights and interests system docking data are synchronized to the Hive component, the activity query service, list query service, H5 (Hyper Text Markup Language 5, the fifth generation of hypertext markup language) / game / sampling service data are synchronized to the Hbase component, and the list data and application dimension statistical data are synchronized to the ClickHouse component.
[0099] like Figure 3 As shown, data is provided to the service system through file push, middle office service, application service and other service methods. Among them, the service system includes channels and H5, rights and interests system, marketing platform application, etc.
[0100] In the embodiments of the present application, it is possible to realize automated and intelligent execution of activity processes, handle different types of activities, realize batch calculation of massive data, and realize the integration of data access, data processing, data storage, and data push.
[0101] Reference Figure 4 , shows a structural block diagram of an activity process processing device in an embodiment of the present application.
[0102] like Figure 4As shown, the activity flow processing device may include the following modules:
[0103] The acquisition module 401 is used to acquire activity-related data corresponding to the activity to be executed.
[0104] The generation module 402 is used to generate execution configuration information of the activity to be executed based on the activity association data, wherein the execution configuration information includes execution sequence information of the activity to be executed, execution sequence information of the activity flow included in the activity to be executed, and execution sequence information of the flow nodes included in the activity flow.
[0105] The execution module 403 is used to execute the activity to be executed based on the execution sequence information of the activity to be executed, the execution sequence information of the activity flow, and the execution sequence information of the flow node, according to the logical relationship between the activity to be executed, the activity flow included in the activity to be executed, and the flow nodes included in the activity flow.
[0106] Reference Figure 5 , shows a structural block diagram of another activity process processing device according to an embodiment of the present application.
[0107] like Figure 5 As shown, the activity flow processing device may include the following modules:
[0108] The acquisition module 501 is used to acquire activity-related data corresponding to the activity to be executed.
[0109] The generation module 502 is used to generate execution configuration information of the activity to be executed based on the activity association data, wherein the execution configuration information includes execution sequence information of the activity to be executed, execution sequence information of the activity flow included in the activity to be executed, and execution sequence information of the flow nodes included in the activity flow.
[0110] The execution module 503 is used to execute the activity to be executed based on the execution sequence information of the activity to be executed, the execution sequence information of the activity flow, and the execution sequence information of the flow node, according to the logical relationship between the activity to be executed, the activity flow included in the activity to be executed, and the flow nodes included in the activity flow.
[0111] Optionally, the execution module 503 includes: a target determination unit, which is used to determine the target to-be-executed activity that needs to be executed, the target activity process in the target to-be-executed activity, and the target process node in the target activity process according to the execution sequence information of the to-be-executed activity, the execution sequence information of the activity process, and the execution sequence information of the process node; and a script execution unit, which is used to call the target data script corresponding to the target process node from a preset data script, and execute the target process node through the target data script.
[0112] Optionally, the execution configuration information also includes the node type of the process node, and the data script corresponds to the node type; the script execution unit includes: a type acquisition subunit, used to obtain the node type of the target process node as the target node type from the execution configuration information; a script selection subunit, used to select the data script corresponding to the target node type from the data script as the target data script, and call the target data script.
[0113] Optionally, the execution configuration information also includes the identifier of the activity to be executed and the identifier of the process node; the script execution unit includes: a parameter acquisition subunit, used to obtain the script parameters corresponding to the target data script from the execution configuration information, the script parameters including the identifier of the target activity to be executed and the identifier of the target process node; a parameter input subunit, used to input the script parameters into the target data script, so that the target data script executes the target process node according to the script parameters.
[0114] Optionally, the target determination unit is specifically used to respond to the notification of successful execution of the target data script, and determine the target to-be-executed activity that needs to be executed currently, the target activity process in the target to-be-executed activity, and the target process node in the target activity process according to the execution sequence information of the to-be-executed activity, the execution sequence information of the activity process, and the execution sequence information of the process node.
[0115] Optionally, the device further includes: a storage module 504, configured to store activity list data generated during the execution of the to-be-executed activity.
[0116] Optionally, the device also includes: an analysis module 505, used to generate activity analysis data under preset dimensions based on the activity list data; an access module 506, used to connect the activity analysis data to the service system through a preset service method, and the preset service method includes at least one of the following: file push method, data middle platform service method, and application service method.
[0117] Optionally, the generation module 502 includes: a data processing unit, used to process the activity-related data to obtain the activity-related data in the platform requirement format; an information configuration unit, used to configure the execution rules corresponding to the to-be-executed activity, the activity processes included in the to-be-executed activity, and the process nodes included in the activity process based on the activity-related data in the platform requirement format to obtain the execution configuration information of the to-be-executed activity.
[0118] In an embodiment of the present application, based on the activity-related data corresponding to the activity to be executed, the execution configuration information of the activity to be executed can be automatically generated, and the execution configuration information indicates the execution sequence information of the activity to be executed, the execution sequence information of the activity flow included in the activity to be executed, and the execution sequence information of the flow nodes included in the activity flow. Therefore, based on the execution sequence information of the activity to be executed, the execution sequence information of the activity flow, and the execution sequence information of the flow nodes, the activity to be executed can be automatically executed according to the logical relationship between the activity to be executed, the activity flow included in the activity to be executed, and the flow nodes included in the activity flow. By acquiring data and configuring automatic batch processing of data, basic batch logical underlying data is provided for the process, thereby realizing automated and intelligent execution of the activity flow, improving the execution efficiency of the activity flow, and being able to meet the activity flow execution requirements in cases of large data volumes, complex processes, etc.
[0119] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0120] In an embodiment of the present application, an electronic device is also provided. The electronic device may include one or more processors, and one or more computer-readable storage media storing instructions thereon, the instructions being, for example, application programs. When the instructions are executed by the one or more processors, the processors execute the activity flow processing method of any of the above embodiments.
[0121] Reference Figure 6 , shows a schematic diagram of an electronic device structure according to an embodiment of the present application. Figure 6 As shown, the electronic device includes a processor 601, a communication interface 602, a memory 603 and a communication bus 604. The processor 601, the communication interface 602 and the memory 603 communicate with each other through the communication bus 604.
[0122] The memory 603 is used to store computer programs.
[0123] The processor 601 is used to implement the activity flow processing method of any of the above embodiments when executing the program stored in the memory 603.
[0124] The communication interface 602 is used for communication between the electronic device and other devices.
[0125] The communication bus 604 mentioned above can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
[0126] The processor 601 mentioned above may include but is not limited to: a central processing unit (CPU), a network processor (NP), a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
[0127] The memory 603 mentioned above may include but is not limited to: read-only memory (ROM), random access memory (RAM), compact disc read-only memory (CD-ROM), electronic erasable programmable read-only memory (EEPROM), hard disk, floppy disk, flash memory, etc.
[0128] In an embodiment of the present application, a computer-readable storage medium is further provided, on which a computer program is stored. The program can be executed by a processor of an electronic device. When the computer program is executed by the processor, the processor executes the activity flow processing method described in any of the above embodiments.
[0129] The various embodiments in this specification are interrelated, and each embodiment is described in a progressive manner. Each embodiment focuses on the differences from other embodiments, and the same or similar parts between the various embodiments can be referenced to each other.
[0130] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.
[0131] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM, RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present application.
[0132] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
[0133] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed in the present application can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0134] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0135] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0136] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0137] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0138] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard drives, ROM, RAM, magnetic disks, or optical disks.
[0139] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. In summary, the content of this specification should not be understood as limiting the present application.
Claims
1. An activity flow processing method, characterized in that: The method comprises: Get the activity-related data corresponding to the activity to be executed; Generate execution configuration information of the to-be-executed activity based on the activity association data, the execution configuration information including execution sequence information of the to-be-executed activity, execution sequence information of the activity flow included in the to-be-executed activity, and execution sequence information of the flow nodes included in the activity flow; Based on the execution sequence information of the to-be-executed activity, the execution sequence information of the activity flow, and the execution sequence information of the flow node, the to-be-executed activity is executed according to the logical relationship among the to-be-executed activity, the activity flow included in the to-be-executed activity, and the flow nodes included in the activity flow; The step of acquiring activity association data corresponding to the activity to be executed, and generating execution configuration information of the activity to be executed based on the activity association data, includes: Connect activity-related data from different data sources to the source layer, and automatically parse them to obtain different types of data; Storing the multiple different types of data in corresponding databases; In combination with the multiple different types of data in the database, data preprocessing is performed in the big data component Spark to generate execution configuration information for the activities to be executed.
2. The method according to claim 1, characterized in that The executing the activity to be executed based on the execution sequence information of the activity to be executed, the execution sequence information of the activity flow, and the execution sequence information of the flow node according to the logical relationship among the activity to be executed, the activity flow included in the activity to be executed, and the flow nodes included in the activity flow, includes: Determine the target activity to be executed currently, the target activity flow in the target activity to be executed, and the target flow node in the target activity flow according to the execution sequence information of the activity to be executed, the execution sequence information of the activity flow, and the execution sequence information of the flow node; From the preset data script, call the target data script corresponding to the target process node, and execute the target process node through the target data script.
3. The method according to claim 2, characterized in that The execution configuration information also includes the node type of the process node, and the data script corresponds to the node type; The step of calling the target data script corresponding to the target process node from the preset data script includes: Acquire the node type of the target process node from the execution configuration information as the target node type; From the data scripts, a data script corresponding to the target node type is selected as the target data script, and the target data script is called.
4. The method according to claim 2, characterized in that: The execution configuration information also includes the identifier of the activity to be executed and the identifier of the process node; The executing the target process node through the target data script includes: Acquire script parameters corresponding to the target data script from the execution configuration information, wherein the script parameters include an identifier of the target activity to be executed and an identifier of the target process node; The script parameters are input into the target data script so that the target data script executes the target process node according to the script parameters.
5. The method according to claim 2, characterized in that: The step of determining the target activity to be executed, the target activity flow in the target activity to be executed, and the target flow node in the target activity flow that needs to be executed currently according to the execution sequence information of the activity to be executed, the execution sequence information of the activity flow, and the execution sequence information of the flow node includes: In response to the notification of successful execution of the target data script, the target to-be-executed activity that needs to be executed currently, the target activity flow in the target to-be-executed activity, and the target flow node in the target activity flow are determined based on the execution sequence information of the to-be-executed activity, the execution sequence information of the activity flow, and the execution sequence information of the flow node.
6. The method according to claim 1, characterized in that The method further comprises: The activity list data generated during the execution of the to-be-executed activity is stored.
7. The method according to claim 6, characterized in that The method further comprises: Based on the activity list data, generate activity analysis data under preset dimensions; The activity analysis data is connected to the service system through a preset service method, and the preset service method includes at least one of the following: a file push method, a data middle platform service method, and an application service method.
8. The method according to claim 1, characterized in that The generating the execution configuration information of the activity to be executed based on the activity association data includes: Processing the activity-related data to obtain the activity-related data in a format required by the platform; Based on the activity association data in the platform requirement format, the to-be-executed activity, each activity flow included in the to-be-executed activity, and the execution rules corresponding to each flow node included in the activity flow are configured to obtain the execution configuration information of the to-be-executed activity.
9. An activity flow processing device, characterized in that: The device comprises: An acquisition module, used to acquire activity-related data corresponding to the activity to be executed; A generating module, configured to generate execution configuration information of the to-be-executed activity based on the activity association data, wherein the execution configuration information includes execution sequence information of the to-be-executed activity, execution sequence information of the activity flow included in the to-be-executed activity, and execution sequence information of the flow nodes included in the activity flow; An execution module, configured to execute the activity to be executed according to the logical relationship among the activity to be executed, the activity flow included in the activity to be executed, and the flow nodes included in the activity flow, based on the execution sequence information of the activity to be executed, the execution sequence information of the activity flow, and the execution sequence information of the flow nodes; The step of acquiring activity association data corresponding to the activity to be executed, and generating execution configuration information of the activity to be executed based on the activity association data, includes: Connect activity-related data from different data sources to the source layer, and automatically parse them to obtain different types of data; Storing the multiple different types of data in corresponding databases; In combination with the multiple different types of data in the database, data preprocessing is performed in the big data component Spark to generate execution configuration information for the activities to be executed.
10. An electronic device, characterized in that: include: one or more processors; and one or more computer-readable storage media having instructions stored thereon; When the instructions are executed by the one or more processors, the processors are enabled to execute the activity flow processing method according to any one of claims 1 to 8.
Citation Information
Patent Citations
Business process management system, business process processing method, equipment and storage medium
CN113409153A
