Component-based activity configuration method, device, storage medium and program product

By receiving the target activity configuration table and building the target task tree instance, the problem that the operators cannot deploy the activity content independently is solved, and the operation personnel can adjust the activity content independently is realized, saving development resources and time.

CN119759447APending Publication Date: 2025-04-04SHENZHEN YIHAI MUTUAL ENTERTAINMENT INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411914798.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-24
Publication Date
2025-04-04

AI Technical Summary

Technical Problem

Operations personnel cannot deploy activity content independently and flexibly, which requires developers to intervene in code modification, testing and deployment, which consumes a lot of time and resources.

Method used

By receiving the target activity configuration table, building a target task tree instance based on functional components, and binding it to the client's data object, allowing operators to adjust the activity content themselves.

Benefits of technology

Operators can independently deploy and adjust activity content without the intervention of developers, saving development resources and shortening development time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119759447A_ABST
    Figure CN119759447A_ABST
Patent Text Reader

Abstract

The present application discloses a component-based activity configuration method, device, storage medium and program product, which relates to the field of computer technology. The component-based activity configuration method includes: receiving a target activity configuration table, wherein the target activity configuration table is an activity configuration table of a target activity, including functional components corresponding to the target activity; constructing a target task tree instance of the target activity based on the functional components in the target activity configuration table; receiving a request from a client for the target activity, and binding the target task tree instance to a data object of the client. This allows operators to flexibly deploy and adjust activity content without the intervention of developers, saving development resources.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a component-based activity configuration method, device, storage medium, and program product. Background Art

[0002] The activity functions in many systems are usually implemented in a hard-coded manner. The coding design is relatively fixed and it is difficult to support complex and changing operational needs.

[0003] At present, the plug-in architecture can achieve flexible functional expansion without modifying the core code of the main program to support complex and changing operational needs.

[0004] However, as an independent functional unit, a plug-in has its own code logic, data storage, and user interface. When using the plug-in architecture to update or launch new operational activities, operators cannot flexibly adjust the activity content and still need developers to intervene to modify, test, and deploy the plug-in code, which consumes a lot of time and resources.

[0005] The above contents are only used to assist in understanding the technical solution of the present application and do not constitute an admission that the above contents are prior art. Summary of the invention

[0006] The main purpose of this application is to provide a component-based activity configuration method, device, storage medium and program product, aiming to solve the technical problem that operators cannot independently and flexibly deploy activity content, wasting development resources.

[0007] To achieve the above objectives, the present application proposes a component-based activity configuration method, which is applied to an activity server. The component-based activity configuration method includes:

[0008] Receive a target activity configuration table, wherein the target activity configuration table is an activity configuration table of the target activity, including functional components corresponding to the target activity;

[0009] Based on the functional components in the target activity configuration table, construct a target task tree instance of the target activity;

[0010] Receive a request for a target activity from a client and bind the target task tree instance to a data object of the client.

[0011] In one embodiment, upon receiving a request from a client for a target activity, the step of binding the target task tree instance to a data object of the client includes:

[0012] Bind the data of the root node in the target task tree instance to the data object of the client;

[0013] If the child node of the target task tree instance meets the preset start time condition, the data and associated events of the child node are bound to the data object of the client;

[0014] If the associated event of the child node is triggered by the client, the event corresponding to the associated event of the child node is executed.

[0015] In one embodiment, if the associated event of the sub-node is triggered by the client, after the step of executing the event corresponding to the associated event of the sub-node, the method further includes:

[0016] Determine the task configuration parameters of the subnode according to the target activity configuration table;

[0017] If the task condition type in the task configuration parameters of the child node is a countable type, determining the task completion value in the task configuration parameters of the child node;

[0018] If the cumulative number of executions of the associated events of the child node reaches the task completion value, the activity progress value of the data object executing the target activity is determined.

[0019] In one embodiment, if the associated event of the sub-node is triggered by the client, after the step of executing the event corresponding to the associated event of the sub-node, the method further includes:

[0020] If there is a reward event in the task configuration parameters of the subnode, determine the reward type and reward issuance logic of the subnode;

[0021] Based on the reward type, if the cumulative number of times the associated event of the child node is executed reaches the task completion value, the reward issuance logic is executed on the data object.

[0022] In one embodiment, based on the functional components in the target activity configuration table, the step of constructing a target task tree instance of the target activity includes:

[0023] Based on the functional components in the target activity configuration table, determine the nodes in the target task tree instance and the connection relationship between the nodes;

[0024] Construct a target task tree instance based on nodes and connection relationships.

[0025] In one embodiment, after the step of constructing a target task tree instance of a target activity based on the functional components in the target activity configuration table, the step further includes:

[0026] Saving the target task tree instance of the target activity to a task tree instance set, wherein the task tree instance set is a set of all task tree instances that have been constructed;

[0027] The activity name of the target activity that received the client request;

[0028] Based on the activity name, determine a target task tree instance in the task tree instance set;

[0029] Bind the target task tree instance to the client's data object.

[0030] In addition, to achieve the above purpose, the present application also proposes a component-based activity configuration method, which includes:

[0031] Based on the task tree of the target activity, determine the functional components in the target activity, and determine the nodes and node types according to the functional components;

[0032] The node whose node type is a task node is used as a child node of the task tree, and the task configuration parameters of the child node are determined;

[0033] The node whose node type is management node is used as the root node of the task tree;

[0034] Based on the root node, the child nodes and the task configuration parameters of the child nodes, a target activity configuration table is constructed and sent to the activity server.

[0035] In addition, to achieve the above objectives, the present application also proposes a component-based activity configuration device, the device comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, the computer program being configured to implement the steps of the component-based activity configuration method as described above.

[0036] In addition, to achieve the above objectives, the present application also proposes a storage medium, which is a computer-readable storage medium, storing a computer program on the storage medium, and when the computer program is executed by a processor, the steps of the component-based activity configuration method as described above are implemented.

[0037] In addition, to achieve the above-mentioned purpose, the present application also provides a program product, which includes a computer program. When the computer program is executed by a processor, the steps of the component-based activity configuration method as described above are implemented.

[0038] The application receives a target activity configuration table, wherein the target activity configuration table is an activity configuration table of the target activity, including the functional components corresponding to the target activity; based on the functional components in the target activity configuration table, a target task tree instance of the target activity is constructed; after receiving a request from a client for the target activity, the target task tree instance is bound to a data object of the client. This allows operators to flexibly deploy and adjust the activity content according to the activity configuration table, and complete the development of activities on the activity server without the intervention of developers, thus saving development resources and shortening development time. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0040] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0041] Figure 1 A flowchart diagram of the first embodiment of the component-based activity configuration method of the present application is provided;

[0042] Figure 2 A detailed flow chart of step S20 in the first embodiment of the component-based activity configuration method of the present application;

[0043] Figure 3 A detailed flow chart of step S30 in the first embodiment of the component-based activity configuration method of the present application;

[0044] Figure 4 A flowchart diagram of a second embodiment of a component-based activity configuration method of the present application is provided;

[0045] Figure 5 A flowchart diagram of a third embodiment of a component-based activity configuration method of the present application;

[0046] Figure 6 A flowchart diagram of a fourth embodiment of a component-based activity configuration method of the present application;

[0047] Figure 7 A flowchart diagram of a fifth embodiment of the component-based activity configuration method of the present application is provided;

[0048] Figure 8 An example of a task tree for the seven-day sign-in activity task for the component-based activity configuration method of this application;

[0049] Fig. 9 An example of a task tree for the daily check-in activity task for the component-based activity configuration approach for this application;

[0050] Fig.10 A flowchart of a component-based activity configuration method for this application;

[0051] Fig.11 Schematic diagram of the device structure of the hardware operating environment involved in the component-based activity configuration method in the embodiment of the present application.

[0052] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0053] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.

[0054] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.

[0055] The activity functions in many systems are usually implemented in a hard-coded manner, and the coding design is relatively fixed, which makes it difficult to support complex and changing operational needs. At present, the plug-in architecture can achieve flexible functional expansion to support complex and changing operational needs without modifying the core code of the main program. However, as an independent functional unit, the plug-in has its own code logic, data storage and user interface. When using the plug-in architecture to update or launch new operational activities, operators cannot flexibly adjust the activity content. Developers are still required to intervene to modify, test and deploy the plug-in code, which consumes a lot of time and resources.

[0056] In response to the above problems, the main solution of the present application is: receiving a target activity configuration table, wherein the target activity configuration table is an activity configuration table of the target activity, including functional components corresponding to the target activity; based on the functional components in the target activity configuration table, constructing a target task tree instance of the target activity; receiving a request from the client for the target activity, binding the target task tree instance to the client's data object.

[0057] The solution of the present application designs a component-based activity configuration method, so that operators can design activity content based on activity configuration templates and generate activity configuration tables, so that the activity server can implement corresponding activity functions according to the activity configuration tables, and operators can flexibly deploy and adjust activity content without the intervention of developers, thereby saving development resources and shortening development time.

[0058] It should be noted that the execution subject of this embodiment may be a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic device capable of realizing the above functions, an activity system, etc. The following takes the activity system as an example to illustrate this embodiment and the following embodiments.

[0059] It should be noted that the activity system includes an activity server and a client.

[0060] Based on this, the embodiment of the present application provides a component-based activity configuration method, referring to Figure 1 , Figure 1 This is a flowchart of the first embodiment of the component-based activity configuration method of the present application.

[0061] In this embodiment, the component-based activity configuration method includes steps S10 to S30:

[0062] Step S10: receiving a target activity configuration table, wherein the target activity configuration table is an activity configuration table of the target activity, including functional components corresponding to the target activity.

[0063] It should be noted that the activity configuration table is a design table for the activity, which contains the activity name, node name of each task node in the activity, parent node name, node type, task condition type, task completion value, reward type, reward distribution logic, start time, etc. It is a tool for planning, organizing and recording activity-related information.

[0064] A target activity is an activity designed by operations personnel based on operational needs and intended to be launched. For example, in a game, in order to increase the player online rate, a seven-day sign-in task is planned to be implemented, and the seven-day sign-in task can be used as a target activity.

[0065] Functional components represent different functional modules of an activity. Each node belongs to a functional component. The type of the functional component is represented as the node type of the node in the activity configuration table.

[0066] Refer to Table 1 for an example of activity configuration for a seven-day sign-in task, as shown in the following table:

[0067]

[0068]

[0069] Table 1

[0070] In a feasible implementation manner, the activity server receives the target activity configuration table through a network protocol, and performs format conversion on the target activity configuration table.

[0071] In this embodiment, the activity server receives the target activity configuration table in XLS format via HTTP (Hypertext Transfer Protocol), and converts the target activity configuration table into JSON (JavaScript Object Notation) format, so that the activity server can store and obtain data more conveniently.

[0072] Step S20, constructing a target task tree instance of the target activity based on the functional components in the target activity configuration table.

[0073] It should be noted that the target task tree instance is a tree-shaped storage data configured on the activity server according to the target activity configuration table, and is used to store the data of each node on the target activity configuration table in a tree node format.

[0074] In this embodiment, in order to implement a seven-day sign-in task, referring to Table 1, the node whose node type is an active component is used as the root node of the task tree instance of the seven-day sign-in task, and the node whose node type is a hierarchical component is used as the child node of the root node, that is, the secondary root node, and the node whose node type is a task component is used as the child node of the secondary root node. It can be seen from Table 1 that there are 7 parallel child nodes under the secondary root node. From this, it can be known that the connection relationship between the nodes in the task tree instance, and the data of each node can be obtained to complete the construction of the task tree instance.

[0075] Further, see Figure 2 , step S20 includes steps S21-S22:

[0076] Step S21, based on the functional components in the target activity configuration table, determine the nodes in the target task tree instance and the connection relationship between the nodes.

[0077] It should be noted that the parent node is the parent node of the current node. Each node under the same activity has a unique node name, so the node name can be used as the unique identifier of the node under the current activity.

[0078] In this embodiment, the target task is a seven-day sign-in task. The target activity configuration table can refer to Table 1. According to the activity configuration table of the seven-day sign-in task, the node name and parent node name of each node are determined to know the connection relationship between each node, thereby determining the connection relationship between each node in the task tree instance corresponding to the seven-day sign-in task.

[0079] Step S22, constructing a target task tree instance based on the nodes and connection relationships.

[0080] In this embodiment, referring to Table 1, each row of data represents a node. After the connection relationship between each node is obtained in step S22, each row of data in the target activity configuration table can be connected in series in a tree structure according to the connection relationship, thereby constructing a target task tree instance.

[0081] Step S30, receiving a request from the client for the target activity, and binding the target task tree instance to the data object of the client.

[0082] In this embodiment, there is an activity visualization interface on the client. When the client clicks the activity icon on the visualization interface, a request is sent to the activity server to inform the activity server of the specific activity that the user wishes to start. This request usually contains identification information of the activity, such as the activity name, which is used by the server to accurately identify the activity to be started. The activity server will find the corresponding target task tree instance based on the received activity name, and bind the target task tree instance to the data object of the client that sent the request to complete the data object's request for the target activity.

[0083] Further, see Figure 3 , step S30 includes steps S31 to S33:

[0084] Step S31, binding the data of the root node in the target task tree instance to the data object of the client.

[0085] It should be noted that the root node is often used as a representative of a data tree. Once the root node is obtained, the data of the child nodes can be obtained based on the connection relationship between the nodes.

[0086] In a feasible implementation, if the target activity reaches the start time, the start function on the root node of the target task tree instance will be triggered, and the data of the root node of the target task tree instance will be bound to the data object of the client.

[0087] In this embodiment, the target activity is an experience achievement reward activity. When the data object is registered for one hundred days, the start function of the root node of the target activity reaches the trigger condition, and the data of the root node of the target activity will be bound to the data object.

[0088] Step S32: If the child node of the target task tree instance meets the preset start time condition, the data and associated events of the child node are bound to the data object of the client.

[0089] It should be noted that the start time condition may be a time-based start time condition, for example, based on user registration time, based on world time, based on parent node start time, and based on parent node completion time.

[0090] In addition, related events can be data updates and modifications. For example, when the seven-day sign-in task is completed, the corresponding task progress value will be changed to 100%. It can also be an interface display change. For example, when the "Login Successful" node is triggered, the corresponding login interface containing the user input box and password input box will be hidden. It can also be the activation of animations and visual effects. For example, when a game character is upgraded, a circle of light effects will be displayed around the character.

[0091] In a feasible implementation manner, if the child node reaches the start time, the associated event corresponding to the child node is bound to the data object and the operation behavior of the data object is monitored.

[0092] In this embodiment, the target activity is a seven-day sign-in activity, and the sub-nodes of the target activity are 7 parallel daily sign-in tasks. The sub-tasks corresponding to the first day will be started on the first day after the target activity is started, and their corresponding related events will be bound to the data object. The sub-tasks corresponding to the third day will be started on the third day after the target activity is started, and their corresponding related events will be bound to the data object. This mechanism of starting sub-nodes based on the start time can make the design of activity tasks more diversified.

[0093] Step S33: if the associated event of the child node is triggered by the client, then the event corresponding to the associated event of the child node is executed.

[0094] In this embodiment, the target activity is a seven-day sign-in activity, and the sub-node corresponding to the sign-in on the seventh day will be associated with a reward. After the data object completes the seven-day sign-in, the associated event of the sub-node of the sign-in on the seventh day will be triggered, and the data object will receive the reward corresponding to the associated event to increase the richness of the activity.

[0095] This embodiment is implemented based on the first embodiment. In the second embodiment of the present application, refer to Figure 4 After step S33, the component-based activity configuration method further includes steps A01 to A03:

[0096] Step A01, determining the task configuration parameters of the subnode according to the target activity configuration table.

[0097] It should be noted that the task configuration parameters are the parameters configured by the child node to implement the corresponding activity. The task configuration parameters specify the task implementation logic of the child node, such as the task condition type and task completion value corresponding to the node whose node type is the task component in Table 1.

[0098] Step A02: If the task condition type in the task configuration parameters of the subnode is a countable type, determine the task completion value in the task configuration parameters of the subnode.

[0099] It should be noted that the task configuration parameters include task condition type and task completion value. When the task condition type is a countable type, it means that the number of executions of the task corresponding to the subnode can be calculated. The value of the task completion value is a positive integer. If the cumulative number of executions of the task corresponding to the subnode reaches the task completion value, the subnode task can be ended.

[0100] Step A03: If the accumulated execution times of the associated events of the child node reaches the task completion value, the activity progress value of the data object executing the target activity is determined.

[0101] It should be noted that the activity progress value is the completion progress value of the data object in the corresponding activity. After each subtask is completed, the activity progress value of the data object corresponding to the activity will be updated.

[0102] In this embodiment, the target activity is a seven-day sign-in activity, and the sub-nodes are 7 parallel daily sign-in tasks. Each sub-node is a countable type, and the task completion value is 1. Each sub-node task reaches the task completion value after being executed once, and the activity progress value is 7. If the data object signs in for 3 days, the activity progress value is 3 / 7, so as to visualize the progress of the data object in the target activity.

[0103] This embodiment is implemented based on the first embodiment. In the third embodiment of the present application, refer to Figure 5 , after step S33 of the component-based activity configuration method, the method further includes steps B01 to B02:

[0104] Step B01, if there is a reward event in the task configuration parameters of the subnode, determine the reward type and reward distribution logic of the subnode.

[0105] It should be noted that the task configuration parameters include reward type and reward issuance logic, where the reward type can be a single reward or a multiple-choice reward, and the reward issuance logic refers to the reward field corresponding to the reward.

[0106] In addition, the reward event defaults to a null value, that is, not configured. When a reward event is not configured, the corresponding child node will not have a reward event.

[0107] Step B02, based on the reward type, if the cumulative number of times the associated event of the child node is executed reaches the task completion value, the reward issuance logic is executed on the data object.

[0108] In this embodiment, in the game scenario, the cumulative number of times the associated event of the subnode is executed reaches the task completion value, and the subnode task is completed. The activity server will obtain the activity name to which the subnode belongs and the node name of the subnode, and according to the reward type and reward distribution logic of the subnode, call the reward distribution interface of the game server to distribute the task reward to the data object that completes the subnode task.

[0109] This embodiment is implemented based on the first embodiment. In the fourth embodiment of the present application, refer to Figure 6 , after step S20 of the component-based activity configuration method, the method further includes steps C01 to C04:

[0110] Step C01, saving the target task tree instance of the target activity to a task tree instance set, wherein the task tree instance set is a set of all task tree instances that have been constructed.

[0111] It should be noted that the task tree instance set is a set of task tree instances corresponding to all activities that have been created in the activity server. Each task tree instance represents an activity, and each activity has its corresponding activity name, which serves as the unique identifier of the activity among all activities.

[0112] Step C02: receiving the activity name of the target activity requested by the client.

[0113] It should be noted that the activity name can be used as a unique identifier for the activity.

[0114] In a feasible implementation manner, the activity server receives a request for a target activity from a client via a network protocol, and obtains the activity name of the target activity from the request data.

[0115] In this embodiment, the activity server receives a request for a target activity from a client via the HTTP protocol, uses middleware to parse the request body of the request, and extracts the value corresponding to the activity name field in the request body through a function, so that the activity server can accurately respond to the client's request for the target activity.

[0116] Step C03, based on the activity name, determine the target task tree instance in the task tree instance set.

[0117] In a feasible implementation, the root nodes of all task tree instances can be put into a queue, and the activity server loops to take out the first node of the queue, checks whether the activity name corresponding to the first node of the queue is the activity name of the target activity, and then finds the target task tree instance.

[0118] In this embodiment, the root nodes of all task tree instances are stored in a queue, and the activity server loops to take out the head node and obtains the activity name of the head node. If the activity name of the head node is not the activity name of the target activity, the tree corresponding to the head node is placed at the end of the queue, and this step is repeated until the target task tree instance corresponding to the target activity is found, and the task tree instance corresponding to the activity name of the target activity at the head node is used as the target task tree instance.

[0119] Step C04, binding the target task tree instance to the data object of the client.

[0120] The method steps described in step S30 are not repeated here.

[0121] The present application embodiment provides a component-based activity configuration method. In the fifth embodiment of the present application, refer to Figure 7 , Figure 7 This is a flowchart of the fifth embodiment of the component-based activity configuration method of the present application.

[0122] In this embodiment, the component-based activity configuration method includes steps D10 to D40:

[0123] Step D10, based on the task tree of the target activity, determine the functional components in the target activity, and determine each node and node type according to the functional components.

[0124] It should be noted that the node types include management nodes and task nodes. The management node is a node used to manage task nodes, and the task node is a node that executes specific tasks.

[0125] In one possible implementation, refer to Figure 8 , which is an example of the task tree for the seven-day sign-in activity task. According to the task tree, it can be determined that there are activity components, hierarchical components and task components in the seven-day sign-in activity. Among them, both activity components and hierarchical components belong to management nodes, activity components are the parent nodes of hierarchical components, and task components are task nodes, which are used to execute specific activity content in the seven-day sign-in activity task.

[0126] In another possible implementation, referring to Fig. 9 , is an example of a task tree for a daily sign-in activity task. According to the task tree, it can be determined that there are activity components, daily reset sub-node components and task components in the daily sign-in activity. Among them, the activity component and the daily reset sub-node component both belong to management nodes, and the task component is a task node, which is used to execute the specific activity content in the daily sign-in activity task. If the daily sign-in activity task is designed after the seven-day sign-in activity task, the activity component and task component in the seven-day sign-in activity task can be reused to design the daily sign-in activity task.

[0127] Step D20, taking the node whose node type is the task node as the child node of the task tree, and determining the task configuration parameters of the child node.

[0128] In this embodiment, the sub-node described in step D10 is used to execute specific activity content in the task, so the task configuration parameters of the sub-node are determined according to the specific activity content that the sub-node needs to execute, where the task configuration parameters include task condition type, task completion value, reward type, reward distribution logic, start time, etc.

[0129] Step D30: Use the node whose node type is management node as the root node of the task tree.

[0130] In this embodiment, the management node described in step D10 is used to manage the task node, so the task node is regarded as a child node of the task tree, and the management node is regarded as the root node of the task tree, so that the data of the target activity is stored in a tree format to facilitate the management and configuration of the activity.

[0131] Step D40: construct a target activity configuration table based on the root node, the child nodes and the task configuration parameters of the child nodes, and send the target activity configuration table to the activity server.

[0132] It should be noted that the activity configuration template is a template table that only contains parameter names, which is used to inform the designer of the parameter types that need to be configured when designing an activity.

[0133] In this embodiment, referring to Table 2, which is an example of an activity configuration template, the node type of the root node, the node type of the child node, and the task configuration parameters of the seven-day sign-in task activity are filled into the activity configuration template to obtain the target activity configuration table of the seven-day sign-in activity as shown in Table 1, and the target activity configuration table is sent to the activity server through the communication protocol.

[0134]

[0135]

[0136] Table 2

[0137] For example, to help understand the implementation process of the component-based activity configuration method obtained by combining this embodiment with the above-mentioned embodiment 1, please refer to Fig.10 , Fig.10 A brief flowchart of a component-based activity configuration method is provided, specifically:

[0138] The design side designs an activity configuration table based on the activity task tree, and sends the activity configuration table to the activity server. After receiving the activity configuration table, the activity server will build a task tree instance based on the activity configuration table, and then bind the task tree instance to the client object of the client so that the client object can participate in the activity. At the same time, the operation of the client object in the activity will also trigger the activity server to perform corresponding operations.

[0139] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the component-based activity configuration method of the present application. More simple transformations based on this technical concept are all within the protection scope of the present application.

[0140] The present application provides a component-based activity configuration device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the component-based activity configuration method in the above-mentioned embodiment 1.

[0141] Reference below Fig.11, which shows a schematic diagram of a component-based activity configuration device suitable for implementing an embodiment of the present application. The component-based activity configuration device in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Fig.11 The component-based activity configuration device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0142] like Fig.11 As shown, the component-based active configuration device may include a processing device 1001 (e.g., a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the component-based active configuration device are also stored. The processing device 1001, ROM1002, and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the component-based active configuration device to communicate with other devices wirelessly or wired to exchange data. Although the figure shows a component-based active configuration device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or have alternatively.

[0143] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.

[0144] The component-based activity configuration device provided by the present application adopts the component-based activity configuration method in the above embodiment, which can solve the technical problem that operators cannot flexibly deploy activity content independently and waste development resources. Compared with the prior art, the beneficial effects of the component-based activity configuration device provided by the present application are the same as the beneficial effects of the component-based activity configuration method provided by the above embodiment, and other technical features in the component-based activity configuration device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.

[0145] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.

[0146] The above are only specific implementations 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. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

[0147] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the component-based activity configuration method in the above-mentioned embodiment.

[0148] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.

[0149] The computer-readable storage medium may be included in the component-based activity configuration device; or may exist independently without being assembled into the component-based activity configuration device.

[0150] The above-mentioned computer-readable storage medium carries one or more programs. When the above-mentioned one or more programs are executed by a component-based activity configuration device, the component-based activity configuration device: receives a target activity configuration table, wherein the target activity configuration table is an activity configuration table of a target activity, including functional components corresponding to the target activity; constructs a target task tree instance of the target activity based on the functional components in the target activity configuration table; receives a request from a client for the target activity, and binds the target task tree instance to a data object of the client.

[0151] Computer program code for performing the operations of the present application may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a 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 may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0152] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0153] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.

[0154] The readable storage medium provided by the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned component-based activity configuration method, and can solve the technical problem that operators cannot independently and flexibly deploy activity content, wasting development resources. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as the beneficial effects of the component-based activity configuration method provided by the above-mentioned embodiment, and will not be repeated here.

[0155] The present application also provides a program product, including a computer program, which implements the steps of the component-based activity configuration method as described above when the computer program is executed by a processor.

[0156] The computer program product provided by this application can solve the technical problem that operators cannot flexibly deploy activity content independently, which wastes development resources. Compared with the prior art, the beneficial effects of the computer program product provided by this application are the same as the beneficial effects of the component-based activity configuration method provided by the above embodiment, which will not be repeated here.

[0157] The above are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect application in other related technical fields are included in the patent protection scope of the present application.

Claims

1. A component-based activity configuration method, characterized in that: Applied to an activity server, the component-based activity configuration method includes: Receive a target activity configuration table, wherein the target activity configuration table is an activity configuration table of the target activity, including functional components corresponding to the target activity; Based on the functional components in the target activity configuration table, construct a target task tree instance of the target activity; A request for the target activity from a client is received, and the target task tree instance is bound to a data object of the client.

2. The component-based activity configuration method according to claim 1, characterized in that: The step of receiving a request from a client for the target activity and binding the target task tree instance to a data object of the client comprises: Binding the data of the root node in the target task tree instance to the data object of the client; If the child node of the target task tree instance meets the preset start time condition, the data and associated events of the child node are bound to the data object of the client; If the associated event of the sub-node is triggered by the client, an event corresponding to the associated event of the sub-node is executed.

3. The component-based activity configuration method according to claim 2, characterized in that: After the step of executing the event corresponding to the associated event of the sub-node if the associated event of the sub-node is triggered by the client, the method further includes: Determine the task configuration parameters of the subnode according to the target activity configuration table; If the task condition type in the task configuration parameters of the subnode is a countable type, determining the task completion value in the task configuration parameters of the subnode; If the accumulated execution times of the associated events of the child node reaches the task completion value, the activity progress value of the data object executing the target activity is determined.

4. The component-based activity configuration method according to claim 3, characterized in that: After the step of executing the event corresponding to the associated event of the sub-node if the associated event of the sub-node is triggered by the client, the method further includes: If there is a reward event in the task configuration parameters of the subnode, determine the reward type and reward issuance logic of the subnode; Based on the reward type, if the cumulative number of times the associated event of the subnode is executed reaches the task completion value, the reward issuance logic is executed on the data object.

5. The component-based activity configuration method according to claim 1, characterized in that: The step of constructing a target task tree instance of the target activity based on the functional components in the target activity configuration table comprises: Determine the nodes in the target task tree instance and the connection relationship between the nodes based on the functional components in the target activity configuration table; Based on the nodes and the connection relationships, the target task tree instance is constructed.

6. The component-based activity configuration method according to claim 1, characterized in that: After the step of constructing the target task tree instance of the target activity based on the functional components in the target activity configuration table, the step further includes: Saving the target task tree instance of the target activity to a task tree instance set, wherein the task tree instance set is a set of all task tree instances that have been constructed; receiving the activity name of the target activity requested by the client; Based on the activity name, determining the target task tree instance in the task tree instance set; The target task tree instance is bound to the data object of the client.

7. A component-based activity configuration method, characterized in that: Applied to the design side, the component-based activity configuration method includes: Based on the task tree of the target activity, determine the functional components in the target activity, and determine each node and node type according to the functional components; Taking a node whose node type is a task node as a child node of the task tree, and determining a task configuration parameter of the child node; Using a node whose node type is a management node as the root node of the task tree; A target activity configuration table is constructed based on the root node, the child node and the task configuration parameters of the child node, and the target activity configuration table is sent to the activity server.

8. A component-based activity configuration device, characterized in that: The device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the component-based activity configuration method according to any one of claims 1 to 7.

9. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the component-based activity configuration method according to any one of claims 1 to 7 are implemented.

10. A program product, characterized in that The program product comprises a computer program, and when the computer program is executed by a processor, the steps of the component-based activity configuration method according to any one of claims 1 to 7 are implemented.