Activity model generation method and apparatus, electronic device, and storage medium
By generating activity models, the problem of redundant construction and cross-channel reuse of activity management systems in different departments within insurance companies has been solved, enabling flexible adaptation to business changes and simplifying the activity creation process.
Patent Information
- Application Number
- CN202210689182.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-17
- Publication Date
- 2025-12-23
- Estimated Expiration
- 2042-06-17
AI Technical Summary
The lack of a unified architecture design in the activity management systems of different departments within existing insurance companies leads to redundant construction and inability to reuse systems across channels, making it difficult to flexibly adapt to business changes.
By acquiring the process text of historical events, extracting the event element set, organizing the event map based on domain-driven design rules, refining common business terms, dividing the event subdomains, and adjusting the microservice code model, an event model is generated.
It enables cross-channel system reuse, flexibly adapts to business changes, improves the convenience of event design, and simplifies the event creation process.
Smart Images

Figure CN115033229B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] Embodiments of the present application relate to, but are not limited to the field of artificial intelligence, and in particular to an activity model generation method and device, electronic equipment and computer readable storage medium. BACKGROUND
[0002] At present, there are respective activity management systems in different departments of an insurance company; when a new activity needs to be carried out, product design and development need to be re-performed, and are limited by business fields, without unified architecture design; and a chimney type construction is adopted, many independent applications are developed in different business fields, without depositing general capabilities, repeated construction exists, cannot flexibly adapt to business changes, and cross-channel system reuse cannot be achieved. SUMMARY
[0003] The following is a summary of the subject matter described in detail herein. This summary is not intended to limit the scope of the claims.
[0004] In order to solve the problems mentioned in the background art, the embodiments of the present application provide an activity model generation method, device, electronic equipment and computer readable storage medium, which can solve the problem of cross-channel system reuse.
[0005] In a first aspect, the embodiments of the present application provide an activity model generation method, which comprises:
[0006] Obtaining a flow text of a historical activity event, performing element extraction on the flow text of the historical activity event to obtain an activity element set;
[0007] Based on a preset domain-driven design rule, the activity element set is arranged to obtain an activity event map;
[0008] The activity event map is refined to obtain a plurality of general business terms;
[0009] The plurality of general business terms are processed for responsibility division to obtain a plurality of activity sub-domains;
[0010] Based on the plurality of activity sub-domains, a preset micro-service code model is adjusted and processed to obtain an activity model.
[0011] According to the activity model generation method provided in the embodiments of the present application, the following beneficial effects are achieved. First, the flow text of historical activity events is acquired, and then the activity element set is obtained by performing element extraction on the flow text of historical activity events. Then, the activity event map is obtained by performing arrangement on the activity element set based on a preset domain-driven design rule. Then, the plurality of general business terms are obtained by performing abstraction on the activity event map. Then, the plurality of activity sub-domains are obtained by performing responsibility division processing on the plurality of general business terms. Finally, the preset micro-service code model is adjusted and processed to obtain the activity model based on the plurality of activity sub-domains. Through the above technical solutions, different business domains are fused, and the problem of cross-channel system reuse can be solved, and the business change situation can be flexibly adapted.
[0012] According to some embodiments of the present application, the activity event map is obtained by arranging the activity elements based on a preset domain-driven design rule, which includes:
[0013] The elements in the activity element set are classified according to a preset element type, and event information, command information, subject information and input information are obtained.
[0014] The event information, the command information, the subject information and the input information are integrated and processed based on a preset activity management process rule, and the activity event map is obtained.
[0015] According to some embodiments of the present application, the plurality of general business terms are obtained by abstracting the activity event map, which includes:
[0016] A plurality of domain nouns are extracted from the activity event map.
[0017] The plurality of domain nouns are divided and named to obtain a plurality of general business terms.
[0018] The plurality of general business terms include activity management, activity approval, incentive management, activity monitoring, activity intervention, index analysis and activity user.
[0019] According to some embodiments of the present application, the plurality of activity sub-domains are obtained by performing responsibility division processing on the plurality of general business terms, which includes:
[0020] The plurality of general business terms are analyzed and processed to obtain level association information.
[0021] A plurality of responsibility boundary sub-domains are established based on the plurality of general business terms and the level association information.
[0022] The plurality of domain nouns corresponding to each general business term are divided into the corresponding responsibility boundary sub-domain, and the plurality of activity sub-domains are obtained.
[0023] According to some embodiments of the present application, after the corresponding plurality of domain nouns are divided into the corresponding responsibility boundary subdomains according to the plurality of general business terms to obtain the plurality of activity subdomains, the method further comprises:
[0024] performing second analysis processing on the plurality of general business terms to obtain data flow information;
[0025] updating the plurality of activity subdomains according to the data flow information.
[0026] According to some embodiments of the present application, the adjusting processing on the preset micro-service code model based on the plurality of activity subdomains to obtain an activity model comprises:
[0027] establishing a domain model based on the updated activity subdomains;
[0028] mapping the domain nouns in the domain model with code objects in the micro-service code model to obtain the activity model.
[0029] According to some embodiments of the present application, the responsibility boundary subdomain comprises an activity approval subdomain, an activity user subdomain, an index analysis subdomain, an activity intervention subdomain, an activity monitoring subdomain, an incentive management subdomain and an activity management subdomain.
[0030] In a second aspect, the embodiments of the present application further provide an activity model generation device, the device comprising:
[0031] a first processing module configured to acquire a flow text of a historical activity event, and perform element extraction on the flow text of the historical activity event to obtain an activity element set;
[0032] a second processing module configured to perform arrangement on the activity element set based on a preset domain-driven design rule to obtain an activity event map;
[0033] a third processing module configured to perform extraction on the activity event map to obtain a plurality of general business terms;
[0034] a fourth processing module configured to perform responsibility division processing on the plurality of general business terms to obtain a plurality of activity subdomains;
[0035] a fifth processing module configured to perform adjusting processing on a preset micro-service code model based on the plurality of activity subdomains to obtain an activity model.
[0036] In a third aspect, the embodiments of the present application further provide an electronic device, comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the activity model generation method of the first aspect as described above when executing the computer program.
[0037] In a fourth aspect, an embodiment of the present application further provides a computer readable storage medium, which stores computer executable instructions for executing the activity model generation method according to the first aspect.
[0038] Other features and advantages of the present application will be set forth in the following description, and in part will become apparent from the description, or can be learned by practice of the present application. The objects and other advantages of the present application will be realized and attained by the structure particularly pointed out in the written description and claims thereof as well as the appended drawings. BRIEF DESCRIPTION OF DRAWINGS
[0039] The accompanying drawings, which are incorporated herein and form a part of the specification, illustrate the present application and, together with the description, further serve to explain the principles of the application and to enable a person skilled in the pertinent art to make and use the application.
[0040] Figure 1 is a flowchart of the activity model generation method according to an embodiment of the present application;
[0041] Figure 2 is a flowchart of generating the activity event map in the activity model generation method according to an embodiment of the present application;
[0042] Figure 3 is a flowchart of generating the general business terms in the activity model generation method according to an embodiment of the present application;
[0043] Figure 4 is a flowchart of generating the activity sub-domain in the activity model generation method according to an embodiment of the present application;
[0044] Figure 5 is a flowchart of updating the activity sub-domain in the activity model generation method according to an embodiment of the present application;
[0045] Figure 6 is a flowchart of generating the activity model in the activity model generation method according to an embodiment of the present application;
[0046] Figure 7 is a schematic diagram of the activity event map according to an embodiment of the present application;
[0047] Figure 8 is a schematic diagram of the domain noun induction according to an embodiment of the present application;
[0048] Figure 9 is a schematic diagram of the activity sub-domain according to an embodiment of the present application;
[0049] Figure 10is a schematic diagram of an activity model generation apparatus provided by an embodiment of the present application;
[0050] Figure 11 is a schematic diagram of an electronic device provided by an embodiment of the present application. DETAILED DESCRIPTION
[0051] For the purpose of the present application, the technical solutions and advantages are more clearly and intelligibly, the present application is further described in detail below in combination with the drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application, and are not intended to limit the present application.
[0052] It should be noted that although the functional modules are divided in the device schematic diagram, and the logical order is shown in the flowchart, in some cases, the steps shown or described can be performed in a manner different from the module division in the device or the order in the flowchart. The terms "first", "second", and the like in the specification and claims and the above-described drawings are used to distinguish similar objects, and do not necessarily describe a specific order or sequence.
[0053] It should be noted that unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which the present application belongs. The terms used herein are only for the purpose of describing the embodiments of the present application, and are not intended to limit the present application.
[0054] The embodiments of the present application can acquire and process related data based on artificial intelligence technology. Among them, artificial intelligence (Artificial Intelligence, AI) is to use digital computers or digital computer controlled machines to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results. Theory, method, technology and application system.
[0055] AI is a new technical science that studies and develops theories, methods, technologies and application systems for simulating, extending and expanding human intelligence; artificial intelligence is a branch of computer science, and artificial intelligence attempts to understand the essence of intelligence and produce a new intelligent machine that can react in a similar way to human intelligence. The field of research includes robots, language recognition, image recognition, natural language processing and expert systems. Artificial intelligence can simulate the information process of human consciousness and thinking. Artificial intelligence is also a theory, method, technology and application system for using digital computers or digital computer controlled machines to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.
[0056] The basic technologies of artificial intelligence generally include technologies such as sensors, special artificial intelligence chips, cloud computing, distributed storage, big data processing technologies, operation / interaction systems, mechatronics, and the like. The software technologies of artificial intelligence mainly include computer vision technologies, robot technologies, biometric identification technologies, speech processing technologies, natural language processing technologies, and machine learning / deep learning, and the like.
[0057] Artificial intelligence, namely AI, is a theory, method, technology and application system for simulating, extending and expanding human intelligence by using a digital computer or a machine controlled by a digital computer, perceiving an environment, acquiring knowledge and using the knowledge to obtain optimal results.
[0058] The server related to the artificial intelligence technology can be an independent server, or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDNs, and big data and artificial intelligence platforms.
[0059] The application provides an activity model generation method and device, electronic equipment and computer readable storage medium. The method comprises the following steps: obtaining a flow text of a historical activity event; extracting elements of the flow text of the historical activity event to obtain an activity element set; arranging the activity element set based on a preset domain-driven design rule to obtain an activity event map; refining the activity event map to obtain a plurality of general business terms; performing responsibility division processing on the plurality of general business terms to obtain a plurality of activity sub-domains; and adjusting a preset micro-service code model based on the plurality of activity sub-domains to obtain an activity model. The above technical solution can improve the convenience of activity design.
[0060] The activity model generation method provided by the application embodiment relates to the technical field of data communication. The activity model generation method provided by the application embodiment can be applied in a terminal, can be applied in a server end, and can also be software running in a terminal or a server end. In some embodiments, the terminal can be a smart phone, a tablet computer, a notebook computer, a desktop computer, etc. The server end can be configured as an independent physical server, can be configured as a server cluster or a distributed system composed of multiple physical servers, can also be configured as a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDNs, and big data and artificial intelligence platforms, etc. The software can be an application for implementing the activity model generation method, but is not limited to the above forms.
[0061] The application is operable in a multitude of general or special computer system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments that include any of the above systems or devices, and the like. The application can be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, and the like, that perform particular tasks or implement particular abstract data types. The application can also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules can be located in local and remote computer storage media including memory storage devices.
[0062] It should be noted that in each specific embodiment of the present application, when it is necessary to process relevant data related to the identity or characteristics of the user according to user information, user behavior data, user history data, and user location information, etc., the user's permission or consent will be obtained first, and the collection, use and processing of these data will comply with relevant laws, regulations and standards of the country and region. In addition, when the embodiments of the present application need to obtain sensitive personal information of the user, the separate permission or separate consent of the user will be obtained through a pop-up window or a jump to a confirmation page, and after obtaining the separate permission or separate consent of the user, the necessary user-related data for enabling the embodiments of the present application to normally operate will be obtained.
[0063] The embodiments of the present application will be further described below with reference to the accompanying drawings.
[0064] As shown in Figure 1 , Figure 1 is a flowchart of an activity model generation method provided by an embodiment of the present application. The activity model generation method includes but is not limited to steps S100 to S500.
[0065] Step S100, obtaining a flow text of a historical activity event, performing element extraction on the flow text of the historical activity event to obtain an activity element set;
[0066] Step S200, arranging the activity element set based on a preset domain-driven design rule to obtain an activity event map;
[0067] Step S300, refining the activity event map to obtain a plurality of general business terms;
[0068] Step S400, performing responsibility division processing on the plurality of general business terms to obtain a plurality of activity sub-domains;
[0069] In step S500, the preset micro-service code model is adjusted based on the plurality of active sub-domains to obtain an active model.
[0070] It should be noted that the flow text of the historical active event is first acquired, and then the flow text of the historical active event is subjected to element extraction processing to obtain an active element set; then the active element set is sorted based on a preset domain-driven design rule to obtain an active event map; then the active event map is refined to obtain a plurality of general business terms; then the plurality of general business terms are subjected to responsibility division processing to obtain a plurality of active sub-domains; and finally, the preset micro-service code model is adjusted based on the plurality of active sub-domains to obtain an active model; through the above technical solution, the problem of repeated construction is overcome, the situation of business change can be flexibly adapted, the effect of cross-channel system reuse is achieved, the convenience of active creation is improved, and the process of active creation is simplified.
[0071] It should be noted that the active element set can be obtained by element extraction from the flow text of the historical active event; because the flow text of the historical active event contains relevant active elements in the past active process, the active element set can be obtained by element extraction from the flow text of the historical active event, so as to prepare for subsequent active model creation; the active element set includes a plurality of active elements; for example, the active element set can include a sponsor, active creation, active creation, a system, a new template, generation of a check-in two-dimensional code, generation of an active link, active personnel, generation of a questionnaire, association with incentives, confirmation of registration results, and the like.
[0072] It should be noted that the flow text of the historical active event is a text composed of a plurality of active elements, wherein the active elements are obtained according to the historical active event; it can be understood that the elements that have appeared in the historical active event can be identified as active elements.
[0073] It should be noted that domain-driven design (Domain Driven Design, DDD) is a software development method for meeting complex requirements by connecting implementation to a continuously evolving model. The premise of domain-driven design is to focus on the core domain and domain logic of the project, place complex design on the model of a bounded domain, initiate a creative collaboration between technical and domain experts to iteratively refine the conceptual model to solve problems in a specific domain, and domain-driven design is an idea of driving system design by domain model, not by storing data dictionary to drive system design. The domain model is an abstraction of the business model, and DDD is a way to translate the business model into system architecture design.
[0074] It is worth noting that DDD is a set of systems for dealing with complex business systems with emphasis on the field. Or the field logic design method of business system control design quality. Event storm is a good way to explore the business field. The output of event storm corresponds to the unified language of DDD and the field analysis in strategic design. To divide the bounded context.
[0075] It is worth noting that the "activity center" is built with the field-driven design methodology. According to certain rules, the business field is subdivided, the problems to be solved are limited within a certain boundary, the "activity" sub-domain is analyzed in detail, the shared capabilities in the "activity" business process are identified, and these shared capabilities are deposited as common capabilities. Through the common capabilities deposited, service reuse is realized, and the goal of cost reduction and efficiency improvement is achieved. On the other hand, by accumulating and depositing business and IT knowledge, it is conducive to mutual understanding between business personnel and IT personnel, better knowledge inheritance, and improvement of work coordination and system satisfaction rate. It provides cross-entity, cross-field, and cross-channel three-layer reuse capabilities for the whole channel, realizes one-time development and multi-party benefit, and achieves the effect of middle platform.
[0076] In some embodiments, as shown in Figure 2 The above step S200 can include but is not limited to steps S210 to S220.
[0077] Step S210, classifying each element in the set of activity elements according to a preset element type to obtain event information, command information, subject information and input information;
[0078] Step S220, integrating and processing the event information, command information, subject information and input information based on a preset activity management process rule to obtain an activity event map.
[0079] It should be noted that first, according to the preset element type, each element in the set of activity elements is classified to obtain event information, command information, subject information and input information; then, based on the preset activity management process rule, the event information, command information, subject information and input information are integrated and processed to obtain the activity event map.
[0080] It should be noted that each activity event map is composed of event information, command information, subject information and input information, and the activity event map can be obtained by integrating these parts. For example, for the template activity event, the event information is that the template has been added, the command information is to add the template, the subject information is the sponsor, and the input information is the activity information; for the incentive activity event, the event information is that the activity approval application has been submitted, the command information is to associate the incentive, the subject information is the system, and the input information is the incentive information; for the activity publishing activity event, the event information is that the activity has been published, the command information is to publish the activity, the subject information is the system, and the input information is the activity information; for the two-dimensional code activity event, the event information is that the check-in two-dimensional code has been generated, the command information is to generate the check-in two-dimensional code, the subject information is the system, and the input information is the activity information.
[0081] It should be noted that the activity management process rule is an activity composition rule set according to previous experience; it can be understood that the activity composition rule is which activity elements a certain activity needs to be composed of, and the selection of these activity elements can be based on previous experience; for example, for the two-dimensional code activity event, the activity element of the two-dimensional code generated is the event information of the two-dimensional code activity event, the activity element of generating the check-in two-dimensional code is the command information of the two-dimensional code activity event, the activity element of the system is the subject information of the two-dimensional code activity event, and the activity element of the activity information is the input information of the two-dimensional code activity event. The above four activity elements are integrated to obtain the two-dimensional code activity event.
[0082] In some embodiments, as shown in Figure 3 The step S300 can include but is not limited to steps S310-S320.
[0083] Step S310, extracting a plurality of field nouns from the activity event map;
[0084] Step S320, dividing and naming the plurality of field nouns to obtain a plurality of general business terms; wherein the plurality of general business terms include: activity management, activity approval, incentive management, activity monitoring, activity intervention, index analysis and activity user.
[0085] It should be noted that first, a plurality of field nouns are extracted from the activity event map; then the plurality of field nouns are divided and named to obtain a plurality of general business terms; wherein the plurality of general business terms can include: activity management, activity approval, incentive management, activity monitoring, activity intervention, index analysis and activity user.
[0086] It is worth noting that the domain nouns in the embodiments of the present application can include: activities, activity approval, activity check-in, activity link, crowd circle, registration result, activity personnel, activity template, approved activities, questionnaire, draw, activity personnel tag, activity feedback, draw record, incentive, activity monitoring, intervention activities and index analysis items, etc.
[0087] It should be noted that there are multiple activity elements in the activity event map, keyword recognition processing is performed on the multiple activity elements, activity elements with the same keyword are classified into the same set, and then general naming processing is performed on the multiple activity elements in the set to obtain the corresponding domain noun; for example, the activity event map includes four activity elements of generating a check-in two-dimensional code, a check-in two-dimensional code has been generated, scanning a code to check in, and a customer has checked in, keyword recognition processing is performed on the four activity elements, the four activity elements all have the keyword "check-in", therefore the four activity elements can be classified into the same set, and then general naming processing is performed on the four activity elements in the set to obtain the domain noun of activity check-in.
[0088] It should be noted that semantic recognition processing is performed on multiple domain nouns to obtain multiple semantic recognition results; then, matching processing is performed on every two semantic recognition results to obtain matching results, two domain nouns with matching results greater than a preset threshold are classified into the same set, and finally general naming processing is performed on the multiple domain nouns in the same set to obtain a general business term; for example, for the three domain nouns of intervention person, manual intervention and system intervention, semantic recognition processing is performed on the three domain nouns, then matching processing is performed on every two recognition results, it is found that the matching results of every two domain nouns are greater than the preset threshold, therefore the three recognition results are divided into the same set, and then general naming processing is performed on the set to obtain the general business term of activity intervention.
[0089] It is worth noting that the general business terms in the embodiments of the present application can include: activity management, activity approval, incentive management, activity monitoring, activity intervention, index analysis and activity user; for example, the activity user includes multiple domain nouns such as organizer, activity personnel and activity personnel tag; the activity intervention includes multiple domain nouns such as intervention person, manual intervention and system intervention; the incentive management includes multiple domain nouns such as incentive and draw; the activity monitoring includes multiple domain nouns such as activity data, trigger rule, early warning information, monitoring object, notification method and notification flow.
[0090] In some embodiments, as shown in FIG. 4B, Figure 4 The step S400 can include, but is not limited to, steps S410 to S430.
[0091] In step S410, the first analysis processing is performed on the plurality of common business terms to obtain the level correlation information.
[0092] In step S420, the plurality of responsibility boundary sub-domains are established based on the plurality of common business terms and the level correlation information.
[0093] In step S430, the corresponding plurality of domain nouns are divided into the corresponding responsibility boundary sub-domains according to the respective common business terms, and the plurality of activity sub-domains are obtained.
[0094] It should be noted that the first analysis processing is performed on the plurality of common business terms to obtain the level correlation information; then the plurality of responsibility boundary sub-domains are established based on the plurality of common business terms and the level correlation information; finally, the corresponding plurality of domain nouns are divided into the corresponding responsibility boundary sub-domains according to the respective common business terms, and the plurality of activity sub-domains are obtained.
[0095] It should be noted that different common business terms have different level attributes, and the different common business terms have corresponding level correlation information; for example, the superior business term of activity monitoring, incentive management, activity approval, activity user and index analysis is activity management. The first analysis processing is performed on a common business term, i.e. the semantic interpretation processing is performed on the common business term, to obtain the level attribute corresponding to the common business term and the correlation information between the common business term and other common business terms, i.e. the level correlation information of the common business term.
[0096] It should be noted that the responsibility boundary sub-domain corresponding to a common business term can include a plurality of domain nouns; for example, the responsibility boundary sub-domain corresponding to activity management includes activity, activity template, activity link, crowd circle, activity registration, activity list, sponsor, questionnaire, activity check-in and activity feedback; the responsibility boundary sub-domain corresponding to activity monitoring includes activity data, trigger rule, early warning information, monitoring object, notification method and notification flow; the responsibility boundary sub-domain corresponding to activity intervention includes intervention person, manual intervention and system intervention; the responsibility boundary sub-domain corresponding to incentive management includes incentive and lottery; the responsibility boundary sub-domain corresponding to activity approval includes approved activity; the responsibility boundary sub-domain corresponding to activity user includes sponsor, activity personnel and activity personnel tag; and the responsibility boundary sub-domain corresponding to index analysis includes index analysis item.
[0097] It can be understood that the responsibilities of the business of the implementation of the "activity" sub-domain are comprehensively considered to determine the responsibility boundary of the sub-domain, all "domain nouns" related to the functions of the sub-domain are placed in the same "bounded context" (a general language and domain object used to encapsulate in a limited context environment) boundary, and all "domain nouns" unrelated to the functions of the sub-domain are excluded from the context boundary. The "bounded context" is a mandatory boundary that can ensure the singleness of the sub-domain responsibilities and the purity of the subsequent domain model. That is, the bounded context determines the micro-service splitting and design boundary, and lays the foundation for domain modeling.
[0098] In some embodiments, as shown in Figure 5 The above step S430 can include but is not limited to step S440 and step S450.
[0099] Step S440, the second analysis processing of the plurality of general business terms obtains data flow information;
[0100] Step S450, updating the plurality of activity sub-domains according to the data flow information.
[0101] It should be noted that the data flow information can be obtained by first performing second analysis processing on the plurality of general business terms; and then updating the plurality of activity sub-domains according to the data flow information.
[0102] It should be noted that the first analysis processing of the general business terms obtains the level association information of the general business terms; wherein the level association information includes attribute information of the general business terms and association information between other general business terms; the second analysis processing of the association information, that is, the interpretation processing of the association information, can obtain the data flow information between different general business terms.
[0103] It should be noted that the responsibility boundary sub-domain corresponding to one general business term can include a plurality of domain nouns; for example, the responsibility boundary sub-domain corresponding to the activity management includes activities, activity templates, activity links, crowd delineation, activity registration, activity list, sponsors, questionnaires, activity check-in, and activity feedback; the responsibility boundary sub-domain corresponding to the activity monitoring includes activity data, trigger rules, early warning information, monitoring objects, notification methods, and notification procedures; the responsibility boundary sub-domain corresponding to the activity intervention includes intervention persons, manual intervention, and system intervention; the responsibility boundary sub-domain corresponding to the incentive management includes incentives and lotteries; the responsibility boundary sub-domain corresponding to the activity approval includes approved activities; the responsibility boundary sub-domain corresponding to the activity user includes sponsors, activity personnel, and activity personnel tags; and the responsibility boundary sub-domain corresponding to the index analysis includes index analysis items.
[0104] It is worth noting that there is a corresponding data flow between different activity sub-domains; for example, for the activity sub-domain of activity monitoring, the activity sub-domain of activity management is upstream, and the activity sub-domain of activity intervention is downstream; for the activity sub-domain of incentive management, the activity sub-domain of activity management is upstream; for the activity sub-domain of activity approval, the activity sub-domain of activity management is upstream; for the activity sub-domain of activity user, the activity sub-domain of activity management is upstream; for the activity sub-domain of index analysis, the activity sub-domain of activity management is upstream. In some embodiments, as shown in Figure 6 The step S500 can include but is not limited to step S510 and step S520.
[0105] Step S510, establishing a domain model based on the updated activity sub-domain;
[0106] Step S520, mapping the domain nouns in the domain model with the code objects in the micro-service code model to obtain an activity model.
[0107] It should be noted that first, the domain model is established based on the updated activity sub-domain; then the domain nouns in the domain model are mapped with the code objects in the micro-service code model to obtain the activity model.
[0108] It can be understood that the domain model of the common language is used as the input of the micro-service design, and the code model of the micro-service is derived from the domain model, and the code objects of the code model are one-to-one mapped with the domain nouns in the domain model. Only when the common language is unified throughout the application construction process and correct transmission and mapping are performed, the consistency of business requirements and system landing can be ensured.
[0109] In some embodiments, the responsibility boundary sub-domain includes an activity approval sub-domain, an activity user sub-domain, an index analysis sub-domain, an activity intervention sub-domain, an activity monitoring sub-domain, an incentive management sub-domain, and an activity management sub-domain. The activity approval sub-domain includes approval activity domain nouns; the incentive management sub-domain includes incentive and lottery domain nouns; the activity monitoring sub-domain includes activity data, trigger rules, early warning information, monitoring objects, notification methods, and notification procedures; the activity intervention sub-domain includes intervention persons, manual intervention, and system intervention domain nouns; the index analysis sub-domain includes index analysis items domain nouns; the activity user sub-domain includes activity personnel and activity personnel tags domain nouns; and the activity management sub-domain includes activity, activity template, activity link, crowd circle, activity registration, activity list, sponsor, questionnaire, activity check-in, and activity feedback domain nouns.
[0110] In order to more clearly illustrate the process of the activity model generation method provided by the embodiments of the present application, a specific example is used for illustration.
[0111] AsFigure 7 As shown, one embodiment of this application also provides an event map, which includes multiple event events. For example, the event creation event includes event elements such as organizer, event information, incentive information, event creation, and event creation; the template addition event includes event elements such as organizer, event information, template addition, and template addition.
[0112] like Figure 8 As shown, one embodiment of this application also provides a domain terminology summarization diagram. By summarizing the corresponding activity elements based on the activity event map, the corresponding domain terms can be obtained. For example, submitting an activity approval application, passing an activity approval application, activity approval application submitted, activity approval application approved, and activity approval application rejected can be summarized as activity approval domain terms; generating a check-in QR code, scanning the code to check in, check-in QR code generated, and customer checked in can be summarized as activity check-in domain terms; confirming the registration result, registration successful, and registration failed can be summarized as registration result domain terms.
[0113] like Figure 9 As shown, one embodiment of this application also provides activity subdomains. Exemplarily, the activity approval activity subdomain includes the domain terms "approval activity" and "automated office management"; the activity user activity subdomain includes the domain terms "organizer," "activity personnel," and "activity personnel tags"; and the activity intervention activity subdomain includes the domain terms "intervener," "human intervention," and "system intervention." It is worth noting that there are data pointers between the interconnected activity subdomains. Figure 9 In this context, U represents upstream data and D represents downstream data.
[0114] In addition, such as Figure 10 As shown, one embodiment of this application also provides an activity model generation apparatus 10, comprising:
[0115] The first processing module 100 is used to obtain the process text of historical event activities, extract elements from the process text of historical event activities, and obtain a set of event elements.
[0116] The second processing module 200 is used to organize the activity element set based on preset domain-driven design rules to obtain an activity event map;
[0117] The third processing module 300 is used to extract multiple common business terms from the activity event map;
[0118] The fourth processing module 400 is used to perform responsibility division processing on multiple common business terms to obtain multiple activity subdomains;
[0119] The fifth processing module 500 is configured to adjust a preset micro-service code model based on the plurality of activity sub-domains to obtain an activity model.
[0120] In an embodiment, a flow of historical activity events is first acquired, and then element extraction processing is performed on the flow of historical activity events to obtain an activity element set. Then, the activity element set is sorted based on a preset domain-driven design rule to obtain an activity event map. Then, the activity event map is refined to obtain a plurality of general business terms. Then, the plurality of general business terms are subjected to responsibility division processing to obtain a plurality of activity sub-domains. Finally, a preset micro-service code model is adjusted based on the plurality of activity sub-domains to obtain an activity model. Through the above technical solution, the problem of repeated construction is overcome, the situation of flexible adaptation to business changes is achieved, the effect of cross-channel system reuse is achieved, the convenience of activity creation is improved, and the process of activity creation is greatly simplified.
[0121] It should be noted that element extraction from historical activity events can obtain an activity element set. Because the historical activity events contain activity elements related in the past activity process, element extraction can be performed on the flow of historical activity events to obtain an activity element set, so as to prepare for subsequent activity model creation. The activity element set includes a plurality of activity elements. For example, the activity element set can include a sponsor, activity creation, activity has been created, a system, a new template, generation of a check-in two-dimensional code, generation of an activity link, activity personnel, generation of a questionnaire, association with incentives, and confirmation of registration results.
[0122] The specific implementation of the activity model generation apparatus is basically the same as that of the above-mentioned activity model generation method, and will not be described here.
[0123] In addition, as shown in Figure 11 , one embodiment of the present application also provides an electronic device 700, which includes a memory 710, a processor 720, and a computer program stored in the memory 710 and executable on the processor 720.
[0124] The processor 720 and the memory 710 can be connected by a bus or other means.
[0125] The non-transitory software programs and instructions required to implement the activity model generation method of the above-mentioned embodiments are stored in the memory 710, and when executed by the processor 720, the activity model generation method of each of the above-mentioned embodiments is executed, for example, the method steps S100 to S500 in the above-described Figure 1 , the method steps S210 to S220 in the above-described Figure 2 , the method steps S310 to S320 in the above-described Figure 3 , and the method steps S410 to S420 in the above-described Figure 4the method steps S410-S430 in the method of Figure 5 the method steps S440-S450 in the method of Figure 6 the method steps S510-S520 in the method of
[0126] The device embodiments described above are merely illustrative, wherein the units described as separate components can or can not be physically separate, i.e., can be located in one place, or can be distributed to multiple network units. Part or all of the modules can be selected according to actual needs to achieve the purpose of the embodiment.
[0127] In addition, one embodiment of the present application also provides a computer readable storage medium, which stores computer executable instructions, the computer executable instructions are executed by a processor 720 or a controller, for example, executed by a processor 720 in the above device embodiment, so that the above processor 720 executes the activity model generation method in the above embodiment, for example, executes the above described Figure 1 the method steps S100-S500 in the method of Figure 2 the method steps S210-S220 in the method of Figure 3 the method steps S310-S320 in the method of Figure 4 the method steps S410-S430 in the method of Figure 5 the method steps S440-S450 in the method of Figure 6 the method steps S510-S520 in the method of
[0128] The above embodiments can be used in combination, and the modules with the same name in different embodiments can be the same or different.
[0129] The above describes specific embodiments of the present application, other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be executed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily have to be implemented in the specific order shown or in a continuous order to achieve the desired results. In some embodiments, multi-task processing and parallel processing are possible or can be advantageous.
[0130] Each of the embodiments in the present application is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment mainly describes the difference from other embodiments. Especially, for the device, equipment, computer readable storage medium embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the part of the method embodiment.
[0131] The device, the equipment, the computer readable storage medium and the method provided by the embodiments of the present application are corresponding, therefore, the device, the equipment, the nonvolatile computer storage medium also has similar beneficial technical effects as the corresponding method, since the beneficial technical effects of the method have been described in detail above, therefore, the beneficial technical effects of the corresponding device, equipment, computer storage medium will not be described here.
[0132] In the 1990s, it was relatively easy to distinguish whether an improvement in a technology was a hardware improvement (e.g., an improvement in the circuit structure of a diode, transistor, switch, etc.) or a software improvement (an improvement in a method flow). However, as technology has evolved, many improvements in method flows today can be considered as direct improvements in hardware circuit structures. Designers almost always obtain the corresponding hardware circuit structures by programming the improved method flows into hardware circuits. Therefore, it cannot be said that an improvement in a method flow cannot be implemented using hardware entity modules. For example, a programmable logic device (PLD) (e.g., a field programmable gate array (FPGA)) is an integrated circuit whose logic function is determined by user programming of the device. A digital system is "integrated" on a PLD by the designer programming the PLD, rather than by ordering a chip manufacturer to design and fabricate a custom integrated circuit chip. Moreover, instead of manually fabricating integrated circuit chips, this programming is now mostly implemented using "logic compiler" software, which is similar to software compilers used in program development, and the original code to be compiled is written in a specific programming language, which is called a hardware description language (HDL), and there are many such languages, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc., and the most commonly used are VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should be aware that, as long as the method flow is logically programmed in one of the above-mentioned hardware description languages and programmed into an integrated circuit, a hardware circuit implementing the logical method flow can be easily obtained.
[0133] The controller can be implemented in any suitable way, for example, the controller can take the form of a microprocessor or processor and a computer readable medium storing computer readable program code, such as software or firmware, executable by the (micro)processor, logic gates, switches, an application specific integrated circuit (ASIC), a programmable logic controller and an embedded microcontroller, examples of which include but are not limited to the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20 and Silicone Labs C8051F320, the memory controller can also be implemented as part of the control logic of the memory. Those skilled in the art will also know that, in addition to being implemented in pure computer readable program code, the controller can also be implemented to perform the same functions in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers and embedded microcontrollers, etc. by logically programming the method steps. Therefore, such a controller can be considered as a hardware component, and the means included therein for implementing various functions can also be considered as structures within the hardware component. Alternatively, the means for implementing various functions can even be considered as both a software module implementing a method and a structure within a hardware component.
[0134] The systems, apparatuses, modules or units illustrated by the above embodiments can be specifically implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer can be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
[0135] For the sake of description, the above apparatuses are described in various units by functions respectively. Of course, the functions of each unit can be implemented in the same or multiple software and / or hardware in the implementation of the embodiments of the present application.
[0136] Those skilled in the art will understand that the embodiments of the present application can be provided as a method, a system or a computer program product. Therefore, the embodiments of the present application can take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware aspects. Moreover, the embodiments of the present application can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0137] The specification and drawings are illustrative and are not to be construed as limiting. Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this disclosure belongs. It will be apparent to those skilled in the art that various modifications and variations can be made to the present disclosure without departing from the spirit or scope of the disclosure. Thus, it is intended that the present disclosure cover the modifications and variations of this disclosure provided they come within the scope of the appended claims and their equivalents. Figure 1 one or more functions specified in the flow or flows and / or blocks. Figure 1 one or more functions specified in the flow or flows and / or blocks.
[0138] These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instructions which implement the flow Figure 1 one or more functions specified in the flow or flows and / or blocks. Figure 1 one or more functions specified in the flow or flows and / or blocks.
[0139] These computer program instructions can also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer-implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the flow Figure 1 one or more functions specified in the flow or flows and / or blocks. Figure 1 one or more functions specified in the flow or flows and / or blocks.
[0140] In one typical configuration, a computing device includes one or more processors (CPUs), input / output interfaces, network interfaces, and memory.
[0141] The memory can include non-persistent memory and / or volatile memory, such as random access memory (RAM) and / or cache memory, non-volatile memory, such as read-only memory (ROM), EPROM, and / or flash memory. The memory is an example of computer-readable media.
[0142] Computer-readable media includes permanent and non-permanent, movable and non-movable media, which can be implemented by any method or technology to store information. The information can be computer-readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassette, magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information accessible by a computing device. According to the definition herein, computer-readable media does not include transitory media such as modulated data signals and carriers.
[0143] It should also be noted that the terms "comprising", "including", or any other variant thereof are intended to cover non-exclusive inclusion, so that processes, methods, articles or devices including a series of elements not only include those elements, but also include other elements not explicitly listed, or inherent to such processes, methods, articles or devices. Without more limitations, the element defined by the statement "including a" does not exclude the presence of other identical elements in the process, method, article or device including the element.
[0144] In the embodiments of the present application, "at least one" means one or more, and "multiple" means two or more. The association relationship between the associated objects is described by "and / or", which means that there can be three kinds of relationships, for example, A and / or B, which can represent the cases of A alone, A and B together, and B alone. Wherein A, B can be singular or plural. The character " / " generally represents that the associated objects before and after are in an "or" relationship. "At least one of the following" and the like means any combination of these items, including any combination of single or multiple items. For example, at least one of a, b and c can represent: a, b, c, a and b, a and c, b and c, or a and b and c, where a, b, c can be single or multiple.
[0145] Embodiments of the present application can be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, and the like, that perform particular tasks or implement particular abstract data types. Embodiments of the present application can also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules can be located in both local and remote computer storage media including memory storage devices.
[0146] Various embodiments in the present application are described in progressive manner, and the same or similar parts between various embodiments can be referred to each other. Each embodiment focuses on the difference from other embodiments. Especially, the system embodiments are described simply because they are basically similar to the method embodiments, and the relevant parts can be referred to the description of the method embodiments.
[0147] The above only describes the embodiments of the present application and is not intended to limit the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of the present application shall be included in the scope of the claims of the present application.
Claims
1. A moving model generation method characterized by comprising: The method comprises: acquiring a flow text of a historical activity event, performing element extraction on the flow text of the historical activity event to obtain an activity element set; arranging the activity element set based on a preset domain-driven design rule to obtain an activity event map; refining the activity event map to obtain a plurality of general business terms; performing responsibility division processing on the plurality of general business terms to obtain a plurality of activity sub-domains; adjusting a preset micro-service code model based on the plurality of activity sub-domains to obtain an activity model; wherein the activity event map comprises a plurality of activity elements, a keyword recognition processing is performed on the plurality of activity elements to classify the plurality of activity elements having the same keyword into the same set, and a general naming processing is performed on the plurality of activity elements in the set to obtain corresponding domain nouns; extracting a plurality of domain nouns from the activity event map; and performing division naming on the plurality of domain nouns to obtain a plurality of general business terms; the performing responsibility division processing on the plurality of general business terms to obtain a plurality of activity sub-domains comprises: performing first analysis processing on the plurality of general business terms to obtain level association information; establishing a plurality of responsibility boundary sub-domains based on the plurality of general business terms and the level association information; dividing the corresponding plurality of domain nouns into the corresponding responsibility boundary sub-domains according to each general business term to obtain the plurality of activity sub-domains.
2. The active model generation method according to claim 1, characterized by, The arranging the activity element based on the preset domain-driven design rule to obtain the activity event map comprises: respectively classifying each element in the activity element set according to a preset element type to obtain event information, command information, subject information and input information; integrating the event information, the command information, the subject information and the input information based on a preset activity management process rule to obtain the activity event map.
3. The active model generation method according to claim 1, characterized by, The refining the activity event map to obtain a plurality of general business terms comprises: extracting a plurality of domain nouns from the activity event map; performing division naming on the plurality of domain nouns to obtain a plurality of general business terms; The plurality of general business terms comprise: activity management, activity approval, incentive management, activity monitoring, activity intervention, index analysis and activity user.
4. The active model generation method according to claim 1, characterized by, After the dividing the corresponding plurality of domain nouns into the corresponding responsibility boundary sub-domains according to each general business term to obtain the plurality of activity sub-domains, the method further comprises: performing second analysis processing on the plurality of general business terms to obtain data flow information; updating the plurality of activity sub-domains according to the data flow information.
5. The active model generation method according to claim 4, characterized by, The adjusting a preset micro-service code model based on the plurality of activity sub-domains to obtain an activity model comprises: establishing a domain model based on the updated activity sub-domains; mapping the domain nouns in the domain model and the code objects in the micro-service code model to obtain the activity model.
6. The active model generation method according to claim 1, characterized by, The responsibility boundary sub-domain comprises an activity approval sub-domain, an activity user sub-domain, an index analysis sub-domain, an activity intervention sub-domain, an activity monitoring sub-domain, an incentive management sub-domain, and an activity management sub-domain.
7. An activity model generation apparatus characterized by comprising: The device comprises: A first processing module is configured to acquire a flow text of a historical activity event, perform element extraction on the flow text of the historical activity event, and obtain an activity element set; A second processing module is configured to arrange the activity element set based on a preset domain-driven design rule to obtain an activity event map; A third processing module is configured to refine the activity event map to obtain a plurality of general business terms; A fourth processing module is configured to perform responsibility division processing on the plurality of general business terms to obtain a plurality of activity sub-domains; A fifth processing module is configured to adjust a preset micro-service code model based on the plurality of activity sub-domains to obtain an activity model. The activity event map comprises a plurality of activity elements. Key word identification processing is performed on the plurality of activity elements to classify the plurality of activity elements having the same key word into the same set, and general naming processing is performed on the plurality of activity elements in the set to obtain corresponding domain nouns. The plurality of domain nouns are extracted from the activity event map, and division naming is performed on the plurality of domain nouns to obtain a plurality of general business terms. The plurality of general business terms are subjected to responsibility division processing to obtain a plurality of activity sub-domains, which comprises: First analysis processing is performed on the plurality of general business terms to obtain level association information; A plurality of responsibility boundary sub-domains are established based on the plurality of general business terms and the level association information; The plurality of domain nouns corresponding to each general business term are divided into the corresponding responsibility boundary sub-domain to obtain the plurality of activity sub-domains.
8. An electronic device comprising: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the activity model generation method of any one of claims 1 to 6.
9. A computer-readable storage medium storing computer-executable instructions, the computer-executable instructions comprising: The computer executable instructions are used to execute the activity model generation method of any one of claims 1 to 6.
Citation Information
Patent Citations
Field drive software design method based on micro service
CN112860222A
Micro-service system construction method and device based on domain-driven design, and medium
CN114201144A