CN117408238A - Activity task management method, system, electronic device and storage medium - Google Patents

Activity task management method, system, electronic device and storage medium Download PDF

Info

Publication number
CN117408238A
CN117408238A CN202310685069.1A CN202310685069A CN117408238A CN 117408238 A CN117408238 A CN 117408238A CN 202310685069 A CN202310685069 A CN 202310685069A CN 117408238 A CN117408238 A CN 117408238A
Authority
CN
China
Prior art keywords
target
task
configuration information
generating
enumeration
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.)
Pending
Application number
CN202310685069.1A
Other languages
Chinese (zh)
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.)
Nanjing Xingyun Digital Technology Co Ltd
Original Assignee
Nanjing Xingyun Digital 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 Nanjing Xingyun Digital Technology Co Ltd filed Critical Nanjing Xingyun Digital Technology Co Ltd
Priority to CN202310685069.1A priority Critical patent/CN117408238A/en
Publication of CN117408238A publication Critical patent/CN117408238A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/186Templates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N5/00Computing arrangements using knowledge-based models
    • G06N5/02Knowledge representation; Symbolic representation
    • G06N5/022Knowledge engineering; Knowledge acquisition
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0207Discounts or incentives, e.g. coupons or rebates
    • G06Q30/0213Consumer transaction fees
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Finance (AREA)
  • Accounting & Taxation (AREA)
  • General Engineering & Computer Science (AREA)
  • Strategic Management (AREA)
  • Development Economics (AREA)
  • Computational Linguistics (AREA)
  • Marketing (AREA)
  • General Business, Economics & Management (AREA)
  • Artificial Intelligence (AREA)
  • Economics (AREA)
  • Computing Systems (AREA)
  • Software Systems (AREA)
  • Mathematical Physics (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Health & Medical Sciences (AREA)
  • Game Theory and Decision Science (AREA)
  • Evolutionary Computation (AREA)
  • Data Mining & Analysis (AREA)
  • General Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Technology Law (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention provides an activity task management method, an activity task management system, electronic equipment and a storage medium, wherein the activity task management system comprises the following steps: analyzing the event message to generate a field name, and generating an enumeration message according to the enumeration configuration information and the field name; calling a target enumeration message in the enumeration message according to the behavior template configuration information and generating a behavior template according to the behavior template configuration information and the enumeration message; invoking a target behavior template in the behavior template according to the task configuration information, generating a target task related to a target activity according to the target behavior template and the task configuration information, and generating a target activity according to the activity configuration information and the target task; and generating a knowledge base containing a target rule file according to the event message, determining a target rule according to the target rule file and the data model, and executing a target task according to the target rule. By analyzing event messages corresponding to scenes and calling enumerated behavior templates, the workflow of creating activities and tasks is simplified, and the working efficiency is improved.

Description

Activity task management method, system, electronic device and storage medium
Technical Field
The present invention relates to the field of task configuration, and in particular, to a method, a system, an electronic device, and a storage medium for managing an active task.
Background
With the development of internet services, more and more scenarios involve activity management, such as how many users can get corresponding rights and interests the amount of an order is satisfied, how many times the page is browsed to complete specific tasks, how many financial products can complete corresponding tasks, what rewards are obtained, and so on. At present, most task management platforms simply manage tasks, access to a specific scene needs to be developed once, and functional transformation is completed according to specific requirements, for example, some scenes need wind control verification, and some scenes need guest group verification. The more the access scenes are, the larger the redundant code quantity is, the later-stage system operation and maintenance are not good, and the repeated research and development resources are seriously wasted. The background configuration of the management method also can be increased along with the business development, and the configuration items are more and more, so that unified management tasks are not done.
Disclosure of Invention
In view of the foregoing, it is desirable to provide an activity task management method, system, electronic device, and storage medium that can simplify task activity configuration.
In a first aspect, there is provided an activity task management method, including:
resolving event message input by user to generate field name,
Generating enumeration information according to the enumeration configuration information input by the user and the field names;
invoking a target enumeration message in the enumeration message according to the behavior template configuration information input by the user, and generating a behavior template according to the behavior template configuration information and the enumeration message;
invoking a target behavior template in the behavior templates according to the task configuration information input by the user and generating a target task associated with the target activity according to the target behavior template and the task configuration information,
generating the target activity according to the activity configuration information input by the user and the target task;
generating a knowledge base containing a target rule file according to the event message input by the user,
and determining a target rule according to the target rule file and the data model, and executing the target task according to the target rule.
In one embodiment, the parsing the event message input by the user to generate the field name includes:
determining whether the message character string is legal or not;
if yes, generating a node path array according to the event message and determining a node value corresponding to a node according to a node path in the node path array,
If the node value is an object, determining the field name according to the object;
if the node values are groups, determining the field names according to the node paths and continuing to traverse the node paths;
and returning field names of all objects in response to the end of traversing the node path.
In one embodiment, the generating an enumeration message according to the enumeration configuration information input by the user and the field name includes:
wherein the enumeration configuration information comprises message codes, message names, home service lines, event codes, event types and subject fields;
determining whether the theme field exists in a database of the enumeration configuration system according to a channel theme and the event code;
if yes, generating the enumeration message according to the enumeration configuration information and the field name.
In one embodiment, the calling the target enumeration message in the enumeration message according to the behavior template configuration information input by the user and generating the behavior template according to the behavior template configuration information and the enumeration message includes:
the behavior template configuration information comprises a template name, a template applicable service line, a target event code and a target message code;
Invoking the target enumeration message according to the target event code;
and generating the behavior template according to the field name in the target enumeration message and the behavior template configuration information.
In one embodiment, the invoking the target behavior template in the behavior templates according to the task configuration information input by the user and generating the target task associated with the target activity according to the target behavior template and the task configuration information includes:
the task configuration information comprises a task name, a task attribution service line, a target behavior template name, task conditions, task rules and a task file;
invoking the target behavior template according to the name of the target behavior template;
and generating the target task according to the task name, the task attribution service line, the target behavior template, the task condition, the task rule and the task document.
In one embodiment, the generating the target activity according to the activity configuration information input by the user and the target task includes:
the activity configuration information comprises an activity name, an activity time, an activity type and a target task name;
Invoking the target task according to the target task name;
and generating the target activity according to the activity name, the activity time, the activity type and the target task.
In one embodiment, the generating a knowledge base including a target rule file according to the event message input by the user includes:
determining a target task in the target activity according to the event message and acquiring a target rule file of the target task;
and generating the knowledge base according to the target rule file.
In another aspect, an activity task management system is provided, wherein the system includes:
the enumeration management module comprises a message analysis module and an enumeration configuration module, and is used for analyzing event messages input by a user to generate field names and generating enumeration messages according to enumeration configuration information input by the user and the field names;
the behavior template management module is used for calling a target enumeration message in the enumeration management module according to the behavior template configuration information input by the user and generating a behavior template according to the behavior template configuration information and the enumeration message;
the activity management module comprises a task configuration module and an activity configuration module, and is used for calling a target behavior template in the behavior template management module according to task configuration information input by the user, generating a target task associated with the target activity according to the target behavior template and the task configuration information, and generating the target activity according to the activity configuration information input by the user and the target task;
The rule engine module comprises a knowledge base generation module and a task execution module, and is used for generating a knowledge base containing a target rule file according to event messages input by a user, determining a target rule according to the target rule file and a data model and executing the target task according to the target rule.
In one embodiment, the parsing the event message input by the user to generate the field name by the message parsing module includes:
determining whether the message character string is legal or not;
if yes, generating a node path array according to the event message and determining a node value corresponding to a node according to a node path in the node path array,
if the node value is an object, determining the field name according to the object;
if the node values are groups, determining the field names according to the node paths and continuing to traverse the node paths;
and returning field names of all objects in response to the end of traversing the node path.
In one embodiment, the generating, by the enumeration configuration module, an enumeration message according to the enumeration configuration information input by the user and the field name includes:
wherein the enumeration configuration information comprises message codes, message names, home service lines, event codes, event types and subject fields;
Determining whether the theme field exists in a database of the enumeration configuration system according to a channel theme and the event code;
if yes, generating the enumeration message according to the enumeration configuration information and the field name.
In one embodiment, the behavior template management module invoking the target enumeration message in the enumeration management module according to the behavior template configuration information input by the user and generating the behavior template according to the behavior template configuration information and the enumeration message includes:
the behavior template configuration information comprises a template name, a template applicable service line, a target event code and a target message code;
invoking the target enumeration message according to the target event code;
and generating the behavior template according to the field name in the target enumeration message and the behavior template configuration information.
In one embodiment, the task configuration module invoking the target behavior template in the behavior template management module according to the task configuration information input by the user and generating the target task associated with the target activity according to the target behavior template and the task configuration information includes:
the task configuration information comprises a task name, a task attribution service line, a target behavior template name, task conditions, task rules and a task file;
Invoking the target behavior template according to the name of the target behavior template;
and generating the target task according to the task name, the task attribution service line, the target behavior template, the task condition, the task rule and the task document.
In one embodiment, the activity configuration module generating the target activity according to the activity configuration information input by the user and the target task includes:
the activity configuration information comprises an activity name, an activity time, an activity type and a target task name;
invoking the target task according to the target task name;
and generating the target activity according to the activity name, the activity time, the activity type and the target task.
In one embodiment, the knowledge base generating module generates a knowledge base including a target rule file according to an event message input by a user, including:
determining a target task in the target activity according to the event message and acquiring a target rule file of the target task from the task configuration module;
and generating the knowledge base according to the target rule file.
In yet another aspect, an electronic device is provided comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program:
Resolving event message input by user to generate field name,
generating enumeration information according to the enumeration configuration information input by the user and the field names;
invoking a target enumeration message in the enumeration message according to the behavior template configuration information input by the user, and generating a behavior template according to the behavior template configuration information and the enumeration message;
invoking a target behavior template in the behavior templates according to the task configuration information input by the user and generating a target task associated with the target activity according to the target behavior template and the task configuration information,
generating the target activity according to the activity configuration information input by the user and the target task;
generating a knowledge base containing a target rule file according to the event message input by the user,
and determining a target rule according to the target rule file and the data model, and executing the target task according to the target rule.
In one embodiment, the processor, when executing the computer program, performs the steps of:
the parsing the event message input by the user to generate a field name comprises the following steps:
determining whether the message character string is legal or not;
if yes, generating a node path array according to the event message and determining a node value corresponding to a node according to a node path in the node path array,
If the node value is an object, determining the field name according to the object;
if the node values are groups, determining the field names according to the node paths and continuing to traverse the node paths;
and returning field names of all objects in response to the end of traversing the node path.
In one embodiment, the processor, when executing the computer program, performs the steps of:
the generating an enumeration message according to the enumeration configuration information input by the user and the field name comprises:
wherein the enumeration configuration information comprises message codes, message names, home service lines, event codes, event types and subject fields;
determining whether the theme field exists in a database of the enumeration configuration system according to a channel theme and the event code;
if yes, generating the enumeration message according to the enumeration configuration information and the field name.
In one embodiment, the processor, when executing the computer program, performs the steps of:
the step of calling the target enumeration message in the enumeration message according to the behavior template configuration information input by the user and generating the behavior template according to the behavior template configuration information and the enumeration message comprises the following steps:
The behavior template configuration information comprises a template name, a template applicable service line, a target event code and a target message code;
invoking the target enumeration message according to the target event code;
and generating the behavior template according to the field name in the target enumeration message and the behavior template configuration information.
In one embodiment, the processor, when executing the computer program, performs the steps of:
the step of calling a target behavior template in the behavior templates according to the task configuration information input by the user and generating the target task associated with the target activity according to the target behavior template and the task configuration information comprises the following steps:
the task configuration information comprises a task name, a task attribution service line, a target behavior template name, task conditions, task rules and a task file;
invoking the target behavior template according to the name of the target behavior template;
and generating the target task according to the task name, the task attribution service line, the target behavior template, the task condition, the task rule and the task document.
In one embodiment, the processor, when executing the computer program, performs the steps of:
The generating the target activity according to the activity configuration information input by the user and the target task comprises:
the activity configuration information comprises an activity name, an activity time, an activity type and a target task name;
invoking the target task according to the target task name;
and generating the target activity according to the activity name, the activity time, the activity type and the target task.
In one embodiment, the processor, when executing the computer program, performs the steps of:
the generating a knowledge base containing the target rule file according to the event message input by the user comprises the following steps:
determining a target task in the target activity according to the event message and acquiring a target rule file of the target task;
and generating the knowledge base according to the target rule file.
In yet another aspect, a computer readable storage medium is provided, having stored thereon a computer program which when executed by a processor performs the steps of:
resolving event message input by user to generate field name,
generating enumeration information according to the enumeration configuration information input by the user and the field names;
Invoking a target enumeration message in the enumeration message according to the behavior template configuration information input by the user, and generating a behavior template according to the behavior template configuration information and the enumeration message;
invoking a target behavior template in the behavior templates according to the task configuration information input by the user and generating a target task associated with the target activity according to the target behavior template and the task configuration information,
generating the target activity according to the activity configuration information input by the user and the target task;
generating a knowledge base containing a target rule file according to the event message input by the user,
and determining a target rule according to the target rule file and the data model, and executing the target task according to the target rule.
In one embodiment, the computer program when executed by a processor performs the steps of:
the parsing the event message input by the user to generate a field name comprises the following steps:
determining whether the message character string is legal or not;
if yes, generating a node path array according to the event message and determining a node value corresponding to a node according to a node path in the node path array,
if the node value is an object, determining the field name according to the object;
If the node values are groups, determining the field names according to the node paths and continuing to traverse the node paths;
and returning field names of all objects in response to the end of traversing the node path.
In one embodiment, the computer program when executed by a processor performs the steps of:
the generating an enumeration message according to the enumeration configuration information input by the user and the field name comprises:
wherein the enumeration configuration information comprises message codes, message names, home service lines, event codes, event types and subject fields;
determining whether the theme field exists in a database of the enumeration configuration system according to a channel theme and the event code;
if yes, generating the enumeration message according to the enumeration configuration information and the field name.
In one embodiment, the computer program when executed by a processor performs the steps of:
the step of calling the target enumeration message in the enumeration message according to the behavior template configuration information input by the user and generating the behavior template according to the behavior template configuration information and the enumeration message comprises the following steps:
the behavior template configuration information comprises a template name, a template applicable service line, a target event code and a target message code;
Invoking the target enumeration message according to the target event code;
and generating the behavior template according to the field name in the target enumeration message and the behavior template configuration information.
In one embodiment, the computer program when executed by a processor performs the steps of:
the step of calling a target behavior template in the behavior templates according to the task configuration information input by the user and generating the target task associated with the target activity according to the target behavior template and the task configuration information comprises the following steps:
the task configuration information comprises a task name, a task attribution service line, a target behavior template name, task conditions, task rules and a task file;
invoking the target behavior template according to the name of the target behavior template;
and generating the target task according to the task name, the task attribution service line, the target behavior template, the task condition, the task rule and the task document.
In one embodiment, the computer program when executed by a processor performs the steps of:
the generating the target activity according to the activity configuration information input by the user and the target task comprises:
The activity configuration information comprises an activity name, an activity time, an activity type and a target task name;
invoking the target task according to the target task name;
and generating the target activity according to the activity name, the activity time, the activity type and the target task.
In one embodiment, the computer program when executed by a processor performs the steps of:
the generating a knowledge base containing the target rule file according to the event message input by the user comprises the following steps:
determining a target task in the target activity according to the event message and acquiring a target rule file of the target task;
and generating the knowledge base according to the target rule file.
Generating a field name by analyzing an event message input by a user, and generating an enumeration message according to enumeration configuration information input by the user and the field name; invoking a target enumeration message in the enumeration message according to the behavior template configuration information input by the user, and generating a behavior template according to the behavior template configuration information and the enumeration message; invoking a target behavior template in the behavior templates according to the task configuration information input by the user, generating a target task associated with the target activity according to the target behavior template and the task configuration information, and generating the target activity according to the activity configuration information input by the user and the target task; generating a knowledge base containing a target rule file according to an event message input by a user, determining a target rule according to the target rule file and a data model, and executing the target task according to the target rule. And the system call link and the complexity are simplified by applying the event message corresponding to the scene and the time code, so that the response time of the interface is reduced, and the user experience is improved. By integrating the task activity related management functions, the unified task management and unified operation functions are provided, the complexity is reduced, and the task operation efficiency is improved.
Drawings
FIG. 1 is a schematic topology diagram of an active task configuration management method;
FIG. 2 is a schematic diagram illustrating steps of an active task configuration management method;
FIG. 3 is an exemplary diagram of an enumeration created page in an active task configuration management method;
FIG. 4 is a schematic diagram of an active task configuration management system;
fig. 5 is an internal structural diagram of a computer device in an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
The topology diagram of the active task configuration management method shown in fig. 1 provided in the application includes the following modules: enumeration management, behavior template management, activity task configuration management, rule engine and task detail, wherein the enumeration management can inquire and newly add enumeration information according to information codes, field names, attribution service lines, event codes, and when the information is newly added, the event information of a specific access scene needs to be analyzed and the field names need to be extracted. And the behavior template management is used for inquiring, modifying and adding a behavior template, wherein the configuration of the new behavior template is required to be according to the fields in the enumeration information. And (3) activity management, wherein when activities and related tasks under the activities are uniformly created, related behavior templates are required to be called, related rules in the tasks are configured, task files, task guest groups and the like. And the rule engine is used for determining which rules are matched with the data model and then defining the rule corresponding to the target task. The task participation details are used for inquiring the task completion condition of a certain user number after the task is configured to be online.
As shown in fig. 2, the present invention provides an activity task management method, which is characterized in that the method includes:
s201, analyzing the event message input by the user to generate a field name,
s202, generating an enumeration message according to enumeration configuration information input by a user and the field name;
s203, calling a target enumeration message in the enumeration message according to the behavior template configuration information input by the user, and generating a behavior template according to the behavior template configuration information and the enumeration message;
s204, calling a target behavior template in the behavior templates according to the task configuration information input by the user and generating a target task associated with the target activity according to the target behavior template and the task configuration information,
s205, generating the target activity according to the activity configuration information input by the user and the target task;
s206, generating a knowledge base containing the target rule file according to the event message input by the user,
s207, determining a target rule according to the target rule file and the data model and executing the target task according to the target rule.
Specifically, the message can be queried and enumerated according to the message code, the field name, the attribution service line, the event code and the new enumeration. The behavior template can be inquired and newly added according to the template code, the template name, the attribution service line and the state. And then the behavior template details, modification and deletion can be checked. Activities and related tasks underlying the activities are uniformly created. Relevant rules, associated behavior templates, task documents, task guest groups and the like in the task are configured. It is then determined which rules match the data model, and then the operations defined in the rules are performed.
In one embodiment, the parsing the event message input by the user to generate the field name includes:
determining whether the message character string is legal or not;
if yes, generating a node path array according to the event message and determining a node value corresponding to a node according to a node path in the node path array,
if the node value is an object, determining the field name according to the object;
if the node values are groups, determining the field names according to the node paths and continuing to traverse the node paths;
and returning field names of all objects in response to the end of traversing the node path.
Specifically, as shown in fig. 3, if the JSON string corresponding to the input message is in an empty or illegal JSON format, the user is like reporting an error; if the JSON character string is not empty and legal, dividing the JSON character string into node paths and generating a node path array; wherein "body" and "body. EventContent" are node paths, for example, the node corresponding to the "body" node path is "body": the character strings in the "back" { } "and" { } "are not described herein, and the node value corresponding to the" body. EventContent. PayAmount "node path is" payAmount ": "100", which is a JSON object, is determined at this time to have a field name of "payAmount" and a field value of "100". And then continue traversing the node path array. For example, the node value corresponding to the "body. EventContent. OrderNo" node path is "orderNo": "2020041724467594" (JSON object) whose corresponding field name is "orderNo", and if the value corresponding to the node is a JSON array, i.e., if there are multiple JSON objects in "{ }", for example, the corresponding field name is "eventContent" is determined according to "body. After traversing all node paths, the field names of all JSON objects are returned.
In one embodiment, the generating an enumeration message according to the enumeration configuration information input by the user and the field name includes:
wherein the enumeration configuration information comprises message codes, message names, home service lines, event codes, event types and subject fields;
determining whether the theme field exists in a database of the enumeration configuration system according to a channel theme and the event code;
if yes, generating the enumeration message according to the enumeration configuration information and the field name.
Specifically, as shown in fig. 3, the newly added enumeration message includes: receiving a message name, a message code, an event type and a theme field input by a user and a home service line selected by the user, and then determining whether the corresponding channel theme comprises an input theme field test according to whether the channel theme and the event code query theme field exist in a database of an enumeration configuration system, namely according to the channel theme (comprising a plurality of theme fields) recorded in the event code query database. If the enumeration information does not exist, the generation of the enumeration information fails and errors can be reported to the user, if the enumeration information exists, the enumeration information can be successfully added according to the enumeration configuration information and the field names, and the level of the corresponding field can be judged when the enumeration information is generated, as shown in 3, the field name of the body is the first level, the event content is the second level, the payAmount, the orderNo and the like are the third level. The field file (Chinese interpretation of field names) can be mapped, the English field names facilitate the later positioning problem, and the field names corresponding to Chinese are added in the system to facilitate the understanding of users.
In one embodiment, the calling the target enumeration message in the enumeration message according to the behavior template configuration information input by the user and generating the behavior template according to the behavior template configuration information and the enumeration message includes:
the behavior template configuration information comprises a template name, a template applicable service line, a target event code and a target message code;
invoking the target enumeration message according to the target event code;
and generating the behavior template according to the field name in the target enumeration message and the behavior template configuration information.
Specifically, the newly added behavior template includes: the template name, the template applicable service line, the target event code and the target message code of the input behavior template are received, the corresponding field names including 'event content', 'payaccount' and the like are called according to 'CONVENIENT_0001', then the behavior template is generated according to the called field names and behavior template configuration information, and in addition, the behavior template configuration information can also comprise added behavior template rule information, such as behavior template rule information with specific amount larger than, equal to or smaller than when the finance related service line is related.
In one embodiment, the invoking the target behavior template in the behavior templates according to the task configuration information input by the user and generating the target task associated with the target activity according to the target behavior template and the task configuration information includes:
the task configuration information comprises a task name, a task attribution service line, a target behavior template name, task conditions, task rules and a task file;
invoking the target behavior template according to the name of the target behavior template;
and generating the target task according to the task name, the task attribution service line, the target behavior template, the task condition, the task rule and the task document.
Specifically, the newly added tasks include: receiving an input task name, a service line to which the task belongs, and a behavior template name configured by a service party, setting corresponding conditions according to needs, and configuring a rule based on the task may include: determining participation names/times, configuring limit times as required and names, the file that the task needs to give to the front end can comprise: and inputting various documents and links as required to complete the configuration of the target task. The target task is generated according to the task configuration information according to task names such as 'member check-in to participate in tasks', task attribution business lines such as 'marketing', target behavior templates such as 'member check-in', task conditions such as setting up the number of days of check-in, task rules (such as issuing rewards when check-in exceeds three days), and task documents (such as 'thank you support' configured on the day of member check-in and similar specific documents and corresponding links).
In one embodiment, the generating the target activity according to the activity configuration information input by the user and the target task includes:
the activity configuration information comprises an activity name, an activity time, an activity type and a target task name;
invoking the target task according to the target task name;
and generating the target activity according to the activity name, the activity time, the activity type and the target task.
Specifically, the newly added activities include: receiving an input activity name, activity time, activity type and target task name, wherein the activity type (determined to be universal if no input is input by a user) and then calling a target task according to the target task name; after being associated with at least one target task, a target activity is finally generated, for example, an activity name with an activity name of "member benefit" is generated, and the target task with the task name of "member check-in participation task" can be associated and called.
In one embodiment, the generating a knowledge base including a target rule file according to the event message input by the user includes:
determining a target task in the target activity according to the event message and acquiring a target rule file of the target task;
And generating the knowledge base according to the target rule file.
Specifically, the rule engine may first fuzzy match to a certain activity and then precisely match the fields of the task according to the received user event message. The rules of the data and tasks are then combined together to create a knowledge base that can be used for matching. The knowledge base typically contains one or more rule files. During operation, the rules engine compares the data model to rules defined in the rules file to determine which rules match the data model. When the rule engine runs, it scans each rule in the rule file and attempts to apply the data model to the rule. If the rule matches the data model, the rule engine will trigger the rule and perform the operations defined in the rule. These operations include idempotent checks, 6 unique checks, pneumatic checks, sending gift bags, sending messages, writing data to a database, etc.
The scheme of the application has the following beneficial effects:
1) Invoking enumeration information, a behavior template and an active task through event coding association so as to simplify task configuration flow;
2) The method comprises the steps of analyzing event messages corresponding to scenes and calling enumerated behavior templates to adapt to various specific service scenes;
3) At the system level, the method has high modularity, high code multiplexing rate, convenient later maintenance, reduced repeated development condition of codes due to the change of requirements and reduced project research and development cost.
It should be understood that, although the steps in the flowchart of fig. 2 are shown in sequence as indicated by the arrows, the steps are not necessarily performed in sequence as indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in fig. 2 may include multiple sub-steps or stages that are not necessarily performed at the same time, but may be performed at different times, nor do the order in which the sub-steps or stages are performed necessarily performed in sequence, but may be performed alternately or alternately with at least a portion of the sub-steps or stages of other steps or other steps.
In one embodiment, as shown in fig. 4, there is provided an activity task management system, characterized in that the system comprises:
the enumeration management module 401 comprises a message analysis module and an enumeration configuration module, and is used for analyzing an event message input by a user to generate a field name, and generating an enumeration message according to enumeration configuration information input by the user and the field name;
The behavior template management module 402 is configured to invoke a target enumeration message in the enumeration management module according to behavior template configuration information input by the user, and generate a behavior template according to the behavior template configuration information and the enumeration message;
the activity management module 403 includes a task configuration module and an activity configuration module, and is configured to invoke a target behavior template in the behavior template management module according to task configuration information input by the user, generate a target task associated with the target activity according to the target behavior template and the task configuration information, and generate the target activity according to the activity configuration information input by the user and the target task;
the rule engine module 404 includes a knowledge base generating module and a task executing module, and is configured to generate a knowledge base including a target rule file according to an event message input by a user, and determine a target rule according to the target rule file and a data model, and execute the target task according to the target rule.
In one embodiment, the parsing the event message input by the user to generate the field name by the message parsing module includes:
determining whether the message character string is legal or not;
If yes, generating a node path array according to the event message and determining a node value corresponding to a node according to a node path in the node path array,
if the node value is an object, determining the field name according to the object;
if the node values are groups, determining the field names according to the node paths and continuing to traverse the node paths;
and returning field names of all objects in response to the end of traversing the node path.
In one embodiment, the generating, by the enumeration configuration module, an enumeration message according to the enumeration configuration information input by the user and the field name includes:
wherein the enumeration configuration information comprises message codes, message names, home service lines, event codes, event types and subject fields;
determining whether the theme field exists in a database of the enumeration configuration system according to a channel theme and the event code;
if yes, generating the enumeration message according to the enumeration configuration information and the field name.
In one embodiment, the behavior template management module invoking the target enumeration message in the enumeration management module according to the behavior template configuration information input by the user and generating the behavior template according to the behavior template configuration information and the enumeration message includes:
The behavior template configuration information comprises a template name, a template applicable service line, a target event code and a target message code;
invoking the target enumeration message according to the target event code;
and generating the behavior template according to the field name in the target enumeration message and the behavior template configuration information.
In one embodiment, the task configuration module invoking the target behavior template in the behavior template management module according to the task configuration information input by the user and generating the target task associated with the target activity according to the target behavior template and the task configuration information includes:
the task configuration information comprises a task name, a task attribution service line, a target behavior template name, task conditions, task rules and a task file;
invoking the target behavior template according to the name of the target behavior template;
and generating the target task according to the task name, the task attribution service line, the target behavior template, the task condition, the task rule and the task document.
In one embodiment, the activity configuration module generating the target activity according to the activity configuration information input by the user and the target task includes:
The activity configuration information comprises an activity name, an activity time, an activity type and a target task name;
invoking the target task according to the target task name;
and generating the target activity according to the activity name, the activity time, the activity type and the target task.
In one embodiment, the knowledge base generating module generates a knowledge base including a target rule file according to an event message input by a user, including:
determining a target task in the target activity according to the event message and acquiring a target rule file of the target task from the task configuration module;
and generating the knowledge base according to the target rule file.
For specific limitations of the active task configuration management system, reference may be made to the above limitation of the active task configuration management method, and no further description is given here. The various modules in the active task configuration management system described above may be implemented in whole or in part by software, hardware, and combinations thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a computer device is provided, which may be a terminal, and the internal structure of which may be as shown in fig. 5. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program, when executed by a processor, implements an alert information processing method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, can also be keys, a track ball or a touch pad arranged on the shell of the computer equipment, and can also be an external keyboard, a touch pad or a mouse and the like.
It will be appreciated by those skilled in the art that the structure shown in fig. 5 is merely a block diagram of some of the structures associated with the present application and is not limiting of the computer device to which the present application may be applied, and that a particular computer device may include more or fewer components than shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, an electronic device is provided that includes a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the steps of:
generating a field name according to the event message input by the user,
generating enumeration information according to the enumeration configuration information input by the user and the field names;
invoking a target enumeration message in the enumeration message according to the behavior template configuration information input by the user, and generating a behavior template according to the behavior template configuration information and the enumeration message;
invoking a target behavior template in the behavior templates according to the task configuration information input by the user and generating a target task associated with the target activity according to the target behavior template and the task configuration information,
Generating the target activity according to the activity configuration information input by the user and the target task;
generating a knowledge base containing a target rule file according to the event message input by the user,
and determining a target rule according to the target rule file and the data model, and executing the target task according to the target rule.
In one embodiment, the processor, when executing the computer program, performs the steps of:
the generating a field name according to the event message input by the user comprises the following steps:
determining whether the message character string is legal or not;
if yes, generating a node path array according to the event message and determining a node value corresponding to a node according to a node path in the node path array,
if the node value is an object, determining the field name according to the object;
if the node values are groups, determining the field names according to the node paths and continuing to traverse the node paths;
and returning field names of all objects in response to the end of traversing the node path.
In one embodiment, the processor, when executing the computer program, performs the steps of:
the generating an enumeration message according to the enumeration configuration information input by the user and the field name comprises:
Wherein the enumeration configuration information comprises message codes, message names, home service lines, event codes, event types and subject fields;
determining whether the theme field exists in a database of the enumeration configuration system according to a channel theme and the event code;
if yes, generating the enumeration message according to the enumeration configuration information and the field name.
In one embodiment, the processor, when executing the computer program, performs the steps of:
the step of calling the target enumeration message in the enumeration message according to the behavior template configuration information input by the user and generating the behavior template according to the behavior template configuration information and the enumeration message comprises the following steps:
the behavior template configuration information comprises a template name, a template applicable service line, a target event code and a target message code;
invoking the target enumeration message according to the target event code;
and generating the behavior template according to the field name in the target enumeration message and the behavior template configuration information.
In one embodiment, the processor, when executing the computer program, performs the steps of:
the step of calling a target behavior template in the behavior templates according to the task configuration information input by the user and generating the target task associated with the target activity according to the target behavior template and the task configuration information comprises the following steps:
The task configuration information comprises a task name, a task attribution service line, a target behavior template name, task conditions, task rules and a task file;
invoking the target behavior template according to the name of the target behavior template;
and generating the target task according to the task name, the task attribution service line, the target behavior template, the task condition, the task rule and the task document.
In one embodiment, the processor, when executing the computer program, performs the steps of:
the generating the target activity according to the activity configuration information input by the user and the target task comprises:
the activity configuration information comprises an activity name, an activity time, an activity type and a target task name;
invoking the target task according to the target task name;
and generating the target activity according to the activity name, the activity time, the activity type and the target task.
In one embodiment, the processor, when executing the computer program, performs the steps of:
the generating a knowledge base containing the target rule file according to the event message input by the user comprises the following steps:
Determining a target task in the target activity according to the event message and acquiring a target rule file of the target task;
and generating the knowledge base according to the target rule file.
In one embodiment, a computer readable storage medium is provided having stored thereon a computer program which when executed by a processor performs the steps of:
generating a field name according to the event message input by the user,
generating enumeration information according to the enumeration configuration information input by the user and the field names;
invoking a target enumeration message in the enumeration message according to the behavior template configuration information input by the user, and generating a behavior template according to the behavior template configuration information and the enumeration message;
invoking a target behavior template in the behavior templates according to the task configuration information input by the user and generating a target task associated with the target activity according to the target behavior template and the task configuration information,
generating the target activity according to the activity configuration information input by the user and the target task;
generating a knowledge base containing a target rule file according to the event message input by the user,
And determining a target rule according to the target rule file and the data model, and executing the target task according to the target rule.
In one embodiment, the computer program when executed by a processor performs the steps of:
the generating a field name according to the event message input by the user comprises the following steps:
determining whether the message character string is legal or not;
if yes, generating a node path array according to the event message and determining a node value corresponding to a node according to a node path in the node path array,
if the node value is an object, determining the field name according to the object;
if the node values are groups, determining the field names according to the node paths and continuing to traverse the node paths;
and returning field names of all objects in response to the end of traversing the node path.
In one embodiment, the computer program when executed by a processor performs the steps of:
the generating an enumeration message according to the enumeration configuration information input by the user and the field name comprises:
wherein the enumeration configuration information comprises message codes, message names, home service lines, event codes, event types and subject fields;
Determining whether the theme field exists in a database of the enumeration configuration system according to a channel theme and the event code;
if yes, generating the enumeration message according to the enumeration configuration information and the field name.
In one embodiment, the computer program when executed by a processor performs the steps of:
the step of calling the target enumeration message in the enumeration message according to the behavior template configuration information input by the user and generating the behavior template according to the behavior template configuration information and the enumeration message comprises the following steps:
the behavior template configuration information comprises a template name, a template applicable service line, a target event code and a target message code;
invoking the target enumeration message according to the target event code;
and generating the behavior template according to the field name in the target enumeration message and the behavior template configuration information.
In one embodiment, the computer program when executed by a processor performs the steps of:
the step of calling a target behavior template in the behavior templates according to the task configuration information input by the user and generating the target task associated with the target activity according to the target behavior template and the task configuration information comprises the following steps:
The task configuration information comprises a task name, a task attribution service line, a target behavior template name, task conditions, task rules and a task file;
invoking the target behavior template according to the name of the target behavior template;
and generating the target task according to the task name, the task attribution service line, the target behavior template, the task condition, the task rule and the task document.
In one embodiment, the computer program when executed by a processor performs the steps of:
the generating the target activity according to the activity configuration information input by the user and the target task comprises:
the activity configuration information comprises an activity name, an activity time, an activity type and a target task name;
invoking the target task according to the target task name;
and generating the target activity according to the activity name, the activity time, the activity type and the target task.
In one embodiment, the computer program when executed by a processor performs the steps of:
the generating a knowledge base containing the target rule file according to the event message input by the user comprises the following steps:
Determining a target task in the target activity according to the event message and acquiring a target rule file of the target task;
and generating the knowledge base according to the target rule file.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the various embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples merely represent a few embodiments of the present application, which are described in more detail and are not to be construed as limiting the scope of the invention. It should be noted that it would be apparent to those skilled in the art that various modifications and improvements could be made without departing from the spirit of the present application, which would be within the scope of the present application. Accordingly, the scope of protection of the present application is to be determined by the claims appended hereto.

Claims (10)

1. A method of activity task management, the method comprising:
resolving event message input by user to generate field name,
generating enumeration information according to the enumeration configuration information input by the user and the field names;
invoking a target enumeration message in the enumeration message according to the behavior template configuration information input by the user, and generating a behavior template according to the behavior template configuration information and the enumeration message;
Invoking a target behavior template in the behavior templates according to the task configuration information input by the user and generating a target task associated with the target activity according to the target behavior template and the task configuration information,
generating the target activity according to the activity configuration information input by the user and the target task;
generating a knowledge base containing a target rule file according to the event message input by the user,
and determining a target rule according to the target rule file and the data model, and executing the target task according to the target rule.
2. The method of claim 1, wherein parsing the event message entered by the user to generate a field name comprises:
determining whether the message character string is legal or not;
if yes, generating a node path array according to the event message and determining a node value corresponding to a node according to a node path in the node path array,
if the node value is an object, determining the field name according to the object;
if the node values are groups, determining the field names according to the node paths and continuing to traverse the node paths;
and returning field names of all objects in response to the end of traversing the node path.
3. The method of claim 1, wherein the generating an enumeration message from the user-entered enumeration configuration information and the field name comprises:
wherein the enumeration configuration information comprises message codes, message names, home service lines, event codes, event types and subject fields;
determining whether the theme field exists in a database of the enumeration configuration system according to a channel theme and the event code;
if yes, generating the enumeration message according to the enumeration configuration information and the field name.
4. The method of claim 1, wherein the invoking a target enumeration message of the enumeration messages according to the user-entered behavior template configuration information and generating a behavior template according to the behavior template configuration information and the enumeration message comprises:
the behavior template configuration information comprises a template name, a template applicable service line, a target event code and a target message code;
invoking the target enumeration message according to the target event code;
and generating the behavior template according to the field name in the target enumeration message and the behavior template configuration information.
5. The method of claim 1, wherein invoking a target one of the behavior templates according to the task configuration information entered by the user and generating the target task associated with the target activity according to the target behavior template and the task configuration information comprises:
the task configuration information comprises a task name, a task attribution service line, a target behavior template name, task conditions, task rules and a task file;
invoking the target behavior template according to the name of the target behavior template;
and generating the target task according to the task name, the task attribution service line, the target behavior template, the task condition, the task rule and the task document.
6. The method of claim 1, wherein the generating the target activity from the activity configuration information entered by the user and the target task comprises:
the activity configuration information comprises an activity name, an activity time, an activity type and a target task name;
invoking the target task according to the target task name;
and generating the target activity according to the activity name, the activity time, the activity type and the target task.
7. The method of claim 1, wherein generating a knowledge base containing target rule files from event messages entered by a user comprises:
determining a target task in the target activity according to the event message and acquiring a target rule file of the target task;
and generating the knowledge base according to the target rule file.
8. An activity task management system, the system comprising:
the enumeration management module comprises a message analysis module and an enumeration configuration module, and is used for analyzing event messages input by a user to generate field names and generating enumeration messages according to enumeration configuration information input by the user and the field names;
the behavior template management module is used for calling a target enumeration message in the enumeration management module according to the behavior template configuration information input by the user and generating a behavior template according to the behavior template configuration information and the enumeration message;
the activity management module comprises a task configuration module and an activity configuration module, and is used for calling a target behavior template in the behavior template management module according to task configuration information input by the user, generating a target task associated with the target activity according to the target behavior template and the task configuration information, and generating the target activity according to the activity configuration information input by the user and the target task;
The rule engine module comprises a knowledge base generation module and a task execution module, and is used for generating a knowledge base containing a target rule file according to event messages input by a user, determining a target rule according to the target rule file and a data model and executing the target task according to the target rule.
9. An electronic device, comprising:
one or more processors; and a memory associated with the one or more processors, the memory for storing program instructions that, when read for execution by the one or more processors, perform the method of any of claims 1-7.
10. A computer storage medium, characterized in that it has stored thereon a computer program, wherein the program, when executed by a processor, implements the method according to any of claims 1-7.
CN202310685069.1A 2023-06-09 2023-06-09 Activity task management method, system, electronic device and storage medium Pending CN117408238A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310685069.1A CN117408238A (en) 2023-06-09 2023-06-09 Activity task management method, system, electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310685069.1A CN117408238A (en) 2023-06-09 2023-06-09 Activity task management method, system, electronic device and storage medium

Publications (1)

Publication Number Publication Date
CN117408238A true CN117408238A (en) 2024-01-16

Family

ID=89498837

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310685069.1A Pending CN117408238A (en) 2023-06-09 2023-06-09 Activity task management method, system, electronic device and storage medium

Country Status (1)

Country Link
CN (1) CN117408238A (en)

Similar Documents

Publication Publication Date Title
CN109670053B (en) Data object mapping method, device, equipment and computer readable storage medium
CN103365646B (en) Form user-defined, logical definition and processing method based on script engine
CN101452386B (en) Method for executing policy based on context model by using forward direction discursion chain and policy engine
CN108427731A (en) Processing method, device, terminal device and the medium of page code
CN111818175B (en) Enterprise service bus configuration file generation method, device, equipment and storage medium
CN115993966B (en) Application development system and method
CN113157315A (en) Method, device, equipment and medium for identifying difference information of different versions of software
CN108418797A (en) Web access method, device, computer equipment and storage medium
CN111241803A (en) Method and device for generating text file, computer equipment and readable storage medium
CN112395339B (en) Intersystem data admission verification method, device, computer equipment and storage medium
CN113918149A (en) Interface development method and device, computer equipment and storage medium
CN113360210A (en) Data reconciliation method and device, computer equipment and storage medium
CN113177021A (en) Data export method and device for different data sources
CN111124883A (en) Test case library introduction method, system and equipment based on tree form
CN111857662B (en) Programming method for describing specific constitution of object based on MAP and interface
CN117408238A (en) Activity task management method, system, electronic device and storage medium
CN113076086B (en) Metadata management system and method for modeling model object using the same
CN112417020B (en) Service expansion realization method, device, computer equipment and storage medium
CN114168581A (en) Data cleaning method and device, computer equipment and storage medium
CN114997111A (en) Service processing method, device, computer equipment and storage medium
CN113868138A (en) Method, system, equipment and storage medium for acquiring test data
CN112445499A (en) Derived variable determination method, device, equipment and storage medium
CN113722334B (en) Data processing method, device, electronic equipment and medium
CN112905153B (en) Software parallel construction method and device for software defined satellite
CN117056028B (en) Robot simulation platform building method and device, computer equipment and storage medium

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