Scenario task development method, device, equipment and storage medium
By identifying and splitting the business flow chart of the trading system, and using the preset workflow engine to generate target tasks, the inefficiency problem caused by customized development in the trading system is solved, and efficient and accurate scenario task development is achieved.
Patent Information
- Application Number
- CN202210063830.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-20
- Publication Date
- 2025-08-19
- Estimated Expiration
- 2042-01-20
AI Technical Summary
Each new trading scenario in the existing trading system needs to be customized to develop, resulting in a high repetition rate of business logic and a lack of aggregation of multiple scenarios and processes, resulting in inefficient online efficiency of new business scenarios.
By receiving scene development requests, identifying business flow charts, using preset workflow engine to split the process, generating initial tasks, and updating tasks based on matching degree and parameter information, combining logical relationships to splice target tasks to improve generation efficiency and accuracy.
It improves the efficiency and accuracy of target tasks, improves the efficiency of online launch of new business scenarios, and reduces duplicate development work.
Smart Images

Figure CN114418398B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of development technology, and in particular to a scenario task development method, device, equipment and storage medium. Background Art
[0002] In the current trading system, each new trading scenario requires customized development, resulting in a high rate of business logic duplication in the trading system and a lack of aggregation of the same process in multiple scenarios, which in turn causes low efficiency in launching new business scenarios. Summary of the Invention
[0003] In view of the above, it is necessary to provide a scenario task development method, device, equipment and storage medium that can improve the generation efficiency and accuracy of target tasks.
[0004] In one aspect, the present invention provides a scenario task development method, the scenario task development method comprising:
[0005] Receive scenario development requests;
[0006] Identifying a business process diagram of an object to be developed based on the scenario development request;
[0007] Splitting the business process diagram according to a preset workflow engine to obtain a first process that successfully matches the preset workflow engine and a second process that fails to match the preset workflow engine, and determining the configuration task in the preset workflow engine that successfully matches the first process as the initial task;
[0008] Identifying a degree of matching between the first process and the initial task based on the object to be developed;
[0009] If the matching degree is less than a preset threshold, the initial task is updated based on the parameter information of the first process to obtain the first task, and the development information of the second process is obtained as the second task;
[0010] The first task and the second task are spliced together according to the logical relationship between the first process and the second process in the business process diagram to obtain a target task.
[0011] According to a preferred embodiment of the present invention, before receiving the scenario development request, the scenario task development method further includes:
[0012] Detecting whether the scenario development request carries account opening information corresponding to a preset account opening tag;
[0013] If the scenario development request does not carry the account opening information corresponding to the preset account opening tag, obtaining the user identifier of the triggering user in the scenario development request, and obtaining the account opening list from the preset workflow engine;
[0014] Traversing the account opening list based on the user identifier;
[0015] If the account opening list includes the user identifier, it is determined that the scenario development request is received.
[0016] According to a preferred embodiment of the present invention, the business process diagram of identifying the object to be developed based on the scenario development request includes:
[0017] Extracting the storage path of the object to be developed from the scenario development request;
[0018] Acquire a task development text from the storage path, and extract a plurality of text logic words from the task development text based on preset logic characters;
[0019] determining a lexical order of the plurality of text logical lexicons in the task development text;
[0020] Obtaining module block diagrams corresponding to the plurality of text logical vocabularies, and splicing the module block diagrams according to the vocabularies order to obtain a process template diagram;
[0021] extracting event information corresponding to the plurality of text logical words from the task development text;
[0022] The event information is entered into the corresponding module block diagram in the process template diagram to obtain the business process diagram.
[0023] According to a preferred embodiment of the present invention, the preset workflow engine includes a plurality of configuration tasks, each configuration task includes task information, and splitting the business process diagram according to the preset workflow engine to obtain a first process that successfully matches the preset workflow engine and a second process that fails to match the preset workflow engine includes:
[0024] Parse the task information in each configuration task and obtain the execution information of each configuration task;
[0025] Calculating event similarity between the execution information and the event information;
[0026] The sub-process corresponding to the event information whose event similarity is greater than the configuration value is extracted from the business process diagram as the first process, and the sub-process corresponding to the event information whose event similarity is less than or equal to the configuration value is extracted from the business process diagram as the second process, and the configuration value is less than the preset threshold.
[0027] According to a preferred embodiment of the present invention, the initial task includes scenario parameters, and the identification of a matching degree between the first process and the initial task based on the object to be developed includes:
[0028] Acquire object information corresponding to both the object to be developed and the first process as the parameter information;
[0029] The similarity between the scene parameter and the parameter information is calculated to obtain the matching degree.
[0030] According to a preferred embodiment of the present invention, updating the initial task based on the parameter information of the first process to obtain the first task includes:
[0031] Locating the parameter position of the scene parameter in the initial task;
[0032] The parameter information is written into the parameter position to obtain the first task.
[0033] According to a preferred embodiment of the present invention, the step of combining the first task and the second task according to the logical relationship between the first process and the second process in the business process diagram to obtain the target task includes:
[0034] Detecting a positional relationship between the first process and the second process in the business process diagram;
[0035] Acquire information corresponding to the position relationship from a preset relationship table as the logical relationship;
[0036] Detecting a programming language in the preset workflow engine;
[0037] Obtaining a relational code of the logical relationship in the programming language;
[0038] The first task and the second task are merged based on the relationship code to obtain the target task.
[0039] On the other hand, the present invention further provides a scenario task development device, comprising:
[0040] A receiving unit, configured to receive a scenario development request;
[0041] an identification unit, configured to identify a business process diagram of an object to be developed based on the scenario development request;
[0042] a splitting unit, configured to split the business process diagram according to a preset workflow engine to obtain a first process that successfully matches the preset workflow engine and a second process that fails to match the preset workflow engine, and determine the configuration task in the preset workflow engine that successfully matches the first process as the initial task;
[0043] The identification unit is further configured to identify a matching degree between the first process and the initial task based on the object to be developed;
[0044] an updating unit, configured to update the initial task based on the parameter information of the first process to obtain the first task if the matching degree is less than a preset threshold, and obtain the development information of the second process as the second task;
[0045] The splicing unit is used to splice the first task and the second task according to the logical relationship between the first process and the second process in the business process diagram to obtain a target task.
[0046] On the other hand, the present invention further provides an electronic device, comprising:
[0047] a memory storing computer-readable instructions; and
[0048] A processor executes computer-readable instructions stored in the memory to implement the scenario task development method.
[0049] On the other hand, the present invention also proposes a computer-readable storage medium, in which computer-readable instructions are stored. The computer-readable instructions are executed by a processor in an electronic device to implement the scenario task development method.
[0050] It can be seen from the above technical solutions that the present invention can accurately identify the business process diagram corresponding to the object to be developed based on the scenario development request, and then split the business process diagram based on the preset workflow engine, and can accurately select the first process from the business process diagram that does not require manual development by developers. The matching degree between the first process and the initial task is identified by the object to be developed, and the first task corresponding to the first process can be accurately generated. At the same time, since there is no need to recreate the initial task, the generation efficiency of the first task can be improved, and the target task is further generated according to the logical relationship between the first process and the second process in the business process diagram. Since there is no need to create the initial task, the generation efficiency of the target task is improved, and the online efficiency of the new business scenario (target task) corresponding to the scenario development request is improved. At the same time, the accuracy of the target task is improved by splicing the first task and the second task through the logical relationship. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] Figure 1 It is a flow chart of a preferred embodiment of the scenario task development method of the present invention.
[0052] Figure 2 It is a functional module diagram of a preferred embodiment of the scenario task development device of the present invention.
[0053] Figure 3It is a structural diagram of an electronic device of a preferred embodiment of the present invention for implementing the scenario task development method. DETAILED DESCRIPTION
[0054] In order to make the objectives, technical solutions and advantages of the present invention more clear, the present invention is described in detail below with reference to the accompanying drawings and specific embodiments.
[0055] like Figure 1 FIG. 1 is a flow chart of a preferred embodiment of the scenario task development method of the present invention. According to different requirements, the order of the steps in the flow chart can be changed, and some steps can be omitted.
[0056] The scenario-based task development method can acquire and process relevant data based on artificial intelligence technology. Artificial Intelligence (AI) is the theory, method, technology, and application system that uses digital computers or machines controlled by digital computers to simulate, extend, and expand human intelligence, perceive the environment, acquire knowledge, and use that knowledge to achieve optimal results.
[0057] Fundamental AI technologies generally include sensors, dedicated AI chips, cloud computing, distributed storage, big data processing, operating / interaction systems, and mechatronics. AI software technologies primarily encompass computer vision, robotics, biometrics, speech processing, natural language processing, and machine learning / deep learning.
[0058] The scenario task development method is applied to one or more electronic devices, which are devices that can automatically perform numerical calculations and / or information processing according to pre-set or stored computer-readable instructions. Their hardware includes but is not limited to microprocessors, application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), digital signal processors (DSPs), embedded devices, etc.
[0059] The electronic device can be any electronic product that can interact with a user, such as a personal computer, a tablet computer, a smart phone, a personal digital assistant (PDA), a game console, an interactive network television (IPTV), a smart wearable device, etc.
[0060] The electronic device may include a network device and / or a user device, wherein the network device includes, but is not limited to, a single network electronic device, a group of electronic devices consisting of multiple network electronic devices, or a cloud based on cloud computing consisting of a large number of hosts or network electronic devices.
[0061] The network where the electronic device is located includes, but is not limited to: the Internet, a wide area network, a metropolitan area network, a local area network, a virtual private network (VPN), etc.
[0062] S10, receiving a scenario development request.
[0063] In at least one embodiment of the present invention, the scenario development request may be triggered and generated when a developer receives a development requirement.
[0064] The scenario development request may carry information related to the triggering user, such as a user ID.
[0065] In at least one embodiment of the present invention, before receiving the scenario development request, the scenario task development method further includes:
[0066] Detecting whether the scenario development request carries account opening information corresponding to a preset account opening tag;
[0067] If the scenario development request does not carry the account opening information corresponding to the preset account opening tag, obtaining the user identifier of the triggering user in the scenario development request, and obtaining the account opening list from the preset workflow engine;
[0068] Traversing the account opening list based on the user identifier;
[0069] If the account opening list includes the user identifier, it is determined that the scenario development request is received.
[0070] The preset account opening tag refers to an information tag required when any user or any merchant opens an account. For example, the preset account opening tag may include, but is not limited to: identity information, etc.
[0071] The triggering user refers to the user or merchant who triggers the generation of the scenario task development request.
[0072] The user identifier can uniquely identify the triggering user.
[0073] The account opening list stores information of multiple users who have opened accounts on the preset workflow engine.
[0074] By detecting whether the scenario development request carries the account opening information corresponding to the preset account opening tag, it is possible to quickly determine whether the triggering user is creating a task on the preset workflow engine for the first time. Furthermore, when the scenario development request does not carry the account opening information corresponding to the preset account opening tag, the user identifier is detected by the account opening list to identify whether the scenario development request complies with security requirements, thereby avoiding hacker attacks on the preset workflow engine and improving the security of receiving the scenario development request.
[0075] S11, identifying a business process diagram of an object to be developed based on the scenario development request.
[0076] In at least one embodiment of the present invention, the object to be developed refers to a specific business activity, etc. For example, the object to be developed may be a New Year's Day welfare activity.
[0077] The business process diagram includes process information corresponding to the object to be developed.
[0078] In at least one embodiment of the present invention, the electronic device identifying a business process diagram of an object to be developed based on the scenario development request includes:
[0079] Extracting the storage path of the object to be developed from the scenario development request;
[0080] Acquire a task development text from the storage path, and extract a plurality of text logic words from the task development text based on preset logic characters;
[0081] determining a lexical order of the plurality of text logical lexicons in the task development text;
[0082] Obtaining module block diagrams corresponding to the plurality of text logical vocabularies, and splicing the module block diagrams according to the vocabularies order to obtain a process template diagram;
[0083] extracting event information corresponding to the plurality of text logical words from the task development text;
[0084] The event information is entered into the corresponding module block diagram in the process template diagram to obtain the business process diagram.
[0085] The storage path stores a task development text corresponding to the object to be developed.
[0086] The preset logical characters may include, but are not limited to: start, judge, next step execution, etc.
[0087] The task development text can be accurately obtained through the storage path, and then the multiple text logical words can be accurately obtained based on the preset logical characters, so that the process template diagram can be accurately generated in combination with the word order, thereby improving the accuracy and visualization of the business process diagram.
[0088] S12, splitting the business process diagram according to the preset workflow engine to obtain a first process that successfully matches the preset workflow engine and a second process that fails to match the preset workflow engine, and determining the configuration task in the preset workflow engine that successfully matches the first process as the initial task.
[0089] In at least one embodiment of the present invention, the preset workflow engine includes important functions such as process node management, flow direction management, and process sample management.
[0090] The first process refers to a sub-process in the business process diagram that successfully matches any configuration task of the preset workflow engine.
[0091] The second process refers to a sub-process in the business process diagram that fails to match all configuration tasks of the preset workflow engine.
[0092] In at least one embodiment of the present invention, the preset workflow engine includes a plurality of configuration tasks, each configuration task includes task information, and the electronic device splits the business process diagram according to the preset workflow engine to obtain a first process that successfully matches the preset workflow engine and a second process that fails to match the preset workflow engine, including:
[0093] Parse the task information in each configuration task and obtain the execution information of each configuration task;
[0094] Calculating event similarity between the execution information and the event information;
[0095] The sub-process corresponding to the event information whose event similarity is greater than the configuration value is extracted from the business process diagram as the first process, and the sub-process corresponding to the event information whose event similarity is less than or equal to the configuration value is extracted from the business process diagram as the second process, and the configuration value is less than the preset threshold.
[0096] The task information refers to the information in the configuration task except the scenario parameters, and the scenario parameters refer to parameter values related to the actual transaction scenario.
[0097] The execution information refers to the process information corresponding to the task information.
[0098] The configuration values can be set according to actual needs, and the present invention will not elaborate on this.
[0099] By directly parsing the task information, since the task information does not contain scenario parameters, the characterization capability of the execution information for the configuration task can be improved, thereby reducing the dependency of the configuration task on the task information and improving the versatility of the configuration task. Furthermore, combined with the determination of the event similarity, the first process and the second process can be accurately extracted from the business process diagram.
[0100] S13: Identify the matching degree between the first process and the initial task based on the object to be developed.
[0101] In at least one embodiment of the present invention, the matching degree refers to the degree to which the first process successfully matches the initial task.
[0102] In at least one embodiment of the present invention, the initial task includes scenario parameters, and the electronic device identifies a matching degree between the first process and the initial task based on the object to be developed, including:
[0103] Acquire object information corresponding to both the object to be developed and the first process as the parameter information;
[0104] The similarity between the scene parameter and the parameter information is calculated to obtain the matching degree.
[0105] The parameter information refers to the parameters in the object to be developed that correspond to the first process. For example, the parameter information may be that purchasing a product worth 100 yuan can accumulate 100 points. If the scenario parameter is that purchasing a product worth 100 yuan can accumulate 100 points, the matching degree is 100%.
[0106] By comparing the scene parameters with the parameter information, since there is no need to compare the first process with the task information, interference between the first process and the task information can be avoided, thereby improving the accuracy of the matching degree.
[0107] S14: If the matching degree is less than a preset threshold, the initial task is updated based on the parameter information of the first process to obtain a first task, and the development information of the second process is obtained as a second task.
[0108] In at least one embodiment of the present invention, the preset threshold may be set according to actual needs. For example, the preset threshold may be set to 90%.
[0109] The first task is development information that matches the first process.
[0110] The second task may be code information developed by a developer according to the second process, and the second task may be obtained from the developer's storage path.
[0111] In at least one embodiment of the present invention, after identifying the matching degree between the first process and the initial task based on the object to be developed, the scenario task development method further includes:
[0112] If the matching degree is greater than or equal to the preset threshold, the initial task is determined as the first task.
[0113] According to the above implementation, since there is no need to repeatedly develop the first task, the development efficiency of the target task can be further improved.
[0114] In at least one embodiment of the present invention, the electronic device updates the initial task based on the parameter information of the first process, and obtaining the first task includes:
[0115] Locating the parameter position of the scene parameter in the initial task;
[0116] The parameter information is written into the parameter position to obtain the first task.
[0117] By locating the parameter position, the scene parameter can be overwritten based on the parameter information, thereby improving the generation efficiency of the first task.
[0118] S15: According to the logical relationship between the first process and the second process in the business process diagram, the first task and the second task are combined to obtain a target task.
[0119] It should be emphasized that in order to further ensure the privacy and security of the above-mentioned target tasks, the above-mentioned target tasks can also be stored in a node of a blockchain.
[0120] In at least one embodiment of the present invention, the target task refers to code information corresponding to the object to be developed.
[0121] In at least one embodiment of the present invention, the electronic device combines the first task and the second task according to the logical relationship between the first process and the second process in the business process diagram to obtain the target task, which includes:
[0122] Detecting a positional relationship between the first process and the second process in the business process diagram;
[0123] Acquire information corresponding to the position relationship from a preset relationship table as the logical relationship;
[0124] Detecting a programming language in the preset workflow engine;
[0125] Obtaining a relational code of the logical relationship in the programming language;
[0126] The first task and the second task are merged based on the relationship code to obtain the target task.
[0127] The position information may include, but is not limited to: up-down relationship, left-right relationship, etc.
[0128] The preset relationship table stores mapping relationships between multiple position relationships and multiple logical relationships. For example, if the position information is a top-bottom relationship, the logical relationship can be executed sequentially; if the position relationship is a left-right relationship, the logical relationship can be executed in parallel.
[0129] The programming language includes, but is not limited to: JAVA language, C language, etc.
[0130] By detecting the positional relationship, the logical relationship can be accurately determined, and then the relational code based on the logical relationship in the programming language can accurately merge the first task and the second task, thereby improving the generation accuracy of the target task.
[0131] It can be seen from the above technical solutions that the present invention can accurately identify the business process diagram corresponding to the object to be developed based on the scenario development request, and then split the business process diagram based on the preset workflow engine, and can accurately select the first process from the business process diagram that does not require manual development by developers. The matching degree between the first process and the initial task is identified by the object to be developed, and the first task corresponding to the first process can be accurately generated. At the same time, since there is no need to recreate the initial task, the generation efficiency of the first task can be improved, and the target task is further generated according to the logical relationship between the first process and the second process in the business process diagram. Since there is no need to create the initial task, the generation efficiency of the target task is improved, and the online efficiency of the new business scenario (target task) corresponding to the scenario development request is improved. At the same time, the accuracy of the target task is improved by splicing the first task and the second task through the logical relationship.
[0132] like Figure 2, which is a functional module diagram of a preferred embodiment of the scenario task development device of the present invention. The scenario task development device 11 includes a receiving unit 110, a recognition unit 111, a splitting unit 112, an updating unit 113, a splicing unit 114, a detection unit 115, an acquisition unit 116, a traversal unit 117 and a determination unit 118. The module / unit referred to in the present invention refers to a series of computer-readable instruction segments that can be acquired by the processor 13 and can perform fixed functions, which are stored in the memory 12. In this embodiment, the functions of each module / unit will be described in detail in subsequent embodiments.
[0133] The receiving unit 110 receives a scenario development request.
[0134] In at least one embodiment of the present invention, the scenario development request may be triggered and generated when a developer receives a development requirement.
[0135] The scenario development request may carry information related to the triggering user, such as a user ID.
[0136] In at least one embodiment of the present invention, before receiving a scenario development request, the detection unit 115 detects whether the scenario development request carries account opening information corresponding to a preset account opening tag;
[0137] If the scenario development request does not carry the account opening information corresponding to the preset account opening tag, the acquisition unit 116 acquires the user identifier of the triggering user in the scenario development request and acquires the account opening list from the preset workflow engine;
[0138] The traversal unit 117 traverses the account opening list based on the user identifier;
[0139] If the account opening list includes the user identifier, the determining unit 118 determines to receive the scenario development request.
[0140] The preset account opening tag refers to an information tag required when any user or any merchant opens an account. For example, the preset account opening tag may include, but is not limited to: identity information, etc.
[0141] The triggering user refers to the user or merchant who triggers the generation of the scenario task development request.
[0142] The user identifier can uniquely identify the triggering user.
[0143] The account opening list stores information of multiple users who have opened accounts on the preset workflow engine.
[0144] By detecting whether the scenario development request carries the account opening information corresponding to the preset account opening tag, it is possible to quickly determine whether the triggering user is creating a task on the preset workflow engine for the first time. Furthermore, when the scenario development request does not carry the account opening information corresponding to the preset account opening tag, the user identifier is detected by the account opening list to identify whether the scenario development request complies with security requirements, thereby avoiding hacker attacks on the preset workflow engine and improving the security of receiving the scenario development request.
[0145] The identification unit 111 identifies a business process diagram of an object to be developed based on the scenario development request.
[0146] In at least one embodiment of the present invention, the object to be developed refers to a specific business activity, etc. For example, the object to be developed may be a New Year's Day welfare activity.
[0147] The business process diagram includes process information corresponding to the object to be developed.
[0148] In at least one embodiment of the present invention, the identifying unit 111 identifies the business process diagram of the object to be developed based on the scenario development request, including:
[0149] Extracting the storage path of the object to be developed from the scenario development request;
[0150] Acquire a task development text from the storage path, and extract a plurality of text logic words from the task development text based on preset logic characters;
[0151] determining a lexical order of the plurality of text logical lexicons in the task development text;
[0152] Obtaining module block diagrams corresponding to the plurality of text logical vocabularies, and splicing the module block diagrams according to the vocabularies order to obtain a process template diagram;
[0153] extracting event information corresponding to the plurality of text logical words from the task development text;
[0154] The event information is entered into the corresponding module block diagram in the process template diagram to obtain the business process diagram.
[0155] The storage path stores a task development text corresponding to the object to be developed.
[0156] The preset logical characters may include, but are not limited to: start, judge, next step execution, etc.
[0157] The task development text can be accurately obtained through the storage path, and then the multiple text logical words can be accurately obtained based on the preset logical characters, so that the process template diagram can be accurately generated in combination with the word order, thereby improving the accuracy and visualization of the business process diagram.
[0158] The splitting unit 112 splits the business process diagram according to the preset workflow engine to obtain a first process that successfully matches the preset workflow engine and a second process that fails to match the preset workflow engine, and determines the configuration task in the preset workflow engine that successfully matches the first process as the initial task.
[0159] In at least one embodiment of the present invention, the preset workflow engine includes important functions such as process node management, flow direction management, and process sample management.
[0160] The first process refers to a sub-process in the business process diagram that successfully matches any configuration task of the preset workflow engine.
[0161] The second process refers to a sub-process in the business process diagram that fails to match all configuration tasks of the preset workflow engine.
[0162] In at least one embodiment of the present invention, the preset workflow engine includes a plurality of configuration tasks, each configuration task includes task information, and the splitting unit 112 splits the business process diagram according to the preset workflow engine to obtain a first process that successfully matches the preset workflow engine and a second process that fails to match the preset workflow engine, including:
[0163] Parse the task information in each configuration task and obtain the execution information of each configuration task;
[0164] Calculating event similarity between the execution information and the event information;
[0165] The sub-process corresponding to the event information whose event similarity is greater than the configuration value is extracted from the business process diagram as the first process, and the sub-process corresponding to the event information whose event similarity is less than or equal to the configuration value is extracted from the business process diagram as the second process, and the configuration value is less than the preset threshold.
[0166] The task information refers to the information in the configuration task except the scenario parameters, and the scenario parameters refer to parameter values related to the actual transaction scenario.
[0167] The execution information refers to the process information corresponding to the task information.
[0168] The configuration values can be set according to actual needs, and the present invention will not elaborate on this.
[0169] By directly parsing the task information, since the task information does not contain scenario parameters, the characterization capability of the execution information for the configuration task can be improved, thereby reducing the dependency of the configuration task on the task information and improving the versatility of the configuration task. Furthermore, combined with the determination of the event similarity, the first process and the second process can be accurately extracted from the business process diagram.
[0170] The identification unit 111 identifies a matching degree between the first process and the initial task based on the object to be developed.
[0171] In at least one embodiment of the present invention, the matching degree refers to the degree to which the first process successfully matches the initial task.
[0172] In at least one embodiment of the present invention, the initial task includes scenario parameters, and the identification unit 111 identifies a matching degree between the first process and the initial task based on the object to be developed, including:
[0173] Acquire object information corresponding to both the object to be developed and the first process as the parameter information;
[0174] The similarity between the scene parameter and the parameter information is calculated to obtain the matching degree.
[0175] The parameter information refers to the parameters in the object to be developed that correspond to the first process. For example, the parameter information may be that purchasing a product worth 100 yuan can accumulate 100 points. If the scenario parameter is that purchasing a product worth 100 yuan can accumulate 100 points, the matching degree is 100%.
[0176] By comparing the scene parameters with the parameter information, since there is no need to compare the first process with the task information, interference between the first process and the task information can be avoided, thereby improving the accuracy of the matching degree.
[0177] If the matching degree is less than a preset threshold, the updating unit 113 updates the initial task based on the parameter information of the first process to obtain a first task, and acquires the development information of the second process as a second task.
[0178] In at least one embodiment of the present invention, the preset threshold may be set according to actual needs. For example, the preset threshold may be set to 90%.
[0179] The first task is development information that matches the first process.
[0180] The second task may be code information developed by a developer according to the second process, and the second task may be obtained from the developer's storage path.
[0181] In at least one embodiment of the present invention, after identifying the matching degree between the first process and the initial task based on the object to be developed, if the matching degree is greater than or equal to the preset threshold, the determining unit 118 determines the initial task as the first task.
[0182] According to the above implementation, since there is no need to repeatedly develop the first task, the development efficiency of the target task can be further improved.
[0183] In at least one embodiment of the present invention, the updating unit 113 updates the initial task based on the parameter information of the first process, and the first task includes:
[0184] Locating the parameter position of the scene parameter in the initial task;
[0185] The parameter information is written into the parameter position to obtain the first task.
[0186] By locating the parameter position, the scene parameter can be overwritten based on the parameter information, thereby improving the generation efficiency of the first task.
[0187] The splicing unit 114 splices the first task and the second task according to the logical relationship between the first process and the second process in the business process diagram to obtain a target task.
[0188] It should be emphasized that in order to further ensure the privacy and security of the above-mentioned target tasks, the above-mentioned target tasks can also be stored in a node of a blockchain.
[0189] In at least one embodiment of the present invention, the target task refers to code information corresponding to the object to be developed.
[0190] In at least one embodiment of the present invention, the splicing unit 114 splices the first task and the second task according to the logical relationship between the first process and the second process in the business process diagram to obtain a target task including:
[0191] Detecting a positional relationship between the first process and the second process in the business process diagram;
[0192] Acquire information corresponding to the position relationship from a preset relationship table as the logical relationship;
[0193] Detecting a programming language in the preset workflow engine;
[0194] Obtaining a relational code of the logical relationship in the programming language;
[0195] The first task and the second task are merged based on the relationship code to obtain the target task.
[0196] The position information may include, but is not limited to: up-down relationship, left-right relationship, etc.
[0197] The preset relationship table stores mapping relationships between multiple position relationships and multiple logical relationships. For example, if the position information is a top-bottom relationship, the logical relationship can be executed sequentially; if the position relationship is a left-right relationship, the logical relationship can be executed in parallel.
[0198] The programming language includes, but is not limited to: JAVA language, C language, etc.
[0199] By detecting the positional relationship, the logical relationship can be accurately determined, and then the relational code based on the logical relationship in the programming language can accurately merge the first task and the second task, thereby improving the generation accuracy of the target task.
[0200] It can be seen from the above technical solutions that the present invention can accurately identify the business process diagram corresponding to the object to be developed based on the scenario development request, and then split the business process diagram based on the preset workflow engine, and can accurately select the first process from the business process diagram that does not require manual development by developers. The matching degree between the first process and the initial task is identified by the object to be developed, and the first task corresponding to the first process can be accurately generated. At the same time, since there is no need to recreate the initial task, the generation efficiency of the first task can be improved, and the target task is further generated according to the logical relationship between the first process and the second process in the business process diagram. Since there is no need to create the initial task, the generation efficiency of the target task is improved, and the online efficiency of the new business scenario (target task) corresponding to the scenario development request is improved. At the same time, the accuracy of the target task is improved by splicing the first task and the second task through the logical relationship.
[0201] like Figure 3 , which is a structural diagram of an electronic device according to a preferred embodiment of the present invention for implementing the scenario task development method.
[0202] In one embodiment of the present invention, the electronic device 1 includes, but is not limited to, a memory 12, a processor 13, and computer-readable instructions stored in the memory 12 and executable on the processor 13, such as a scenario task development program.
[0203] Those skilled in the art will understand that the schematic diagram is merely an example of the electronic device 1 and does not constitute a limitation on the electronic device 1. The electronic device 1 may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the electronic device 1 may also include input and output devices, network access devices, buses, etc.
[0204] The processor 13 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc. The processor 13 is the computing core and control center of the electronic device 1, connecting various parts of the entire electronic device 1 using various interfaces and lines, and executing the operating system of the electronic device 1 as well as various installed applications, program codes, etc.
[0205] Exemplarily, the computer-readable instructions may be divided into one or more modules / units, which are stored in the memory 12 and executed by the processor 13 to implement the present invention. The one or more modules / units may be a series of computer-readable instruction segments capable of performing specific functions, which describe the execution process of the computer-readable instructions in the electronic device 1. For example, the computer-readable instructions may be divided into a receiving unit 110, an identification unit 111, a splitting unit 112, an updating unit 113, a splicing unit 114, a detection unit 115, an acquisition unit 116, a traversal unit 117, and a determination unit 118.
[0206] The memory 12 can be used to store the computer-readable instructions and / or modules. The processor 13 implements the various functions of the electronic device 1 by running or executing the computer-readable instructions and / or modules stored in the memory 12 and calling the data stored in the memory 12. The memory 12 can mainly include a program storage area and a data storage area. The program storage area can store an operating system and at least one application required for a function (such as a sound playback function, an image playback function, etc.); the data storage area can store data created based on the use of the electronic device. The memory 12 can include non-volatile and volatile memory, such as a hard disk, internal memory, a plug-in hard disk, a smart memory card (SmartMedia Card, SMC), a secure digital (Secure Digital, SD) card, a flash card, at least one disk storage device, a flash memory device, or other storage devices.
[0207] The memory 12 may be an external memory and / or an internal memory of the electronic device 1. Furthermore, the memory 12 may be a physical memory, such as a memory stick, a TF card (Trans-flash Card), and the like.
[0208] If the modules / units integrated in the electronic device 1 are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the present invention can also implement all or part of the processes in the above-mentioned embodiment methods by instructing related hardware through computer-readable instructions. The computer-readable instructions can be stored in a computer-readable storage medium. When the computer-readable instructions are executed by a processor, the steps of each of the above-mentioned method embodiments can be implemented.
[0209] The computer-readable instructions include computer-readable instruction codes, which may be in source code form, object code form, executable file, or some intermediate form. The computer-readable medium may include any entity or device capable of carrying the computer-readable instruction codes, a recording medium, a USB flash drive, a mobile hard drive, a magnetic disk, an optical disk, a computer memory, a read-only memory (ROM), or a random access memory (RAM).
[0210] The blockchain referred to in this article is a new application model for computer technologies such as distributed scenario task development, peer-to-peer transmission, consensus mechanisms, and encryption algorithms. Blockchain is essentially a decentralized database, a series of data blocks generated using cryptographic methods. Each data block contains information about a batch of network transactions, which is used to verify the validity of this information (to prevent counterfeiting) and generate the next block. Blockchain can include the blockchain underlying platform, the platform product service layer, and the application service layer.
[0211] Combine Figure 1 The memory 12 in the electronic device 1 stores computer-readable instructions to implement a scenario task development method, and the processor 13 can execute the computer-readable instructions to implement:
[0212] Receive scenario development requests;
[0213] Identifying a business process diagram of an object to be developed based on the scenario development request;
[0214] Splitting the business process diagram according to a preset workflow engine to obtain a first process that successfully matches the preset workflow engine and a second process that fails to match the preset workflow engine, and determining the configuration task in the preset workflow engine that successfully matches the first process as the initial task;
[0215] Identifying a degree of matching between the first process and the initial task based on the object to be developed;
[0216] If the matching degree is less than a preset threshold, the initial task is updated based on the parameter information of the first process to obtain the first task, and the development information of the second process is obtained as the second task;
[0217] The first task and the second task are spliced together according to the logical relationship between the first process and the second process in the business process diagram to obtain a target task.
[0218] Specifically, the specific implementation method of the processor 13 for the above computer readable instructions can refer to Figure 1 The description of the relevant steps in the corresponding embodiments will not be repeated here.
[0219] In the several embodiments provided herein, it should be understood that the disclosed systems, devices, and methods may be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the module division is merely a logical functional division, and actual implementation may employ other division methods.
[0220] The computer-readable storage medium stores computer-readable instructions, wherein the computer-readable instructions, when executed by the processor 13, are used to implement the following steps:
[0221] Receive scenario development requests;
[0222] Identifying a business process diagram of an object to be developed based on the scenario development request;
[0223] Splitting the business process diagram according to a preset workflow engine to obtain a first process that successfully matches the preset workflow engine and a second process that fails to match the preset workflow engine, and determining the configuration task in the preset workflow engine that successfully matches the first process as the initial task;
[0224] Identifying a degree of matching between the first process and the initial task based on the object to be developed;
[0225] If the matching degree is less than a preset threshold, the initial task is updated based on the parameter information of the first process to obtain the first task, and the development information of the second process is obtained as the second task;
[0226] The first task and the second task are spliced together according to the logical relationship between the first process and the second process in the business process diagram to obtain a target task.
[0227] The modules described as separate components may or may not be physically separate, and the components shown as modules may or may not be physical units, that is, they may be located in one place or distributed across multiple network elements. Some or all of the modules may be selected to achieve the purpose of the solution of this embodiment according to actual needs.
[0228] In addition, the functional modules in various embodiments of the present invention may be integrated into a single processing unit, each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or hardware plus software functional modules.
[0229] Therefore, the embodiments should be considered in all respects as illustrative and non-restrictive, and the scope of the invention is defined by the appended claims rather than the foregoing description, and all changes that come within the meaning and range of equivalents of the claims are intended to be embraced therein. Any reference to a figure in a claim should not be construed as limiting the claim to which it relates.
[0230] Furthermore, it is clear that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. The multiple units or devices described may also be implemented by a single unit or device through software or hardware. Terms such as first and second are used to indicate names and do not imply any particular order.
[0231] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not limiting. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solutions of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical solutions of the present invention.
Claims
1. A scenario task development method, characterized in that: The scenario task development method includes: Receive scenario development requests; Identifying a business process diagram of an object to be developed based on the scenario development request; The business process diagram is split according to a preset workflow engine to obtain a first process that successfully matches the preset workflow engine and a second process that fails to match the preset workflow engine, wherein the preset workflow engine includes multiple configuration tasks, each configuration task includes task information, and the task information refers to information in the configuration task except for scenario parameters, and the scenario parameters refer to parameter values related to actual transaction scenarios; the business process diagram is split according to the preset workflow engine to obtain the first process that successfully matches the preset workflow engine and the second process that fails to match the preset workflow engine, including: parsing the task information in each configuration task to obtain execution information of each configuration task; calculating the event similarity between the execution information and the event information in the task development text; extracting from the business process diagram a sub-process corresponding to the event information whose event similarity is greater than the configuration value as the first process, and extracting from the business process diagram a sub-process corresponding to the event information whose event similarity is less than or equal to the configuration value as the second process, wherein the configuration value is less than a preset threshold; and determining the configuration task in the preset workflow engine that successfully matches the first process as the initial task; Identifying a degree of matching between the first process and the initial task based on the object to be developed; If the matching degree is less than the preset threshold, the initial task is updated based on the parameter information of the first process to obtain the first task, and the development information of the second process is obtained as the second task; The first task and the second task are spliced together according to the logical relationship between the first process and the second process in the business process diagram to obtain a target task.
2. The scenario task development method according to claim 1, characterized in that: Before receiving the scenario development request, the scenario task development method further includes: Detecting whether the scenario development request carries account opening information corresponding to a preset account opening tag; If the scenario development request does not carry the account opening information corresponding to the preset account opening tag, obtaining the user identifier of the triggering user in the scenario development request, and obtaining the account opening list from the preset workflow engine; Traversing the account opening list based on the user identifier; If the account opening list includes the user identifier, it is determined that the scenario development request is received.
3. The scenario task development method according to claim 1, characterized in that: The business process diagram for identifying the object to be developed based on the scenario development request includes: Extracting the storage path of the object to be developed from the scenario development request; Acquire a task development text from the storage path, and extract a plurality of text logic words from the task development text based on preset logic characters; determining a lexical order of the plurality of text logical lexicons in the task development text; Obtaining module block diagrams corresponding to the plurality of text logical vocabularies, and splicing the module block diagrams according to the vocabularies order to obtain a process template diagram; extracting event information corresponding to the plurality of text logical words from the task development text; The event information is entered into the corresponding module block diagram in the process template diagram to obtain the business process diagram.
4. The scenario task development method according to claim 1, wherein: The initial task includes scenario parameters, and the identification of the matching degree between the first process and the initial task based on the object to be developed includes: Acquire object information corresponding to both the object to be developed and the first process as the parameter information; The similarity between the scene parameter and the parameter information is calculated to obtain the matching degree.
5. The scenario task development method according to claim 4, characterized in that: The updating of the initial task based on the parameter information of the first process to obtain the first task includes: Locating the parameter position of the scene parameter in the initial task; The parameter information is written into the parameter position to obtain the first task.
6. The scenario task development method according to claim 1, wherein: The step of combining the first task and the second task according to the logical relationship between the first process and the second process in the business process diagram to obtain the target task includes: Detecting a positional relationship between the first process and the second process in the business process diagram; Acquire information corresponding to the position relationship from a preset relationship table as the logical relationship; Detecting a programming language in the preset workflow engine; Obtaining a relational code of the logical relationship in the programming language; The first task and the second task are merged based on the relationship code to obtain the target task.
7. A scenario task development device, characterized in that: The scenario task development device comprises: A receiving unit, configured to receive a scenario development request; an identification unit, configured to identify a business process diagram of an object to be developed based on the scenario development request; A splitting unit is configured to split the business process diagram according to a preset workflow engine to obtain a first process that successfully matches the preset workflow engine and a second process that fails to match the preset workflow engine, wherein the preset workflow engine includes multiple configuration tasks, each configuration task includes task information, and the task information refers to information in the configuration task other than scenario parameters, and the scenario parameters refer to parameter values related to actual transaction scenarios; the splitting of the business process diagram according to the preset workflow engine to obtain the first process that successfully matches the preset workflow engine and the second process that fails to match the preset workflow engine includes: parsing the task information in each configuration task to obtain execution information of each configuration task; calculating the event similarity between the execution information and the event information in the task development text; extracting from the business process diagram a sub-process corresponding to the event information whose event similarity is greater than the configuration value as the first process, and extracting from the business process diagram a sub-process corresponding to the event information whose event similarity is less than or equal to the configuration value as the second process, wherein the configuration value is less than a preset threshold; and determining the configuration task in the preset workflow engine that successfully matches the first process as the initial task; The identification unit is further configured to identify a matching degree between the first process and the initial task based on the object to be developed; an updating unit, configured to update the initial task based on the parameter information of the first process to obtain a first task if the matching degree is less than the preset threshold, and obtain the development information of the second process as a second task; The splicing unit is used to splice the first task and the second task according to the logical relationship between the first process and the second process in the business process diagram to obtain a target task.
8. An electronic device, characterized in that: The electronic device comprises: a memory storing computer-readable instructions; and A processor executes computer-readable instructions stored in the memory to implement the scenario task development method according to any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-readable instructions, and the computer-readable instructions are executed by a processor in an electronic device to implement the scenario task development method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Workflow static planning method based on process mode
CN101847228A
Development method and device of business control flows
CN108334346A
Batch scheduling editing method and device
CN111782204A