DSL (Digital Subscriber Line)-based interactive activity generation method, device and processor

Defining the interactive activity process through DSL templates and receiving user parameters to generate configuration files, the problem of inefficient interactive activity development is solved, efficient and flexible activity generation and update are achieved, and communication costs and resource waste are reduced.

CN120508279AActive Publication Date: 2025-08-19XIAMEN NANXUN CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202510620060.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-14
Publication Date
2025-08-19
Estimated Expiration
2045-05-14

AI Technical Summary

Technical Problem

The existing technology has long development cycle and low efficiency in the development of interactive activities, unable to support the dynamic expression of complex activity logic, insufficient flexibility, and relying on professional and technical personnel to lead to high communication and collaboration costs and serious waste of resources.

Method used

The DSL-based interactive activity generation method is adopted to define the complete process of interactive activities through DSL templates, receive parameters input from users to generate configuration files, and perform compliance verification and instantiation, which supports non-technical personnel to participate in configuration, and realize dynamic updates and automation processes of activity functions.

Benefits of technology

It significantly improves the efficiency of building interactive activities, reduces the cost of communication and collaboration and resource waste, supports high-frequency and diversified activities, and improves the flexibility and security of activity construction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120508279A_ABST
    Figure CN120508279A_ABST
Patent Text Reader

Abstract

The invention discloses a DSL (Digital Subscriber Line)-based interactive activity generation method, a DSL-based interactive activity generation device and a processor. In the scheme, an interactive activity creation instruction is received, and the instruction comprises unique identification information of a DSL template selected by a first user; calling a DSL template based on the unique identification information, and generating a template configuration interface; in response to a parameter input operation of a first user in the template configuration interface, replacing placeholders corresponding to the key configuration dimensions in the DSL template with activity parameters input by the first user, and generating a DSL configuration file; and if it is determined that the DSL configuration file is the compliance configuration file, instantiating the DSL configuration file to generate an interactive activity instance. According to the technical scheme, the predefined DSL template is adopted to directly generate the interactive activity instance, the underlying code development workload is greatly reduced, the construction efficiency of the interactive activity is remarkably improved, the construction cost is reduced, and therefore the high-frequency and diversified activity requirements are efficiently met.
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 method, device, and processor for generating interactive activities based on DSL. Background Art

[0002] With the rapid growth of businesses, the number of interactive activity scenarios and types is increasing, and interactive activity R&D faces a wide range of activity requirements. Currently, interactive activity development (such as gaming, marketing, and online operations) generally adopts a traditional hard-coded model. This means that developers need to write a large amount of code to implement the activity logic and interface layout according to the specific requirements of each interactive activity function.

[0003] However, the traditional hard-coding model for developing interactive activities has a long development cycle and low development efficiency, as the activity rules, process logic and reward mechanism must be coded line by line. It cannot support the dynamic expression of complex activity logic (such as conditional branching, rule nesting, real-time status feedback, etc.), making it difficult to quickly respond to high-frequency and diverse activity needs. Moreover, since any adjustment of activity functions requires modifying the underlying code, it not only cannot support the dynamic update of activity functions, but also easily increases the risk of code logic errors, resulting in insufficient flexibility.

[0004] In addition, the traditional hard-coding model is used to develop interactive activities. Since similar activity functions need to be developed repeatedly, it is easy to cause high code redundancy and difficulty in abstract reuse across activity modules, which leads to waste of resources. The entire development process relies on professional development technicians, and non-technical personnel cannot directly participate in activity configuration, resulting in a clear gap between demand communication and implementation, which increases the cost of communication and collaboration.

[0005] Therefore, there is an urgent need for a more efficient interactive activity generation method to reduce the workload of underlying code development and efficiently meet the high-frequency and diversified activity business needs. Summary of the Invention

[0006] Based on the above problems, this application provides a DSL-based interactive activity generation method, device and processor, with the aim of reducing the workload of underlying code development, improving the efficiency and cost of building interactive activities, and efficiently meeting high-frequency and diversified activity business needs.

[0007] The embodiments of this application disclose the following technical solutions:

[0008] In a first aspect of the present application, a method for generating an interactive activity based on a DSL is provided, the method comprising:

[0009] receiving an interactive activity creation instruction; the interactive activity creation instruction carries unique identification information of a DSL template selected by the first user; the DSL template is used to define a complete process from configuration to execution of the interactive activity through multiple key configuration dimensions structured by the DSL;

[0010] Calling the DSL template based on the unique identification information and generating a template configuration interface;

[0011] In response to the parameter input operation of the first user in the template configuration interface, replacing the placeholders corresponding to the key configuration dimensions in the DSL template with the activity parameters input by the first user, and generating a DSL configuration file;

[0012] If it is determined that the DSL configuration file is a compliant configuration file, instantiation processing is performed on the DSL configuration file to generate an interactive activity instance; the instantiation processing is used to configure the DSL configuration file as an executable interactive activity.

[0013] In an optional implementation, if it is determined that the DSL configuration file is a compliant configuration file, instantiating the DSL configuration file to generate an interactive activity instance includes:

[0014] Performing syntax verification on the DSL configuration file to obtain a verification result;

[0015] Determining whether the DSL configuration file is the compliant configuration file based on the verification result;

[0016] If the DSL configuration file is a non-compliant configuration file, prohibiting the instantiation process on the DSL configuration file;

[0017] If the DSL configuration file is the compliant configuration file, the instantiation process is performed on the DSL configuration file to obtain the interactive activity instance.

[0018] In an optional implementation, before receiving the interactive activity creation instruction, the method further includes:

[0019] Acquire activity data corresponding to each of a plurality of historical interactive activities; the plurality of historical interactive activities include different types of interactive activities;

[0020] Extracting common activity elements from each of the activity data and converting the common activity elements into a DSL language structure; the common activity elements are activity elements that appear repeatedly in multiple historical interactive activities;

[0021] Defining basic information of the interactive activity based on the converted common activity elements, and setting context variables of the interactive activity based on the basic information; the context variables are data items in the DSL language structure that are used to bind data items that change according to the environment state during runtime;

[0022] Creating multiple activity judgment conditions and multiple activity-related actions based on the context variables;

[0023] Combining the activity judgment conditions and the activity-related actions based on preset logical operators to generate multiple rule chains;

[0024] A DSL template corresponding to each rule chain is constructed according to the rule chain.

[0025] In an optional implementation, constructing a DSL template corresponding to each rule chain according to the rule chain includes:

[0026] Setting an event-driven rule corresponding to each rule chain based on the rule chain; the event-driven rule is a rule that verifies the current environment state through the activity judgment condition and executes the corresponding activity-related action when the target event is triggered;

[0027] Based on each of the rule chains and the event-driven rules corresponding to the rule chains, a DSL template corresponding to the rule chains is constructed.

[0028] In an optional implementation, extracting common activity elements from each of the activity data includes:

[0029] Performing demand analysis on each of the activity data to obtain a plurality of high-frequency activity elements corresponding to each of the historical interactive activities; the high-frequency activity elements are elements that appear in the historical interactive activities at a frequency greater than a preset frequency;

[0030] The common activity elements are extracted from the high-frequency activity elements corresponding to the plurality of historical interactive activities.

[0031] In an optional implementation, after generating the interactive activity instance, the method further includes:

[0032] receiving an interactive activity access request from a second user; the interactive activity access request including user information of the second user and identification information of an interactive activity to be accessed by the second user;

[0033] Detecting whether there is an interactive activity instance corresponding to the interactive activity in a memory database based on the identification information;

[0034] If the interactive activity instance corresponding to the interactive activity does not exist in the in-memory database, the interactive activity instance is loaded from the relational database according to the identification information, and the interactive activity instance is pre-parsed to convert the interactive activity instance into a directed acyclic graph or a state machine model to obtain a converted interactive activity instance; the converted interactive activity instance is stored in the in-memory database; the nodes in the directed acyclic graph are used to represent activity judgment conditions or activity-related actions, and the edges in the directed acyclic graph are used to represent the execution order of the activity judgment conditions or the activity-related actions; the state machine model is used to structure the activity judgment conditions and the activity-related actions into an executable process;

[0035] If an interactive activity instance corresponding to the interactive activity exists in the memory database, an interactive activity interaction page is created based on the interactive activity instance.

[0036] In an optional implementation, after creating an interactive activity interaction page based on the interactive activity instance, the method further includes:

[0037] In response to a target operation of the second user on the interactive activity interaction page, verifying whether the second user is eligible to participate in the interactive activity based on the user information;

[0038] If it is verified that the second user has the participation qualification, executing the activity judgment condition and activity-related action corresponding to the interactive activity to obtain an execution result;

[0039] Feedback the execution result to the second user.

[0040] In a second aspect of the present application, a DSL-based interactive activity generation device is provided, the device comprising:

[0041] A receiving module is configured to receive an interactive activity creation instruction; the interactive activity creation instruction carries unique identification information of a DSL template selected by the first user; the DSL template is configured to define a complete process from configuration to execution of the interactive activity through multiple key configuration dimensions structured by the DSL;

[0042] A template calling module, configured to call the DSL template based on the unique identification information and generate a template configuration interface;

[0043] an operation response module, configured to, in response to the parameter input operation of the first user in the template configuration interface, replace the placeholders corresponding to the key configuration dimensions in the DSL template with the activity parameters input by the first user, and generate a DSL configuration file;

[0044] A generating module is configured to instantiate the DSL configuration file to generate an interactive activity instance if it is determined that the DSL configuration file is a compliant configuration file; the instantiation process is used to configure the DSL configuration file as an executable interactive activity.

[0045] In a third aspect of the present application, a computer-readable storage medium is provided, in which a computer program is stored. When the computer program is executed by a processor, the above-mentioned DSL-based interactive activity generation method is implemented.

[0046] In a fourth aspect of the present application, a processor is provided for running a computer program, which executes the above-mentioned DSL-based interactive activity generation method when the computer program is running.

[0047] Compared with the existing technology, this application has the following beneficial effects:

[0048] In the technical solution of this application, an interactive activity creation instruction carrying the unique identification information of a DSL template selected by a first user is first received. Since the DSL template can be used to define the complete process of interactive activities from configuration to execution through multiple key configuration dimensions structured by the DSL, the predefined DSL template can be quickly located and called based on the unique identification information, and the template configuration interface can be generated. This eliminates the need to write a large amount of code to implement the logical framework of the interactive activity and the layout of the configuration interface, significantly improving the efficiency of building interactive activities.

[0049] Secondly, by responding to the parameter input operation of the first user in the template configuration interface, the placeholders corresponding to each key configuration dimension in the DSL template are replaced with the activity parameters input by the first user. The DSL configuration file required to generate the interactive activity instance can be obtained without relying on professional R&D technicians, so that non-technical personnel can directly participate in the configuration of interactive activities, reducing the communication and collaboration costs of building interactive activities; after passing the compliance verification (that is, determining that the DSL configuration file is a compliant configuration file), the DSL configuration file can be directly instantiated into an executable interactive activity, realizing the automated process from configuration to generation of interactive activities, greatly reducing the workload of underlying code development, significantly improving the construction efficiency of interactive activities, and reducing construction costs, thereby efficiently meeting high-frequency and diversified activity business needs.

[0050] In addition, the technical solution of the present application uses predefined DSL templates to directly generate interactive activity instances, eliminating the need to repeatedly develop similar types of activity functions, reducing resource waste, and further reducing the cost of building interactive activities; the predefined DSL templates in the technical solution of the present application support the dynamic expression of complex activity logic and support the dynamic update of activity functions. The adjustment of activity functions does not require changing the underlying code, thereby improving the flexibility of interactive activity construction and reducing the risk of code logic errors caused by code modifications. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0052] Figure 1 A flowchart of a DSL-based interactive activity generation method provided in an embodiment of the present application;

[0053] Figure 2 A flowchart of another DSL-based interactive activity generation method provided in an embodiment of the present application;

[0054] Figure 3 A flowchart of a DSL template construction process provided in an embodiment of the present application;

[0055] Figure 4 A flowchart of the process of creating an interactive page for an interactive activity and user interaction provided in an embodiment of the present application;

[0056] Figure 5 A schematic diagram of the structure of a DSL-based interactive activity generation device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0057] As previously described, current interactive activity development generally utilizes a traditional hard-coded model, requiring developers to write extensive code to implement activity logic and interface layout, tailored to the specific needs of each interactive activity function. However, this traditional hard-coded model for interactive activity development results in long development cycles and low efficiency, as activity rules, process logic, and reward mechanisms all require line-by-line coding. It also fails to support the dynamic expression of complex activity logic, making it difficult to quickly respond to high-frequency and diverse activity demands. Furthermore, since any adjustments to activity functions require modifications to the underlying code, dynamic updates to activity functions are not supported and the risk of code logic errors increases, leading to a lack of flexibility.

[0058] Furthermore, the traditional hard-coded model for developing interactive activities often leads to high code redundancy and difficulty in abstracting and reusing across activity modules, as similar activity functions require repeated development. This wastes resources. Furthermore, the entire development process relies on professional development technicians, preventing non-technical personnel from directly participating in activity configuration. This creates a significant gap between demand communication and implementation, increasing communication and collaboration costs. Therefore, a more efficient interactive activity generation method is urgently needed to reduce the workload of underlying code development and effectively meet the high-frequency and diverse activity business needs.

[0059] After research, the inventors have proposed a DSL-based interactive activity generation method. This method first receives an interactive activity creation instruction carrying the unique identification information of a DSL template selected by a first user. Because DSL templates can be used to define the complete interactive activity process from configuration to execution through multiple key configuration dimensions structured within a DSL, the unique identification information allows for rapid location and call of predefined DSL templates, generating a template configuration interface. This eliminates the need to write extensive code to implement the interactive activity's logical framework and configuration interface layout, significantly improving the efficiency of interactive activity creation.

[0060] Secondly, by responding to the parameter input operation of the first user in the template configuration interface, the placeholders corresponding to each key configuration dimension in the DSL template are replaced with the activity parameters input by the first user. The DSL configuration file required to generate the interactive activity instance can be obtained without relying on professional R&D technicians, so that non-technical personnel can directly participate in the configuration of interactive activities, reducing the communication and collaboration costs of building interactive activities; after passing the compliance verification (that is, determining that the DSL configuration file is a compliant configuration file), the DSL configuration file can be directly instantiated into an executable interactive activity, realizing the automated process from configuration to generation of interactive activities, greatly reducing the workload of underlying code development, significantly improving the construction efficiency of interactive activities, and reducing construction costs, thereby efficiently meeting high-frequency and diversified activity business needs.

[0061] In addition, the technical solution of the present application uses predefined DSL templates to directly generate interactive activity instances, eliminating the need to repeatedly develop similar types of activity functions, reducing resource waste, and further reducing the cost of building interactive activities; the predefined DSL templates in the technical solution of the present application support the dynamic expression of complex activity logic and support the dynamic update of activity functions. The adjustment of activity functions does not require changing the underlying code, thereby improving the flexibility of interactive activity construction and reducing the risk of code logic errors caused by code modifications.

[0062] In order to help those skilled in the art better understand the present invention, the following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of this application.

[0063] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of the relevant regions.

[0064] Keyword definitions:

[0065] DSL (Domain Specific Language) is a programming or configuration language designed specifically to solve problems in a specific domain. Compared to general-purpose programming languages like Java and Python, DSLs are more focused on a specific application domain. Therefore, their syntax and semantics are more closely aligned with the concepts and operations of that domain, making describing and handling domain-specific tasks more intuitive and efficient.

[0066] Method Example

[0067] An embodiment of the present application provides an embodiment of a method for generating interactive activities based on a DSL. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0068] See also Figure 1 , which is a flow chart of a DSL-based interactive activity generation method provided in an embodiment of the present application, such as Figure 1 As shown, the method includes the following steps:

[0069] Step S101: receiving an interactive activity creation instruction; the interactive activity creation instruction carries unique identification information of a DSL template selected by a first user.

[0070] In an optional embodiment, an interactive activity system can be used as the execution subject of the interactive activity generation method based on DSL in the embodiment of the present application. For the convenience of description, the interactive activity system is referred to as the system below. Figure 2As shown, the interactive activity system includes a template configuration platform, an interactive business middle platform and an interactive product application; among them, the template configuration platform is used to provide a corresponding platform for development technicians to create DSL templates, the interactive business middle platform is used to generate interactive activities, and the interactive product application is used to provide a corresponding platform for activity interaction.

[0071] In step S101, the DSL template is used to define the complete process of interactive activities from configuration to execution through multiple key configuration dimensions structured by DSL. In an embodiment of the present application, multiple key configuration dimensions include basic information of the activity, activity participation conditions, reward rules, activity interaction mechanism, trigger conditions, display settings, and data analysis and monitoring. Among them, the basic information of the activity includes basic information such as the activity name, activity description, activity start time, and activity end time; the activity participation conditions define the participation conditions of the interactive activity (such as the user's registration time, whether the user meets a certain points threshold or other specific conditions); the reward rules specify the type and amount of rewards that participants can obtain after completing specific behaviors, such as coupons, points, physical prizes, etc. The activity interaction mechanism describes the specific gameplay of the interactive activity, such as raffles, guessing games, question-and-answer sessions, etc., as well as the activity's operational procedures and interaction logic; the trigger conditions set the conditions for starting the activity or switching between different stages, such as users completing specific tasks, reaching a certain time point, or meeting specific behavior patterns; the display settings involve the way the activity is presented on the front-end page, including but not limited to the design of visual and interactive elements such as interface layout, color themes, and button styles; the data analysis and monitoring configuration involves how to collect activity data, monitor activity effects, and how to adjust activity strategies based on the analysis results.

[0072] In the embodiments of this application, Figure 2 As shown, the first user may be a brand operator. After the brand operator logs in to the interactive activity system and selects the corresponding DSL template, the system's interactive product application may receive an interactive activity creation instruction carrying the unique identification information of the DSL template selected by the brand operator, and request a template configuration interface from the interactive business middle platform, thereby providing data preparation for the subsequent automatic generation of interactive activity instances.

[0073] In order to realize the automated process from configuration to generation of interactive activities, before receiving the interactive activity creation instruction, the system of the embodiment of the present application can build a DSL template based on the activity data corresponding to each of multiple historical interactive activities. Specifically, see Figure 3 , which is a flowchart of a DSL template construction process provided in an embodiment of the present application, and the process includes the following steps:

[0074] Step S301: Acquire activity data corresponding to each of a plurality of historical interactive activities.

[0075] In step S301 , the plurality of historical interactive activities include different types of interactive activities.

[0076] In the embodiment of the present application, the activity data includes but is not limited to activity description data of historical interactive activities, participant feedback data, operation log data, etc.

[0077] Step S302 : extracting common activity elements from various activity data, and converting the common activity elements into DSL language structures.

[0078] In step S302, common activity elements are activity elements that appear repeatedly in multiple historical interactive activities, such as basic activity information, activity rules, reward rules, user triggering conditions, etc.

[0079] In order to obtain accurate common activity elements and thus prepare data for the subsequent construction of DSL templates, in an embodiment of the present application, the system can perform demand analysis on each activity data separately to obtain multiple high-frequency activity elements corresponding to each historical interactive activity; wherein, high-frequency activity elements are elements that appear in historical interactive activities with a frequency greater than a preset frequency; then the system can extract common activity elements from the high-frequency activity elements corresponding to multiple historical interactive activities.

[0080] For example, the system can identify elements that appear frequently and are crucial to the success of the activities from the above-mentioned multiple historical interactive activities, such as activity task settings, activity rules, activity reward mechanisms, user behavior trigger conditions, etc.; then the system can abstract the multiple high-frequency activity elements identified to find common patterns between different activities and extract common activity elements from multiple historical interactive activities.

[0081] In this embodiment, the system converts common activity elements into DSL language structures, thereby applying dedicated DSL syntax and semantic structures to the activity domain, thereby providing data preparation for the subsequent construction of DSL templates for interactive activities.

[0082] Step S303 : defining basic information of the interactive activity based on the converted common activity elements, and setting context variables of the interactive activity based on the basic information.

[0083] In step S303, context variables are data items in the DSL language structure that are used to bind to changes in the environment during runtime. The basic information of the interactive activity includes the activity name, activity purpose, time and location, activity form and other information.

[0084] In an embodiment of the present application, the context variables include: user information, time information, location information, environmental status, tasks and progress, reward status, trigger conditions, etc.; wherein, user information includes user ID, user name, user level or status, user preference settings, etc.; time information includes current timestamp, activity start time, activity end time, time mark of specific event (such as task completion time), etc.; location information includes user geographic location, activity location or target location, etc.; environmental status includes system status (such as server load, network status), etc.; tasks and progress include current task status (not started, in progress, completed), task progress bar or completion indicator, etc.; reward status includes a list of rewards obtained, reward collection status (collected or not collected); trigger conditions include the status of achieving specific conditions (such as whether specific achievement conditions are met), current status of trigger (activated, to be activated, triggered), etc.

[0085] In an embodiment of the present application, the system can define the basic information of the interactive activity, such as the activity name, activity description, participation rules (for example, how to participate in the activity, including qualification requirements, time limits, etc.), task list, reward mechanism (such as coupons, physical prizes, points, titles, etc.), trigger conditions, etc., based on the converted common activity elements; the system can set the user information, time information, location information, environmental status, tasks and progress, reward status, trigger conditions, etc. of the interactive activity based on the basic information.

[0086] Step S304: creating multiple activity judgment conditions and multiple activity-associated actions based on the context variables.

[0087] In this embodiment of the present application, multiple activity judgment conditions include determining user level, determining user activity participation eligibility, determining user lottery draw times, and user winning conditions. Multiple activity-related actions include issuing rewards, unlocking tasks, updating progress, notifications and reminders, and dynamically adjusting difficulty. The system can create multiple activity judgment conditions and multiple activity-related actions based on context variables, providing data preparation for the subsequent construction of DSL templates for interactive activities.

[0088] Step S305 : combining the activity judgment conditions and the activity-associated actions based on preset logical operators to generate multiple rule chains.

[0089] In the embodiment of the present application, the preset logical operator may be AND / OR. The system may combine activity judgment conditions and activity-related actions to generate multiple rule chains through a rule chain mechanism combining Switch Case syntax and AND / OR conditions.

[0090] It should be noted that by introducing the Switch Case syntax and the rule chain mechanism of AND / OR condition combination, activity judgment conditions and activity-related actions are combined to generate multiple rule chains. This can flexibly define complex judgment logic and dynamically adjust activity logic based on context variables (such as user status, environmental data, etc.), thereby providing data preparation for the subsequent construction of DSL templates for interactive activities, enabling DSL templates to support multiple scenarios and efficiently meet high-frequency and diverse activity business needs.

[0091] Step S306: construct a DSL template corresponding to each rule chain according to the rule chain.

[0092] In an embodiment of the present application, the system can construct a DSL template corresponding to each rule chain based on the event-driven rules corresponding to the rule chain. Specifically, the system can set an event-driven rule corresponding to each rule chain based on the rule chain; wherein the event-driven rule is a rule that verifies the current environment state through the activity judgment condition and executes the corresponding activity-related action when the target event is triggered; then, the system can construct a DSL template corresponding to the rule chain based on the event-driven rules corresponding to the rule chain.

[0093] For example, the system can implement complex processes through rule chains and event nesting: "After the user completes task A, task B is unlocked, and the ranking list is updated synchronously."

[0094] Optionally, after creating the DSL template, the system may publish the DSL template to a template library.

[0095] It should be noted that by building a DSL template corresponding to each rule chain based on the event-driven rules corresponding to the rule chain, there is no need to repeatedly develop similar types of activity functions, which greatly reduces the workload of underlying code development, reduces resource waste, reduces the cost of building interactive activities, and improves development efficiency; and it can make the DSL template highly flexible, and can quickly adjust activity strategies according to market demand without large-scale modifications to the underlying code, reducing the risk of code logic errors caused by code modifications.

[0096] Optionally, the system can abstract configuration items in the DSL template (such as time, reward value, etc.) into placeholders (such as #{startTime}, #{rewardAmount}, etc.) as needed, allowing the same template to be reused in different activities or scenarios. You only need to replace the placeholder value according to the actual situation without redesigning the entire logic, thereby improving the versatility and reusability of the template.

[0097] In the embodiment of the present application, the system can realize dynamic registration of custom DSL syntax and underlying functional modules through a reserved extension interface to adapt to the evolution of future activity forms.

[0098] It should be noted that this application adopts a plug-in design, which provides a more natural and expressive way to describe activity templates for specific fields through DSL, and decomposes activity functions into independent components (such as sign-in, lottery, rankings). Through the rule chain and placeholders of DSL, the on-demand combination and parameterized configuration of components are realized to obtain DSL templates, making it easier for non-technical personnel to understand and write complex logic, thereby improving the design efficiency, versatility, flexibility and reusability of activity templates.

[0099] Step S102: calling the DSL template based on the unique identification information and generating a template configuration interface.

[0100] In the embodiment of the present application, the unique identification information is used to uniquely identify the DSL template, which can be a predefined template ID or other identifier. Figure 2 As shown, the interactive business middle platform of the system can call the DSL template from the template library based on the unique identification information of the DSL template, return the active template DSL data, and generate a template configuration interface.

[0101] Step S103 , in response to the parameter input operation of the first user in the template configuration interface, the placeholders corresponding to the key configuration dimensions in the DSL template are replaced with the activity parameters input by the first user, and a DSL configuration file is generated.

[0102] In the embodiment of the present application, the placeholders are abstracted from configuration items (such as time, reward value, rules, etc.) when constructing the DSL template, such as #{startTime}, #{rewardAmount}, etc.; the activity parameters include parameters such as time, rules, and reward value. The system can respond to the parameter input operation of the first user in the template configuration interface, and automatically replace the placeholders corresponding to each key configuration dimension in the DSL template with the activity parameters input by the first user, and generate a DSL configuration file. It is possible to obtain the DSL configuration file required to generate an interactive activity instance without relying on professional R&D technicians, enabling non-technical personnel to directly participate in the configuration of interactive activities, reducing the communication and collaboration costs of constructing interactive activities. Moreover, the DSL configuration file required to generate an interactive activity instance can be obtained only by replacing the placeholders, which can support multi-scenario applications and improve the flexibility and adaptability of the system.

[0103] Alternatively, as Figure 2As shown, after generating the DSL configuration file, the system's interactive business middle station can also initiate a compliance verification request to perform syntax verification and preview on the DSL configuration file to avoid syntax errors.

[0104] Step S104: If it is determined that the DSL configuration file is a compliant configuration file, the DSL configuration file is instantiated to generate an interactive activity instance.

[0105] In step S104 , the instantiation process is used to configure the DSL configuration file into an executable interactive activity.

[0106] In an embodiment of the present application, a compliant configuration file is a file that complies with the DSL configuration standard, that is, the file is written in a domain-specific language (DSL) and follows the syntax and rules defined by the DSL. The system can determine whether to instantiate the DSL configuration file based on whether the DSL configuration file is a compliant configuration file. Specifically, the system can perform a syntax check on the DSL configuration file to obtain a verification result. The system can then determine whether the DSL configuration file is a compliant configuration file based on the verification result. If the DSL configuration file is not a compliant configuration file, the system prohibits the instantiation of the DSL configuration file. If the DSL configuration file is a compliant configuration file, the system instantiates the DSL configuration file to obtain an interactive activity instance.

[0107] It should be noted that after passing the compliance check (i.e., determining that the DSL configuration file is a compliant configuration file), the DSL configuration file can be directly instantiated as an executable interactive activity, realizing an automated process from configuration to generation of interactive activities, greatly reducing the workload of underlying code development, significantly improving the construction efficiency of interactive activities, and reducing construction costs, thereby efficiently meeting high-frequency and diversified activity business needs.

[0108] Alternatively, as Figure 2 As shown, after generating the interactive activity instance, the interactive business middle platform of the system can publish the interactive activity and set the status of the interactive activity to "running".

[0109] Furthermore, after generating the interactive activity instance, the system can also create an interactive activity interactive page based on the interactive activity instance, thereby providing a user (i.e. Figure 2 C-end users shown in ) participate in interactive activities to provide an interactive interface; specifically, see Figure 4 , which is a flowchart of the process of creating an interactive activity interaction page and user interaction provided by an embodiment of the present application, and the process includes the following steps:

[0110] Step S401: receiving an interactive activity access request from a second user; the interactive activity access request includes user information of the second user and identification information of an interactive activity to be accessed by the second user.

[0111] In an embodiment of the present application, user information includes basic registration information, behavior data, preference setting information, device information, etc.; the identification information of the interactive activity may be the activity ID of the interactive activity.

[0112] Step S402: Detect whether there is an interactive activity instance corresponding to the interactive activity in the memory database based on the identification information.

[0113] In an embodiment of the present application, the memory database may be redis, which is used to cache the resolved interactive activity instances. The system may determine whether to create an interactive activity interaction page by detecting whether there is an interactive activity instance corresponding to the interactive activity in redis based on the identification information.

[0114] Step S403: If there is no interactive activity instance corresponding to the interactive activity in the memory database, the interactive activity instance is loaded from the relational database according to the identification information, and the interactive activity instance is pre-parsed to convert the interactive activity instance into a directed acyclic graph or a state machine model to obtain a converted interactive activity instance; the converted interactive activity instance is stored in the memory database.

[0115] In step S403, the nodes in the directed acyclic graph are used to represent activity judgment conditions or activity-related actions, and the edges in the directed acyclic graph are used to represent the execution order of activity judgment conditions or activity-related actions; the state machine model is used to structure activity judgment conditions and activity-related actions into an executable process.

[0116] In an embodiment of the present application, the relational database may be a MySQL database (i.e., a template library) for storing unresolved interactive activity instances. If the interactive activity instance corresponding to the interactive activity does not exist in the in-memory database, the system may load the interactive activity instance from the relational database based on the identification information, and pre-parse the interactive activity instance through an adapted rule engine, converting the interactive activity instance into a directed acyclic graph or a state machine model to obtain the converted interactive activity instance, and storing the converted interactive activity instance in the in-memory database, thereby providing data preparation for the subsequent creation of the interactive activity interaction page.

[0117] Step S404: if an interactive activity instance corresponding to the interactive activity exists in the memory database, an interactive activity interactive page is created based on the interactive activity instance.

[0118] In an embodiment of the present application, if there is an interactive activity instance corresponding to the interactive activity in the memory database, the system can directly create an interactive activity interaction page based on the interactive activity instance, thereby providing an interactive interface for the second user to participate in the interactive activity.

[0119] Step S405 : In response to the target operation of the second user on the interactive activity interaction page, verifying whether the second user is qualified to participate in the interactive activity based on the user information.

[0120] In the embodiment of the present application, the target operation may be an activity check-in operation, a lottery operation, etc. For example, when a C-end user clicks a check-in button on an interactive activity interaction page, the system may respond to the activity check-in operation and verify whether the C-end user is eligible to participate in the interactive activity based on the user information of the C-end user.

[0121] Step S406: If it is verified that the second user has the participation qualification, the activity judgment condition and activity-related action corresponding to the interactive activity are executed to obtain an execution result.

[0122] For example, if it is verified that the second user is eligible to participate in the lottery, the reward judgment rule and reward distribution action corresponding to the lottery activity are executed to obtain an execution result.

[0123] Step S407: Feedback the execution result to the second user.

[0124] In the embodiment of the present application, after obtaining the execution result, the system can update the activity status of the lottery activity and feedback the execution result to the second user. For example, the system can update the task progress, update the reward distribution status, update the ranking list, user status (such as novice, veteran), etc., and feedback the lottery results and distributed rewards to the second user.

[0125] Alternatively, as Figure 2 As shown, after the interactive product application feeds back the execution results to the C-end users, the system's interactive business middle platform can also push activity data to the brand operator, such as participation rate and ROI (full name Return on Investment, referring to return on investment).

[0126] In an optional embodiment, an example of a lottery activity defined by a DSL template may be as follows:

[0127] 1. The basic rules for participating in the lottery include a free number mechanism: X free lottery opportunities are given by default daily / weekly / monthly / permanently.

[0128] 2. Extra chances to win the lottery: You can get extra chances to win the lottery by completing designated tasks (such as helping friends, placing shopping orders, consuming points, and joining the club), with a maximum of 3 free chances per day.

[0129] 3. Daily winning limit:

[0130] a. A single user can win a prize once a day at most (including all prize levels);

[0131] b. If a prize has already been won on the same day, subsequent draws will only show the result of "not winning", but the number of draws will still be consumed.

[0132] 4. Cumulative winning limits:

[0133] a. During the event, a single user may not win more than 3 prizes (including all prize levels);

[0134] b. If the total number of winnings reaches the upper limit, the system will automatically block the winning eligibility and only display "Thank you for participating".

[0135] 5. Rules for cumulative number of draws:

[0136] a. The maximum number of lucky draws a single user can participate in during the activity period is 10 (including free and task-based draws);

[0137] b. After exceeding the limit, a prompt will appear: the number of draws has reached the activity limit.

[0138] 6. Rules for handling insufficient award inventory:

[0139] (1) Strategy 1: Not winning:

[0140] a. Directly display "Not Winning" without any probability transfer or compensation;

[0141] b. Applicable scenario: When high-value prizes are out of stock, prevent users from feeling that their prizes are downgraded.

[0142] (2) Strategy 2: Probability allocation to other prizes:

[0143] a. Allocate the winning probability of the prize to other prizes in stock in proportion;

[0144] b. For example, if the original probability of winning the first prize is 10%, if the inventory is 0, the 10% probability will be distributed to the second and third prizes, etc.

[0145] (3) Strategy 3: Downgrade winning rules:

[0146] a. Step 1: Automatically detect the current inventory and sort the prizes by value from low to high (e.g., Participation Prize → Third Prize → Second Prize → First Prize);

[0147] b. Step 2: Prioritize the lowest value prize in stock. If the lowest prize is out of stock, the next lowest prize will be allocated.

[0148] Step 3: If all prizes are out of stock, "Not won" will be displayed.

[0149] Optionally, part of the code for the lottery activity defined by the DSL template can be as follows:

[0150]

[0151]

[0152]

[0153]

[0154] The DSL-based interactive activity generation method provided in the embodiments of the present application introduces a predefined DSL template, thereby enabling the unique identification information based on the DSL template to quickly locate and call the predefined DSL template, and generate a template configuration interface. This eliminates the need to write a large amount of code to implement the logical framework of the interactive activity and the layout of the configuration interface, significantly improving the efficiency of constructing the interactive activity. By replacing the placeholders corresponding to each key configuration dimension in the DSL template with the activity parameters input by the first user, the DSL configuration file required for generating the interactive activity instance can be obtained without relying on professional R&D technicians, enabling non-technical personnel to directly participate in the configuration of the interactive activity, thereby reducing the communication and collaboration costs of constructing the interactive activity. After compliance verification (i.e., determining that the DSL configuration file is a compliant configuration file), the DSL configuration file can be directly instantiated as an executable interactive activity, thereby realizing an automated process from configuration to generation of the interactive activity, significantly reducing the workload of underlying code development, significantly improving the construction efficiency of the interactive activity, and reducing the construction cost, thereby efficiently meeting high-frequency and diversified activity business needs.

[0155] In addition, the technical solution of the present application uses predefined DSL templates to directly generate interactive activity instances, eliminating the need to repeatedly develop similar types of activity functions, reducing resource waste, and further reducing the cost of building interactive activities; the predefined DSL templates in the technical solution of the present application support the dynamic expression of complex activity logic and support the dynamic update of activity functions. The adjustment of activity functions does not require changing the underlying code, thereby improving the flexibility of interactive activity construction and reducing the risk of code logic errors caused by code modifications.

[0156] The technical solution of this application adopts predefined DSL templates, which can be customized and developed according to specific business needs, more in line with actual application scenarios, and provide higher flexibility than general solutions. The technical solution of this application adopts predefined DSL templates, which can directly generate configuration files or codes that meet the platform requirements through compilation or interpretation, facilitating rapid integration into existing active configuration platforms and accelerating the development cycle. The technical solution of this application adopts predefined DSL templates. Since they are usually designed for specific fields, they are easier to maintain and extend than general programming languages, which is conducive to the development and iteration of long-term projects.

[0157] Device embodiment

[0158] The embodiment of the present application provides a DSL-based interactive activity generation device, wherein: Figure 5 A schematic diagram of a DSL-based interactive activity generation device provided in an embodiment of the present application, such as Figure 5 As shown, the device includes: a receiving module 51, a template calling module 52, an operation response module 53 and a generating module 54. Figure 5 You can see the connection relationship between several modules.

[0159] The receiving module 51 is configured to receive an interactive activity creation instruction; the interactive activity creation instruction carries unique identification information of a DSL template selected by the first user; the DSL template is configured to define the complete process from configuration to execution of the interactive activity through multiple key configuration dimensions structured by the DSL;

[0160] The template calling module 52 is used to call the DSL template based on the unique identification information and generate a template configuration interface;

[0161] An operation response module 53 is configured to replace the placeholders corresponding to the key configuration dimensions in the DSL template with the activity parameters input by the first user in response to the parameter input operation of the first user in the template configuration interface, and generate a DSL configuration file;

[0162] The generating module 54 is configured to instantiate the DSL configuration file to generate an interactive activity instance if it is determined that the DSL configuration file is a compliant configuration file; the instantiation process is used to configure the DSL configuration file as an executable interactive activity.

[0163] Optionally, the generation module includes: a verification unit, a judgment unit, a prohibition unit and a processing unit.

[0164] The verification unit is used to perform syntax verification on the DSL configuration file to obtain a verification result;

[0165] a judging unit, configured to judge whether the DSL configuration file is a compliant configuration file based on the verification result;

[0166] A prohibition unit, configured to prohibit instantiation of the DSL configuration file if the DSL configuration file is a non-compliant configuration file;

[0167] The processing unit is configured to instantiate the DSL configuration file to obtain an interactive activity instance if the DSL configuration file is a compliant configuration file.

[0168] Optionally, the DSL-based interactive activity generation device further includes: a receiving module, an extracting module, a defining module, a creating module, a generating module and a building module.

[0169] The receiving module is used to obtain activity data corresponding to each of a plurality of historical interactive activities before receiving the interactive activity creation instruction; the plurality of historical interactive activities include different types of interactive activities;

[0170] The extraction module is used to extract common activity elements from various activity data and convert the common activity elements into DSL language structures; common activity elements are activity elements that appear repeatedly in multiple historical interactive activities;

[0171] The definition module is used to define the basic information of the interactive activity based on the converted common activity elements, and to set the context variables of the interactive activity based on the basic information; the context variables are data items in the DSL language structure that are used to bind to the changes in the environment state at runtime;

[0172] Create a module for creating multiple activity judgment conditions and multiple activity-related actions based on context variables;

[0173] A generation module is used to combine activity judgment conditions and activity-related actions based on preset logical operators to generate multiple rule chains;

[0174] The construction module is used to construct a DSL template corresponding to each rule chain based on the rule chain.

[0175] Optionally, the construction module includes: a setting unit and a construction unit.

[0176] The setting unit is used to set event-driven rules corresponding to each rule chain based on the rule chain; the event-driven rules are rules that verify the current environment state through activity judgment conditions and execute corresponding activity-related actions when the target event is triggered;

[0177] The construction unit is used to construct a DSL template corresponding to each rule chain based on each rule chain and the event-driven rules corresponding to the rule chain.

[0178] Optionally, the extraction module includes: an analysis unit and an extraction unit.

[0179] The analysis unit is used to perform demand analysis on each activity data to obtain multiple high-frequency activity elements corresponding to each historical interactive activity; the high-frequency activity elements are elements that appear in the historical interactive activities with a frequency greater than a preset frequency;

[0180] The extraction unit is used to extract common activity elements from the high-frequency activity elements corresponding to multiple historical interactive activities.

[0181] Optionally, the DSL-based interactive activity generation device further includes: a request receiving module, a detection module, a parsing module and a page creation module.

[0182] The request receiving module is configured to receive an interactive activity access request from a second user after generating the interactive activity instance; the interactive activity access request includes user information of the second user and identification information of the interactive activity to be accessed by the second user;

[0183] A detection module, configured to detect whether there is an interactive activity instance corresponding to the interactive activity in the memory database based on the identification information;

[0184] A parsing module is configured to load the interactive activity instance from the relational database based on the identification information if no interactive activity instance corresponding to the interactive activity exists in the memory database, and perform pre-parsing processing on the interactive activity instance to convert the interactive activity instance into a directed acyclic graph or a state machine model to obtain the converted interactive activity instance; and store the converted interactive activity instance in the memory database; the nodes in the directed acyclic graph are used to represent activity judgment conditions or activity-related actions, and the edges in the directed acyclic graph are used to represent the execution order of the activity judgment conditions or activity-related actions; the state machine model is used to structure the activity judgment conditions and activity-related actions into an executable process;

[0185] The page creation module is used to create an interactive activity interactive page based on the interactive activity instance if there is an interactive activity instance corresponding to the interactive activity in the memory database.

[0186] Optionally, the DSL-based interactive activity generating device further includes: an operation response module, a verification module and a feedback module.

[0187] The operation response module is configured to, after creating an interactive activity interaction page based on the interactive activity instance, respond to a target operation of the second user on the interactive activity interaction page and verify based on the user information whether the second user is eligible to participate in the interactive activity;

[0188] a verification module, configured to execute an activity judgment condition and an activity-related action corresponding to the interactive activity and obtain an execution result if it is verified that the second user has participation qualifications;

[0189] The feedback module is used to feed back the execution result to the second user.

[0190] Storage medium embodiment

[0191] The present invention provides a computer-readable storage medium having a program stored thereon. When executed by a processor, the program implements some or all of the steps of the DSL-based interactive activity generation method described in the aforementioned method embodiment of the present invention. The storage medium can be any medium capable of storing program code, such as a USB flash drive, a mobile hard drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.

[0192] Processor Embodiments

[0193] An embodiment of the present application provides a processor for running a program, wherein, when the program is running, some or all of the steps of the DSL-based interactive activity generation method introduced in the aforementioned method embodiment are executed.

[0194] It should be noted that the various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, 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. The device embodiment described above is merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components indicated as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. A person of ordinary skill in the art can understand and implement it without expending creative work.

[0195] It is understandable that in the specific implementation of this application, related data such as user information is involved. When the above embodiments of this application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of the relevant regions.

[0196] The above is merely one specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this application should be included in the scope of protection of the present application. Therefore, the scope of protection of the present application should be based on the scope of protection of the claims.

Claims

1. A DSL-based interactive activity generation method, characterized in that: include: Receive interactive activity creation instructions; The interactive activity creation instruction carries unique identification information of the DSL template selected by the first user; The DSL template is used to define the complete process of interactive activities from configuration to execution through multiple key configuration dimensions structured by DSL; Calling the DSL template based on the unique identification information and generating a template configuration interface; In response to the parameter input operation of the first user in the template configuration interface, replacing the placeholders corresponding to the key configuration dimensions in the DSL template with the activity parameters input by the first user, and generating a DSL configuration file; If it is determined that the DSL configuration file is a compliant configuration file, instantiation processing is performed on the DSL configuration file to generate an interactive activity instance; the instantiation processing is used to configure the DSL configuration file as an executable interactive activity.

2. The method according to claim 1, characterized in that If it is determined that the DSL configuration file is a compliant configuration file, instantiating the DSL configuration file to generate an interactive activity instance includes: Performing syntax verification on the DSL configuration file to obtain a verification result; Determining whether the DSL configuration file is the compliant configuration file based on the verification result; If the DSL configuration file is a non-compliant configuration file, prohibiting the instantiation process on the DSL configuration file; If the DSL configuration file is the compliant configuration file, the instantiation process is performed on the DSL configuration file to obtain the interactive activity instance.

3. The method according to claim 1, characterized in that Before receiving the interactive activity creation instruction, the method further includes: Acquire activity data corresponding to each of a plurality of historical interactive activities; the plurality of historical interactive activities include different types of interactive activities; Extracting common activity elements from each of the activity data and converting the common activity elements into a DSL language structure; the common activity elements are activity elements that appear repeatedly in multiple historical interactive activities; Defining basic information of the interactive activity based on the converted common activity elements, and setting context variables of the interactive activity based on the basic information; the context variables are data items in the DSL language structure that are used to bind data items that change according to the environment state during runtime; Creating multiple activity judgment conditions and multiple activity-related actions based on the context variables; Combining the activity judgment conditions and the activity-related actions based on preset logical operators to generate multiple rule chains; A DSL template corresponding to each rule chain is constructed according to the rule chain.

4. The method according to claim 3, characterized in that The step of constructing a DSL template corresponding to each rule chain according to the rule chain includes: Setting an event-driven rule corresponding to each rule chain based on the rule chain; the event-driven rule is a rule that verifies the current environment state through the activity judgment condition and executes the corresponding activity-related action when the target event is triggered; Based on each of the rule chains and the event-driven rules corresponding to the rule chains, a DSL template corresponding to the rule chains is constructed.

5. The method according to claim 3, characterized in that The extracting common activity elements from each of the activity data includes: Performing demand analysis on each of the activity data to obtain a plurality of high-frequency activity elements corresponding to each of the historical interactive activities; the high-frequency activity elements are elements that appear in the historical interactive activities at a frequency greater than a preset frequency; The common activity elements are extracted from the high-frequency activity elements corresponding to the plurality of historical interactive activities.

6. The method according to claim 1, characterized in that After generating the interactive activity instance, the method further includes: receiving an interactive activity access request from a second user; the interactive activity access request including user information of the second user and identification information of an interactive activity to be accessed by the second user; Detecting whether there is an interactive activity instance corresponding to the interactive activity in a memory database based on the identification information; If the interactive activity instance corresponding to the interactive activity does not exist in the in-memory database, the interactive activity instance is loaded from the relational database according to the identification information, and the interactive activity instance is pre-parsed to convert the interactive activity instance into a directed acyclic graph or a state machine model to obtain a converted interactive activity instance; the converted interactive activity instance is stored in the in-memory database; the nodes in the directed acyclic graph are used to represent activity judgment conditions or activity-related actions, and the edges in the directed acyclic graph are used to represent the execution order of the activity judgment conditions or the activity-related actions; the state machine model is used to structure the activity judgment conditions and the activity-related actions into an executable process; If an interactive activity instance corresponding to the interactive activity exists in the memory database, an interactive activity interaction page is created based on the interactive activity instance.

7. The method according to claim 6, characterized in that After creating an interactive activity interaction page based on the interactive activity instance, the method further includes: In response to a target operation of the second user on the interactive activity interaction page, verifying whether the second user is eligible to participate in the interactive activity based on the user information; If it is verified that the second user has the participation qualification, executing the activity judgment condition and activity-related action corresponding to the interactive activity to obtain an execution result; Feedback the execution result to the second user.

8. A DSL-based interactive activity generation device, characterized in that: include: A receiving module, configured to receive an interactive activity creation instruction; The interactive activity creation instruction carries unique identification information of the DSL template selected by the first user; The DSL template is used to define the complete process of interactive activities from configuration to execution through multiple key configuration dimensions structured by DSL; A template calling module, configured to call the DSL template based on the unique identification information and generate a template configuration interface; an operation response module, configured to, in response to the parameter input operation of the first user in the template configuration interface, replace the placeholders corresponding to the key configuration dimensions in the DSL template with the activity parameters input by the first user, and generate a DSL configuration file; A generating module is configured to instantiate the DSL configuration file to generate an interactive activity instance if it is determined that the DSL configuration file is a compliant configuration file; the instantiation process is used to configure the DSL configuration file as an executable interactive activity.

9. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method for generating an interactive activity based on a DSL according to any one of claims 1 to 7 is implemented.

10. A processor, characterized in that: Used to run a computer program, which, when running, executes the DSL-based interactive activity generation method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Executive plan generation method for big data analysis process

    CN107885587A

  • Interface generation method and device, server and storage medium

    CN112306486A

  • Data processing method and device, electronic equipment and computer storage medium

    CN112667933A

  • Computer system and method with adaptive N-level structures for automated generation of program solutions based on rules input by subject matter experts

    US20040015823A1