[go: up one dir, main page]

CN111857657B - Activity creation method, apparatus, storage medium and computer device - Google Patents

Activity creation method, apparatus, storage medium and computer device Download PDF

Info

Publication number
CN111857657B
CN111857657B CN202010544100.6A CN202010544100A CN111857657B CN 111857657 B CN111857657 B CN 111857657B CN 202010544100 A CN202010544100 A CN 202010544100A CN 111857657 B CN111857657 B CN 111857657B
Authority
CN
China
Prior art keywords
activity
created
information
interface
creation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010544100.6A
Other languages
Chinese (zh)
Other versions
CN111857657A (en
Inventor
王晓彬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Shupao Technology Co ltd
Original Assignee
Hangzhou Shupao Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Shupao Technology Co ltd filed Critical Hangzhou Shupao Technology Co ltd
Priority to CN202010544100.6A priority Critical patent/CN111857657B/en
Publication of CN111857657A publication Critical patent/CN111857657A/en
Application granted granted Critical
Publication of CN111857657B publication Critical patent/CN111857657B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/20Software design
    • G06F8/24Object-oriented
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The application provides an activity creation method, an activity creation device, a storage medium and computer equipment, wherein the activity creation method comprises the steps of obtaining activity information to be created; and calling an interface of a flow event provided by a pre-configured activity creation service according to the activity information to be created, and creating the activity. The method and the device can enable the program codes for creating the activities to be easy to maintain, reduce the coupling degree of the program codes and improve the activity creation effect.

Description

Activity creation method, apparatus, storage medium and computer device
Technical Field
The present disclosure relates to the field of software development technologies, and in particular, to an activity creation method, an activity creation device, a storage medium, and a computer device.
Background
The marketing system has a significant role in realizing the business strategy of enterprises, when the marketing system is adopted to meet the changeable demands of users, a new marketing scheme is always required to be continuously pushed out, how to quickly push out the new marketing scheme, the development cost is reduced, and the marketing system is a problem which needs to be solved in the marketing process by all industrial Internet companies facing terminal consumers. Marketing systems typically embed campaign tools with which to display various marketing campaigns, which are typically forefront in the overall marketing hierarchy, in order to better increase product exposure opportunities and thereby attract potential customers. However, the number of potential customers often varies with preference, and new campaign tools need to be continually introduced to expose diverse marketing campaigns to obtain user feedback.
In the related art, when an activity is created, logic is usually implemented by rewriting a set of interface services, or by multiplexing interfaces of the existing activity, according to the type of the activity to be created.
Under these modes, the common module multiplexing rate may be low, the program codes are not easy to maintain, the Bug is easy to introduce, and the program code coupling degree is high, so that the activity creation effect is affected.
Disclosure of Invention
The present application aims to solve, at least to some extent, one of the technical problems in the related art.
Therefore, the application aims to provide an activity creation method, an activity creation device, a storage medium and computer equipment, which can enable program codes for creating an activity to be easy to maintain, reduce the coupling degree of the program codes and improve the activity creation effect.
To achieve the above object, an activity creation method according to an embodiment of a first aspect of the present application includes: acquiring activity information to be created; and calling an interface of a flow event provided by a pre-configured activity creation service according to the activity information to be created, and creating an activity.
According to the activity creation method provided by the embodiment of the first aspect of the application, the activity is created by directly calling the interface of the flow event provided by the pre-configured activity creation service according to the information of the activity to be created, so that the program code for creating the activity is easy to maintain, the coupling degree of the program code is reduced, and the activity creation effect is improved.
To achieve the above object, an activity creation device according to an embodiment of a second aspect of the present application includes: the acquisition module is used for acquiring the activity information to be created; and the creation module is used for calling an interface of a flow event provided by a pre-configured activity creation service according to the activity information to be created, and creating an activity.
According to the activity creation device provided by the embodiment of the second aspect of the application, the activity is created by directly calling the interface of the flow event provided by the pre-configured activity creation service according to the information of the activity to be created, so that the program code for creating the activity is easy to maintain, the coupling degree of the program code is reduced, and the activity creation effect is improved.
A non-transitory computer readable storage medium according to an embodiment of a third aspect of the present application, which when executed by a processor of a computer device, causes the computer device to perform an activity creation method, the method comprising: the embodiment of the first aspect of the application provides an activity creation method.
According to the non-transitory computer readable storage medium provided by the embodiment of the third aspect of the application, the activity is created by directly calling the interface of the flow event provided by the pre-configured activity creation service according to the activity information to be created, so that the program code for creating the activity is easy to maintain, the coupling degree of the program code is reduced, and the activity creation effect is improved.
A computer device according to an embodiment of a fourth aspect of the present application, the computer device includes: the device comprises a shell, a processor, a memory, a circuit board and a power circuit, wherein the circuit board is arranged in a space surrounded by the shell, and the processor and the memory are arranged on the circuit board; the power supply circuit is used for supplying power to various circuits or devices of the computer equipment; the memory is used for storing executable program codes; the processor executes a program corresponding to the executable program code by reading the executable program code stored in the memory, for executing the activity creation method set forth in the embodiment of the first aspect of the present application.
According to the computer equipment provided by the fourth aspect of the embodiment of the application, the activity is created by directly calling the interface of the flow event provided by the pre-configured activity creation service according to the information of the activity to be created, so that the program code for creating the activity is easy to maintain, the coupling degree of the program code is reduced, and the activity creation effect is improved.
Additional aspects and advantages of the application will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the application.
Drawings
The foregoing and/or additional aspects and advantages of the present application will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings, in which:
FIG. 1 is a flow chart of an activity creation method according to an embodiment of the present application;
FIG. 2 is a flow chart of an activity creation method according to another embodiment of the present application;
FIG. 3 is a schematic diagram of an activity creation service according to an embodiment of the present application;
FIG. 4 is a flow chart of an activity creation method according to another embodiment of the present application;
FIG. 5 is a schematic diagram of an interceptor mechanism implementation in an embodiment of the present application;
FIG. 6 is a schematic diagram of an activity creating device according to an embodiment of the present application;
FIG. 7 is a schematic diagram of an activity creation device according to another embodiment of the present application;
fig. 8 is a schematic structural diagram of a computer device according to an embodiment of the present application.
Detailed Description
Embodiments of the present application are described in detail below, examples of which are illustrated in the accompanying drawings, wherein the same or similar reference numerals refer to the same or similar elements or elements having the same or similar functions throughout. The embodiments described below by referring to the drawings are exemplary only for the purpose of explaining the present application and are not to be construed as limiting the present application. On the contrary, the embodiments of the present application include all alternatives, modifications, and equivalents as may be included within the spirit and scope of the appended claims.
Fig. 1 is a flow chart of an activity creation method according to an embodiment of the present application.
The present embodiment is exemplified in that the activity creation method is configured in the activity creation apparatus.
The activity creating method in the present embodiment may be configured in an activity creating apparatus, and the activity creating apparatus may be provided in a server, or may also be provided in an electronic device, which is not limited in the present embodiment.
This embodiment takes an example in which the activity creation method is configured in the electronic device.
The execution body of the embodiment of the present application may be, for example, a server or a central processing unit (Central Processing Unit, CPU) in an electronic device in hardware, or may be, for example, a server or a related background service in an electronic device in software, which is not limited thereto.
It should be noted that, the activities in the present application belong to a system, the system includes a plurality of activities to be created, and each activity to be created is regarded as an independent module, so that each activity is created separately to build the whole system.
In the embodiment of the present application, the activity to be created is specifically an activity in a marketing system, where the activity to be created can display new marketing information, and marketing information displayed by different activities to be created may be the same or different, and in general, in order to make the function of the marketing system more perfect, marketing information displayed by different activities to be created are different, and the marketing information, for example, marketing activity content, activity participation rules, activity rewards and punishment information, marketing activity time, and the like, which are not limited in this respect.
Referring to fig. 1, the method includes:
s101: and acquiring the activity information to be created.
The above-mentioned activity information to be created can identify implementation logic, parameter information, request information, response information, extension information, etc. of the activity to be created from the level of program code, and the activity information to be created can be directly used to invoke some interface services of the activity creation device, which is not limited.
In the embodiment of the application, the activity information to be created, such as activity type, extension information and activity implementation logic, where the activity type can be used to identify marketing information displayed by the activity to be created, the activity type may be obtained by dividing in advance, the activity type may be determined according to marketing requirements of the activity to be created, the extension information is, for example, some parameter information, activity rules, etc. of the activity to be created, which are different from other activities (for example, specific content of the marketing activity, planners of the marketing activity, etc., and the activity rules are activity rules of some marketing activities related to the activity to be created, for example, specific participation mode of the marketing activity, requirement of participators, etc.), and the activity implementation logic is, for example, programmed processing logic for implementing the activity rules.
In some embodiments, the information of the activity to be created may be directly read from the configuration file of the activity to be created, or the requirement text of the activity to be created may be parsed, and the parsed result is subjected to data structuring processing accordingly, so as to obtain the information of the activity to be created, which is not limited.
In this embodiment of the present application, referring to fig. 2, obtaining the activity information to be created includes:
s201: the type of activity for which the activity is to be created is obtained.
When the activity type of the activity to be created is obtained, the activity type of the activity to be created can be determined according to the marketing content of the actual marketing system, or the activity type of the activity to be created can be determined according to the creation requirement of the activity to be created.
In some embodiments, a development interface may be provided on the system creation interface, where multiple candidate campaign types are initially provided, with the campaign creator selecting one candidate campaign type as the campaign type for the campaign to be created based on actual marketing requirements.
S202: and acquiring the extension information and the activity realization logic corresponding to the activity type by adopting a service providing interface SPI mechanism, wherein the extension information and the activity realization logic are used for constructing a JAR file package of the activity, and the activity type, the extension information and the activity realization logic are used as the activity information to be created together.
The service providing interface SPI (Service Provider Interface) is a service discovery mechanism built in the JDK, and is used for calling services between different modules through interfaces, so as to avoid the coupling of implementation classes of specific service interfaces.
The expansion information and the activity realization logic are used for constructing a JAR file package of an activity to be created, and the JAR file package can be directly used for creating the corresponding activity.
In the software field, JAR files (Java Archive) are a type of software package file format that is commonly used to aggregate a large number of Java class files, related metadata, and resource (text, picture, etc.) files into one file in order to develop Java platform applications or libraries.
The extension information is the differentiated information of the current activity to be created compared with other activities, and the activity realization logic is the program code written by an activity creator aiming at the activity to be created and capable of realizing the special function of the activity to be created.
In this embodiment, by adopting the service providing interface SPI mechanism, the extension information and the activity implementation logic corresponding to the type are obtained, and the extension information and the activity implementation logic are used to construct the JAR file package of the activity to be created, so as to implement modular splitting, and provide an isolation mechanism for the marketing system at the JAR file package level, so that the program code of the activity program and the main service can be effectively isolated, thereby facilitating the extension and maintenance of the marketing system.
S102: and calling an interface of a flow event provided by a pre-configured activity creation service according to the activity information to be created, and creating the activity.
The method and the system provide a unified activity creation portal service, and carry out corresponding configuration on the unified activity creation portal service in advance, wherein the configured activity creation portal service can be called as a preconfigured activity creation service, and after the information of the activities to be created is acquired, an interface of a flow event provided by the preconfigured activity creation service is directly called to create the activities.
In the embodiment of the application, a hardware device supporting activity creation pre-configures an activity creation service, and the activity creation service provides various flow events.
The above-described flow events are general flow events employed for creating respective activities.
When the activity type, the extension information and the activity realization logic are used together as the activity information to be created, the activity can be created directly according to the activity type, the extension information and the activity realization logic by calling an interface of a flow event provided by a pre-configured activity creation service.
As an example, when the activity type, the extension information, and the activity implementation logic invoke an interface of a flow event provided by the pre-configured activity creation service, it may be to first perform parameter checking on the activity type, the extension information, and the activity implementation logic, initialize the activity type, initialize the extension information, then extract corresponding activity rules according to the activity type and the extension information, and create an activity according to the corresponding activity rules and the activity implementation logic, and save the activity and release the activity.
Thus, the interface of the flow event provided by the pre-configured activity creation service is called by the activity realization logic through combining the extension information corresponding to the activity type to create the activity, thereby guaranteeing the perfection of the function of the created activity and realizing the personalized representation of the created activity.
Optionally, the plurality of flow events includes the following: at least one of parameter verification, initializing basic information, initializing extension information, activity rule extraction, activity preservation and activity release.
In some embodiments, when calling the interface of the flow event provided by the pre-configured activity creation service according to the activity type, the extension information and the activity implementation logic, the interface of each flow event may be specifically called sequentially, that is, the interface of each flow event is called sequentially according to the parameter verification, the initialization basic information, the initialization extension information, the activity rule extraction, the activity preservation and the activity release.
In other embodiments, the interface for calling the partial flow event may be selected to create an activity according to the actual development requirement, which is not limited.
Referring to fig. 3, fig. 3 is a schematic diagram of an activity creation service in an embodiment of the present application, where the activity creation service includes a plurality of flow events.
The parameters are parameters related to the activities to be created, or may be configuration parameters required for creating an activity, which are not limited.
And the flow event of parameter verification can carry out validity verification on the parameters related to the activities to be created when being called.
Wherein the basic information is basic information of some marketing campaigns related to the campaigns to be created, such as the names of the marketing campaigns, time, etc.
While the flow event initializing the basic information, when invoked, can initialize the basic information of some marketing campaigns related to the campaign to be created.
Wherein the extended information is extended information of some marketing campaigns related to the campaigns to be created, for example, specific content of the marketing campaigns, planners of the marketing campaigns, etc.
While the flow event initializing the extension information, when invoked, can initialize the extension information of some marketing campaigns related to the campaign to be created.
The campaign rules are campaign rules of some marketing campaigns related to the campaign to be created, such as specific participation in the marketing campaign, participant requirements, etc.
And the process event of activity rule extraction, when invoked, can extract activity rules of some marketing activities related to the activity to be created to assist in the subsequent creation of the activity.
The process event of the save activity and the release activity process event can save and release the created activity when being called.
Therefore, each flow event is a general flow event for creating an activity, and according to the change of the actual development requirement, the embodiment of the application may also provide an update interface of the flow event, so that the activity creator can make a supplementary update on the flow event existing in the preconfigured activity creation service, which is not limited.
The preconfigured activity creation service in the embodiment of the application outlines the flow event of the core for creating one activity, so that all activity creation actions can be supported by the flow event creation activity provided by the activity creation service through the activity creation service, the creation actions aiming at different activities can be effectively assisted, the flow event of the initialization extension information supports the differentiated creation actions of different activities, the expansion of a system is facilitated, and the activity creation effect is improved.
In this embodiment, since the activity is created by directly calling the interface of the flow event provided by the pre-configured activity creation service according to the activity information to be created, the program code for creating the activity is easy to maintain, the coupling degree of the program code is reduced, and the activity creation effect is improved.
In this embodiment, when the flow event is an activity rule extraction and parameter verification, the parameter verification flow event provides a parameter verification interface, and the activity rule extraction flow event provides an activity rule extraction interface, which may be referred to in the following embodiments specifically:
fig. 4 is a flow chart of an activity creation method according to another embodiment of the present application.
Referring to fig. 4, the method includes:
s401: and the interface for calling parameter verification carries out parameter verification on the activity type, the extension information and the activity realization logic respectively.
The parameter checking interface is, for example, an iparrarule interface, which specifies an interface method for parameter checking, and uses the sci annotation of dubbo, and the activity tool usually performs validity checking on the input extension information and the activity implementation logic related parameters according to different activity types.
The Dubbo is a high performance, lightweight open source Java RPC framework that provides three core capabilities: interface-oriented remote method invocation, intelligent fault tolerance and load balancing, and automatic service registration and discovery.
S402: and initializing the activity type and the extension information.
S403: the interface that invokes the active rule extraction builds the interceptor chain.
After the activity types, the extension information and the activity implementation logic are processed correspondingly, the IParaamRule interface can trigger the interface for calling the activity rule extraction, so that an interceptor chain is constructed through the interface for calling the activity rule extraction, and fig. 5 is a schematic diagram of an interceptor mechanism in the embodiment of the application, and the interceptor mechanism encapsulates a general flow event for creating an activity.
Referring to the program logic of fig. 5, the ipatamrule interface triggers the interface for calling the active rule extraction by calling the following interface, so as to construct an interceptor chain by calling the interface for active rule extraction, and execute the corresponding flow event in the constructed interceptor chain.
S404: and acquiring a target activity rule corresponding to the activity type and the extension information according to the constructed interceptor chain.
As an example, by calling ILimitRule interface by IParamRule interface, according to the interceptor chain constructed, the target activity rule corresponding to the activity type and the extension information is obtained, and according to different activity types, the extracted corresponding target activity rule is also different.
S405: and combining activity realization logic according to the target activity rule to generate a JAR file package, and creating the activity by adopting the JAR file package.
As one example, a JAR file package is logically generated by an IPamarule interface in conjunction with an activity implementation according to target activity rules by invoking an ILimitRuleIntercepter interface.
S406: and constructing the activity to be created by adopting the JAR file package.
S407: save and release the activity to be created.
In this embodiment, parameter verification is performed on the activity type, the extension information and the activity implementation logic respectively through an interface for calling parameter verification, an interceptor chain is constructed by calling an interface for extracting an activity rule, a target activity rule corresponding to the activity type and the extension information is obtained according to the constructed interceptor chain, a JAR file packet is generated by combining the activity implementation logic according to the target activity rule, and the JAR file packet is adopted to create the activity, so that public and custom codes can be effectively isolated, the dynamic interceptor chain is constructed, the gathering process is flexible, the expansibility is good, when a new activity is created, a main service code is not required to be modified, only the configuration layer is modified and restarted, the activity creation efficiency is high, a large number of identical activity logics can be extracted into the main service, and the code quantity of a tool layer is reduced.
Fig. 6 is a schematic structural diagram of an activity creating apparatus according to an embodiment of the present application.
Referring to fig. 6, the apparatus 600 includes:
an acquisition module 601, configured to acquire activity information to be created;
the creation module 602 is configured to invoke an interface of a flow event provided by a pre-configured activity creation service according to the activity information to be created, and create an activity.
Optionally, in some embodiments, referring to fig. 7, the acquiring module 601 includes:
a first obtaining submodule 6011, configured to obtain an activity type of an activity to be created;
a second obtaining submodule 6012, configured to obtain, by using a service providing interface SPI mechanism, extension information and activity implementation logic corresponding to an activity type, where the extension information and the activity implementation logic are used to construct a JAR file package of an activity;
the third obtaining submodule 6013 is configured to use the activity type, the extension information and the activity implementation logic together as activity information to be created.
Optionally, in some embodiments, the creating module 602 is specifically configured to:
and calling an interface of a flow event provided by a pre-configured activity creation service according to the activity type, the extension information and the activity realization logic to create the activity.
Optionally, in some embodiments, the flow event includes:
at least one of parameter verification, initializing basic information, initializing extension information, activity rule extraction, activity preservation and activity release.
Optionally, in some embodiments, when the flow event is an active rule extraction, the creating module 602 is further configured to:
calling an interface extracted by the activity rule to construct an interceptor chain;
acquiring a target activity rule corresponding to the activity type and the extension information according to the constructed interceptor chain; and
and combining activity realization logic according to the target activity rule to generate a JAR file package, and creating the activity by adopting the JAR file package.
Optionally, in some embodiments, referring to fig. 7, when the flow event is parameter verification, the apparatus further includes:
and the verification module 603 is configured to invoke an interface of a flow event provided by a pre-configured activity creation service according to the activity information to be created, and before creating an activity, invoke an interface of parameter verification to perform parameter verification on the activity type, the extension information and the activity implementation logic respectively.
It should be noted that the explanation of the embodiment of the activity creation method in the foregoing embodiments of fig. 1 to 5 is also applicable to the activity creation device 600 of this embodiment, and the implementation principle is similar, and will not be repeated here.
In this embodiment, since the activity is created by directly calling the interface of the flow event provided by the pre-configured activity creation service according to the activity information to be created, the program code for creating the activity is easy to maintain, the coupling degree of the program code is reduced, and the activity creation effect is improved.
Fig. 8 is a schematic structural diagram of a computer device according to an embodiment of the present application.
Referring to fig. 8, the computer apparatus 800 of the present embodiment includes a housing 801, a processor 802, a memory 803, a circuit board 804, and a power circuit 805, wherein the circuit board 804 is disposed inside a space surrounded by the housing 801, and the processor 802 and the memory 803 are disposed on the circuit board 804; power supply circuitry 805 for powering the various circuits or devices of the computer device 800; the memory 803 is for storing executable program codes; the processor 802 executes a program corresponding to the executable program code by reading the executable program code stored in the memory 803, for executing:
acquiring activity information to be created;
and calling an interface of a flow event provided by a pre-configured activity creation service according to the activity information to be created, and creating the activity.
It should be noted that the explanation of the embodiment of the activity creation method in the foregoing embodiments of fig. 1 to 5 also applies to the computer device 800 of this embodiment, and the implementation principle is similar, and will not be repeated here.
In this embodiment, since the activity is created by directly calling the interface of the flow event provided by the pre-configured activity creation service according to the activity information to be created, the program code for creating the activity is easy to maintain, the coupling degree of the program code is reduced, and the activity creation effect is improved.
In order to implement the above-described embodiments, the present application proposes a non-transitory computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the activity creation method of the foregoing method embodiments.
It should be noted that in the description of the present application, the terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. Furthermore, in the description of the present application, unless otherwise indicated, the meaning of "a plurality" is two or more.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and further implementations are included within the scope of the preferred embodiment of the present application in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the embodiments of the present application.
It is to be understood that portions of the present application may be implemented in hardware, software, firmware, or a combination thereof. In the above-described embodiments, the various steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, may be implemented using any one or combination of the following techniques, as is well known in the art: discrete logic circuits having logic gates for implementing logic functions on data signals, application specific integrated circuits having suitable combinational logic gates, programmable Gate Arrays (PGAs), field Programmable Gate Arrays (FPGAs), and the like.
Those of ordinary skill in the art will appreciate that all or a portion of the steps carried out in the method of the above-described embodiments may be implemented by a program to instruct related hardware, where the program may be stored in a computer readable storage medium, and where the program, when executed, includes one or a combination of the steps of the method embodiments.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing module, or each unit may exist alone physically, or two or more units may be integrated in one module. The integrated modules may be implemented in hardware or in software functional modules. The integrated modules may also be stored in a computer readable storage medium if implemented in the form of software functional modules and sold or used as a stand-alone product.
The above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, or the like.
In the description of the present specification, a description referring to terms "one embodiment," "some embodiments," "examples," "specific examples," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present application. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiments or examples. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
Although embodiments of the present application have been shown and described above, it will be understood that the above embodiments are illustrative and not to be construed as limiting the application, and that variations, modifications, alternatives, and variations may be made to the above embodiments by one of ordinary skill in the art within the scope of the application.

Claims (6)

1. A method of campaign creation, the method comprising:
acquiring activity information to be created;
the obtaining the activity information to be created includes:
acquiring the activity type of the activity to be created;
acquiring extension information and activity realization logic corresponding to the activity type by adopting a service providing interface SPI mechanism, wherein the extension information and the activity realization logic are used for constructing a JAR file package of the activity;
the activity type, the extension information and activity realization logic are used as the activity information to be created together;
creating an activity by calling an interface of a flow event provided by a pre-configured activity creation service according to the activity type, the extension information and activity realization logic; the process event includes: at least one of parameter verification, initializing basic information, initializing extension information, extracting activity rules, storing activities and publishing activities;
when the process event is activity rule extraction, the interface of the process event provided by the pre-configured activity creation service is called according to the activity type, the extension information and activity realization logic to create an activity, and the method comprises the following steps:
calling an interface extracted by the activity rule to construct an interceptor chain;
acquiring a target activity rule corresponding to the activity type and the extension information according to the constructed interceptor chain; and
and generating the JAR file package according to the target activity rule and combining the activity realization logic, and creating the activity by adopting the JAR file package.
2. The method for creating an activity according to claim 1, wherein when the flow event is a parameter check, the interface of the flow event provided by a pre-configured activity creation service is called according to the activity information to be created, and before the activity is created, the method further comprises:
and calling a parameter verification interface to respectively carry out parameter verification on the activity type, the extension information and the activity realization logic.
3. An activity creation device, the device comprising:
the acquisition module is used for acquiring the activity information to be created;
the creation module is used for calling an interface of a flow event provided by a pre-configured activity creation service according to the activity information to be created, and creating an activity;
the acquisition module comprises:
the first acquisition sub-module is used for acquiring the activity type of the activity to be created;
the second acquisition submodule is used for acquiring extension information and activity realization logic corresponding to the activity type by adopting a service providing interface SPI mechanism, wherein the extension information and the activity realization logic are used for constructing a JAR file package of the activity;
the third acquisition sub-module is used for taking the activity type, the extension information and the activity realization logic together as the activity information to be created;
the creation module is specifically configured to:
creating an activity by calling an interface of a flow event provided by a pre-configured activity creation service according to the activity type, the extension information and activity realization logic;
the process event includes:
at least one of parameter verification, initializing basic information, initializing extension information, extracting activity rules, storing activities and publishing activities;
when the flow event is an active rule extraction, the creating module is further configured to:
calling an interface extracted by the activity rule to construct an interceptor chain;
acquiring a target activity rule corresponding to the activity type and the extension information according to the constructed interceptor chain; and
and generating the JAR file package according to the target activity rule and combining the activity realization logic, and creating the activity by adopting the JAR file package.
4. The activity creation apparatus of claim 3 wherein when the flow event is a parameter check, the apparatus further comprises:
and the verification module is used for calling an interface of a flow event provided by a pre-configured activity creation service according to the activity information to be created, and before the activity is created, calling an interface for parameter verification to respectively carry out parameter verification on the activity type, the extension information and the activity realization logic.
5. A non-transitory computer readable storage medium, having stored thereon a computer program, which when executed by a processor implements the activity creation method of any of claims 1-2.
6. A computer device comprising a housing, a processor, a memory, a circuit board, and a power circuit, wherein the circuit board is disposed within a space enclosed by the housing, the processor and the memory being disposed on the circuit board; the power supply circuit is used for supplying power to various circuits or devices of the computer equipment; the memory is used for storing executable program codes; the processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory for executing the activity creating method as claimed in any one of claims 1 to 2.
CN202010544100.6A 2020-06-15 2020-06-15 Activity creation method, apparatus, storage medium and computer device Active CN111857657B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010544100.6A CN111857657B (en) 2020-06-15 2020-06-15 Activity creation method, apparatus, storage medium and computer device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010544100.6A CN111857657B (en) 2020-06-15 2020-06-15 Activity creation method, apparatus, storage medium and computer device

Publications (2)

Publication Number Publication Date
CN111857657A CN111857657A (en) 2020-10-30
CN111857657B true CN111857657B (en) 2024-02-09

Family

ID=72986657

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010544100.6A Active CN111857657B (en) 2020-06-15 2020-06-15 Activity creation method, apparatus, storage medium and computer device

Country Status (1)

Country Link
CN (1) CN111857657B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN119648287A (en) * 2024-11-05 2025-03-18 康键信息技术(深圳)有限公司 Processing method, device and related equipment generated by online operation activities
CN119576307B (en) * 2024-11-13 2025-12-19 杭州网易云音乐科技有限公司 Activity configuration methods, devices, storage media and electronic devices

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103064709A (en) * 2012-12-25 2013-04-24 北京奇虎科技有限公司 Execution method and system of browser moving object and browser
WO2014079277A1 (en) * 2012-11-21 2014-05-30 腾讯科技(深圳)有限公司 Interactive activity generation method, apparatus, and computer storage medium
CN108228175A (en) * 2017-12-29 2018-06-29 深圳乐信软件技术有限公司 Movable backstage development approach, device, server and medium
CN108491408A (en) * 2018-01-24 2018-09-04 北京三快在线科技有限公司 A kind of processing method of action message, device, electronic equipment and storage medium
CN108847948A (en) * 2018-05-29 2018-11-20 网易乐得科技有限公司 The creation method and device of active cluster, medium and calculate equipment
CN108881954A (en) * 2018-06-29 2018-11-23 深圳市酷开网络科技有限公司 A kind of dynamic configuration runs movable method, storage medium and server
CN109582307A (en) * 2018-10-26 2019-04-05 深圳壹账通智能科技有限公司 Movable creation method, device, equipment and storage medium based on unified entrance
CN109766095A (en) * 2018-12-13 2019-05-17 深圳市买买提信息科技有限公司 A kind of thematic page creation method of activity, relevant apparatus and equipment
CN110300082A (en) * 2018-03-21 2019-10-01 腾讯科技(深圳)有限公司 A kind of interface creation method, device and storage medium
CN110363485A (en) * 2018-04-08 2019-10-22 苏州羊群信息科技有限公司 Intelligent social activity creation method and device
CN110908652A (en) * 2019-10-31 2020-03-24 爱钱进(北京)信息科技有限公司 Method and device for creating active page and compiling active page

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9253663B2 (en) * 2009-01-28 2016-02-02 Headwater Partners I Llc Controlling mobile device communications on a roaming network based on device state
US8869235B2 (en) * 2011-10-11 2014-10-21 Citrix Systems, Inc. Secure mobile browser for protecting enterprise data
US9161156B2 (en) * 2013-07-31 2015-10-13 Sap Se Tiles in a mobile application framework

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014079277A1 (en) * 2012-11-21 2014-05-30 腾讯科技(深圳)有限公司 Interactive activity generation method, apparatus, and computer storage medium
CN103064709A (en) * 2012-12-25 2013-04-24 北京奇虎科技有限公司 Execution method and system of browser moving object and browser
CN108228175A (en) * 2017-12-29 2018-06-29 深圳乐信软件技术有限公司 Movable backstage development approach, device, server and medium
CN108491408A (en) * 2018-01-24 2018-09-04 北京三快在线科技有限公司 A kind of processing method of action message, device, electronic equipment and storage medium
CN110300082A (en) * 2018-03-21 2019-10-01 腾讯科技(深圳)有限公司 A kind of interface creation method, device and storage medium
CN110363485A (en) * 2018-04-08 2019-10-22 苏州羊群信息科技有限公司 Intelligent social activity creation method and device
CN108847948A (en) * 2018-05-29 2018-11-20 网易乐得科技有限公司 The creation method and device of active cluster, medium and calculate equipment
CN108881954A (en) * 2018-06-29 2018-11-23 深圳市酷开网络科技有限公司 A kind of dynamic configuration runs movable method, storage medium and server
CN109582307A (en) * 2018-10-26 2019-04-05 深圳壹账通智能科技有限公司 Movable creation method, device, equipment and storage medium based on unified entrance
CN109766095A (en) * 2018-12-13 2019-05-17 深圳市买买提信息科技有限公司 A kind of thematic page creation method of activity, relevant apparatus and equipment
CN110908652A (en) * 2019-10-31 2020-03-24 爱钱进(北京)信息科技有限公司 Method and device for creating active page and compiling active page

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
A Java-Based Agent Platform for Programming Wireless Sensor Networks;Francesco Aiello;《The Computer Journal ( Volume: 54, Issue: 3, March 2011)》;1-6 *
基于J2EE的电信经分营销平台的设计与实现;刘杲;《万方》;1-67 *
校园网环境下统一身份认证系统的研究与实现;贺甲宁;《中国优秀硕士学位论文全文数据库 (信息科技辑)》;I139-689 *

Also Published As

Publication number Publication date
CN111857657A (en) 2020-10-30

Similar Documents

Publication Publication Date Title
US10452372B2 (en) Method and deployment module for managing a container to be deployed on a software platform
CN112363794B (en) Rendering method of front-end list component and electronic equipment
US8479153B2 (en) Abstracting transformation for model driven architecture
CN110532020A (en) A kind of data processing method of micro services layout, apparatus and system
US10594800B2 (en) Platform runtime abstraction
JP7048663B2 (en) Code execution methods, devices, rendering devices, storage media, and programs
US10949171B1 (en) Tools, mechanisms, and processes for transforming modules for an application into pluggable modules
CN106997298A (en) A kind of application resource acquisition methods and device
JP7010562B2 (en) Wrapping method, registration method, device, rendering device, and program
CN103858071A (en) An extensible framework which enables the management of disparately located heterogeneous systems requiring command & control, situational awareness, operations management and other specific capabilities
CN111857657B (en) Activity creation method, apparatus, storage medium and computer device
CN115268861B (en) Introduction method, system, equipment and storage medium of custom component
CN103530338A (en) Frame for carrying out page rendering on calculation equipment and page generation method
WO2021129812A1 (en) Method and system for running artificial intelligence application, and device
CN112631563A (en) System development method and device based on framework, computer equipment and storage medium
CN111488144B (en) Data processing method and device
CN113656041A (en) Data processing method, device, equipment and storage medium
US9996344B2 (en) Customized runtime environment
CN112527251B (en) Business processing method, device, electronic device and storage medium
CN110673827B (en) Android system-based resource calling method, device, and electronic equipment
CN110599112B (en) Network page development and maintenance method and device
US7844978B2 (en) Artifact management for an extensible runtime environment
CN117873597A (en) Method and system for realizing API arrangement through visual configuration mode
CN113778542B (en) Service configuration table generation method and device
CN100401259C (en) A service provision method for a distributed service system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant