CN114418398A - Scene task development method, device, equipment and storage medium - Google Patents

Scene task development method, device, equipment and storage medium Download PDF

Info

Publication number
CN114418398A
CN114418398A CN202210063830.3A CN202210063830A CN114418398A CN 114418398 A CN114418398 A CN 114418398A CN 202210063830 A CN202210063830 A CN 202210063830A CN 114418398 A CN114418398 A CN 114418398A
Authority
CN
China
Prior art keywords
task
scene
development
information
preset
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
CN202210063830.3A
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.)
Ping An E Wallet Electronic Commerce Co Ltd
Original Assignee
Ping An E Wallet Electronic Commerce 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 Ping An E Wallet Electronic Commerce Co Ltd filed Critical Ping An E Wallet Electronic Commerce Co Ltd
Priority to CN202210063830.3A priority Critical patent/CN114418398A/en
Publication of CN114418398A publication Critical patent/CN114418398A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0633Workflow analysis
    • 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
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management
    • G06Q10/103Workflow collaboration or project management
    • 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

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Human Resources & Organizations (AREA)
  • Strategic Management (AREA)
  • Economics (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • Marketing (AREA)
  • Operations Research (AREA)
  • Tourism & Hospitality (AREA)
  • Quality & Reliability (AREA)
  • Development Economics (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Game Theory and Decision Science (AREA)
  • Educational Administration (AREA)
  • Technology Law (AREA)
  • Data Mining & Analysis (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention relates to development and provides a scene task development method, a scene task development device, scene task development equipment and a storage medium. The method includes the steps of receiving a scene development request, identifying a business process diagram of an object to be developed based on the scene development request, splitting the business process diagram according to a preset workflow engine to obtain a first process and a second process, determining a configuration task which is successfully matched with the first process in the preset workflow engine as an initial task, identifying the matching degree of the first process and the initial task based on the object to be developed, updating the initial task based on parameter information of the first process if the matching degree is smaller than a preset threshold value to obtain the first task, obtaining development information of the second process as the second task, and splicing the first task and the second task according to a logic relation of the first process and the second process in the business process diagram to obtain a target task. Furthermore, the invention also relates to a blockchain technique, and the target task can be stored in a blockchain.

Description

Scene task development method, device, equipment and storage medium
Technical Field
The present invention relates to the field of development technologies, and in particular, to a method, an apparatus, a device, and a storage medium for developing a scene task.
Background
In the current trading system, each new trading scenario needs customized development, which results in high business logic repetition rate in the trading system and lack of aggregation of multiple scenarios with the same flow, thereby causing low online efficiency of the new business scenario.
Disclosure of Invention
In view of the above, it is desirable to provide a scene task development method, apparatus, device and storage medium, which can improve the generation efficiency and generation accuracy of the target task.
In one aspect, the present invention provides a method for developing a scene task, where the method for developing a scene task includes:
receiving a scene development request;
identifying a business flow chart of an object to be developed based on the scene development request;
splitting the business process diagram according to a preset workflow engine to obtain a first process which is successfully matched with the preset workflow engine and a second process which is unsuccessfully matched with the preset workflow engine, and determining a configuration task which is successfully matched with the first process in the preset workflow engine as an initial task;
identifying the matching degree of the first process and the initial task based on the object to be developed;
if the matching degree is smaller than a preset threshold value, updating the initial task based on the parameter information of the first process to obtain a first task, and acquiring development information of the second process as a second task;
and splicing the first task and the second task according to the logical relationship of the first process and the second process in the business process diagram to obtain a target task.
According to the preferred embodiment of the present invention, before receiving the scenario development request, the scenario task development method further includes:
detecting whether the scene development request carries account opening information corresponding to a preset account opening label or not;
if the scene development request does not carry account opening information corresponding to the preset account opening tag, acquiring a user identifier of a trigger user in the scene development request, and acquiring an account opening list from the preset workflow engine;
traversing the account opening list based on the user identification;
and if the account opening list contains the user identification, determining to receive the scene development request.
According to the preferred embodiment of the present invention, the business process diagram for identifying the object to be developed based on the scene development request includes:
extracting a storage path of the object to be developed from the scene development request;
acquiring a task development text from the storage path, and extracting a plurality of text logic vocabularies from the task development text based on preset logic characters;
determining a lexical order of the plurality of textual logical vocabularies in the task development text;
acquiring module block diagrams corresponding to the text logic vocabularies, and splicing the module block diagrams according to the vocabulary sequence to obtain a flow template diagram;
extracting event information corresponding to the plurality of text logical vocabularies from the task development text;
and inputting the event information into a corresponding module block diagram in the flow template diagram to obtain the business flow diagram.
According to a preferred embodiment of the present invention, the preset workflow engine includes a plurality of the configuration tasks, each configuration task includes task information, the business process diagram is split according to the preset workflow engine, a first process that is successfully matched with the preset workflow engine is obtained, and a second process that is unsuccessfully matched with the preset workflow engine includes:
analyzing task information in each configuration task to obtain execution information of each configuration task;
calculating event similarity of the execution information and the event information;
and extracting a sub-process corresponding to the event information with the event similarity larger than a configuration value from the business flow chart as the first process, and extracting a sub-process corresponding to the event information with the event similarity smaller than or equal to the configuration value from the business flow chart as the second process, wherein the configuration value is smaller than the preset threshold value.
According to a preferred embodiment of the present invention, the initial task includes a scene parameter, and the identifying the matching degree between the first flow and the initial task based on the object to be developed includes:
acquiring object information simultaneously corresponding to the object to be developed and the first flow as the parameter information;
and calculating the similarity between the scene parameters and the parameter information to obtain the matching degree.
According to a preferred embodiment of the present invention, the updating the initial task based on the parameter information of the first process, and obtaining the first task includes:
positioning the parameter position of the scene parameter in the initial task;
and writing the parameter information into the parameter position to obtain the first task.
According to a preferred embodiment of the present invention, the splicing 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 the position relation of the first flow and the second flow in the business flow chart;
acquiring information corresponding to the position relation from a preset relation table as the logic relation;
detecting a programming language in the preset workflow engine;
acquiring a relation code of the logical relation on the programming language;
and merging the first task and the second task based on the relation code to obtain the target task.
In another aspect, the present invention further provides a scene task development device, where the scene task development device includes:
a receiving unit configured to receive a scene development request;
the identification unit is used for identifying a business flow chart of an object to be developed based on the scene development request;
the splitting unit is used for splitting the business process diagram according to a preset workflow engine to obtain a first process which is successfully matched with the preset workflow engine and a second process which is unsuccessfully matched with the preset workflow engine, and determining a configuration task which is successfully matched with the first process in the preset workflow engine as an initial task;
the identification unit is further used for identifying the matching degree of the first process and the initial task based on the object to be developed;
the updating unit is used for updating the initial task based on the parameter information of the first process to obtain a first task and acquiring the development information of the second process as a second task if the matching degree is smaller than a preset threshold;
and the splicing unit is used for splicing the first task and the second task according to the logical relationship of the first process and the second process in the business process diagram to obtain a target task.
In another aspect, the present invention further provides an electronic device, including:
a memory storing computer readable instructions; and
a processor executing computer readable instructions stored in the memory to implement the scenario task development method.
In another aspect, the present invention further provides a computer-readable storage medium, in which computer-readable instructions are stored, and the computer-readable instructions are executed by a processor in an electronic device to implement the scene task development method.
According to the technical scheme, the business process diagram corresponding to the object to be developed can be accurately identified based on the scene development request, the business process diagram is further split based on the preset workflow engine, the first process which does not need to be manually researched and developed by developers can be accurately selected from the business process diagram, the first task corresponding to the first process can be accurately generated by identifying the matching degree of the first process and the initial task through the object to be developed, meanwhile, the initial task does not need to be created again, the generation efficiency of the first task can be improved, the target task is further generated according to the logical relationship of the first process and the second process in the business process diagram, and the initial task does not need to be created, so that the generation efficiency of the target task is improved, the online efficiency of a new service scene (target task) corresponding to the scene development request is improved, and meanwhile, the accuracy of the target task is improved by splicing the first task and the second task through the logical relationship.
Drawings
FIG. 1 is a flow chart of a preferred embodiment of the scene task development method of the present invention.
FIG. 2 is a functional block diagram of a preferred embodiment of the scene task developing device of the present invention.
Fig. 3 is a schematic structural diagram of an electronic device according to a preferred embodiment of the method for implementing scene task development according to the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in detail with reference to the accompanying drawings and specific embodiments.
FIG. 1 is a flowchart of a scenario task development method according to a preferred embodiment of the present invention. The order of the steps in the flow chart may be changed and some steps may be omitted according to different needs.
The scene task development method can acquire and process related data based on an artificial intelligence technology. Among them, Artificial Intelligence (AI) is a theory, method, technique and application system that simulates, extends and expands human Intelligence using a digital computer or a machine controlled by a digital computer, senses the environment, acquires knowledge and uses the knowledge to obtain the best result.
The artificial intelligence infrastructure generally includes technologies such as sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, big data processing technologies, operation/interaction systems, mechatronics, and the like. The artificial intelligence software technology mainly comprises a computer vision technology, a robot technology, a biological recognition technology, a voice processing technology, a natural language processing technology, machine learning/deep learning and the like.
The scene task development method is applied to one or more electronic devices, which are devices capable of automatically performing numerical calculation and/or information processing according to computer readable instructions set or stored in advance, and the hardware of the electronic devices includes but is not limited to a microprocessor, an Application Specific Integrated Circuit (ASIC), a Programmable Gate Array (FPGA), a Digital Signal Processor (DSP), an embedded device, and the like.
The electronic device may be any electronic product capable of performing human-computer interaction with a user, for example, a Personal computer, a tablet computer, a smart phone, a Personal Digital Assistant (PDA), a game machine, an interactive Internet Protocol Television (IPTV), a smart wearable device, and the like.
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, an electronic device group consisting of a plurality of network electronic devices, or a Cloud Computing (Cloud Computing) based Cloud consisting of a large number of hosts or network electronic devices.
The network in which 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), and the like.
And S10, receiving a scene development request.
In at least one embodiment of the invention, the scenario development request can be triggered and generated when a developer receives a development requirement.
The scene development request may carry information related to the trigger user, such as a user identifier.
In at least one embodiment of the present invention, before receiving the scenario development request, the scenario task development method further includes:
detecting whether the scene development request carries account opening information corresponding to a preset account opening label or not;
if the scene development request does not carry account opening information corresponding to the preset account opening tag, acquiring a user identifier of a trigger user in the scene development request, and acquiring an account opening list from the preset workflow engine;
traversing the account opening list based on the user identification;
and if the account opening list contains the user identification, determining to receive the scene development request.
The preset account opening label refers to an information label required by any user or any merchant when opening an account, for example, the preset account opening label may include, but is not limited to: identity information, etc.
The triggering user refers to a user or a merchant who triggers the generation of the scene task development request.
The user identification can uniquely identify the triggering user.
And the account opening list stores a plurality of user information for opening an account on the preset workflow engine.
Whether the trigger user firstly creates a task on the preset workflow engine or not can be quickly determined by detecting whether the scene development request carries account opening information corresponding to a preset account opening label or not, and whether the scene development request is safe or not can be identified by detecting the user identification through the account opening list when the scene development request does not carry the account opening information corresponding to the preset account opening label, so that a hacker is prevented from attacking the preset workflow engine, and the receiving safety of the scene development request is improved.
And S11, identifying the business flow chart of the object to be developed based on the scene development request.
In at least one embodiment of the invention, the object to be developed refers to a specific business activity and the like, for example, the object to be developed can be a benefit activity of a meta-denier.
The business flow chart comprises flow information corresponding to the object to be developed.
In at least one embodiment of the present invention, the identifying, by the electronic device, the business flow diagram of the object to be developed based on the scene development request includes:
extracting a storage path of the object to be developed from the scene development request;
acquiring a task development text from the storage path, and extracting a plurality of text logic vocabularies from the task development text based on preset logic characters;
determining a lexical order of the plurality of textual logical vocabularies in the task development text;
acquiring module block diagrams corresponding to the text logic vocabularies, and splicing the module block diagrams according to the vocabulary sequence to obtain a flow template diagram;
extracting event information corresponding to the plurality of text logical vocabularies from the task development text;
and inputting the event information into a corresponding module block diagram in the flow template diagram to obtain the business flow diagram.
And the storage path stores a task development text corresponding to the object to be developed.
The preset logical characters may include, but are not limited to: starting, judging, running next step and the like.
The task development text can be accurately acquired through the storage path, and then the text logic vocabularies can be accurately acquired based on preset logic characters, so that the flow template diagram can be accurately generated by combining the vocabulary sequence, and the accuracy and the visibility of the business flow diagram are improved.
S12, splitting the business process diagram according to a preset workflow engine to obtain a first process which is successfully matched with the preset workflow engine and a second process which is unsuccessfully matched with the preset workflow engine, and determining a configuration task which is successfully matched with the first process in the preset workflow engine as an initial task.
In at least one embodiment of the present invention, the preset workflow engine includes important functions of node management, flow direction management, process sample management, and the like of a process.
The first process refers to a sub-process which is successfully matched with any configuration task of the preset workflow engine in the business process diagram.
The second process refers to a sub-process which fails to be matched with all the configuration tasks of the preset workflow engine in the business process diagram.
In at least one embodiment of the present invention, the preset workflow engine includes a plurality of the configuration tasks, each configuration task includes task information, the electronic device splits the business process diagram according to the preset workflow engine to obtain a first process that is successfully matched with the preset workflow engine, and a second process that is unsuccessfully matched with the preset workflow engine include:
analyzing task information in each configuration task to obtain execution information of each configuration task;
calculating event similarity of the execution information and the event information;
and extracting a sub-process corresponding to the event information with the event similarity larger than a configuration value from the business flow chart as the first process, and extracting a sub-process corresponding to the event information with the event similarity smaller than or equal to the configuration value from the business flow chart as the second process, wherein the configuration value is smaller than the preset threshold value.
The task information refers to information except for scene parameters in the configuration task, and the scene parameters refer to parameter values related to actual transaction scenes.
The execution information refers to flow information corresponding to the task information.
The configuration value can be set according to actual requirements, which is not described in detail herein.
By directly analyzing the task information, because the task information does not contain scene parameters, the representation capability of the execution information on the configuration task can be improved, so that the dependency of the configuration task and the task information can be reduced, the universality of the configuration task is improved, and the first flow and the second flow can be accurately extracted from the business flow chart by combining the judgment of the event similarity.
S13, identifying the matching degree of the first flow and the initial task based on the object to be developed.
In at least one embodiment of the present invention, the matching degree refers to a degree of success in matching the first process with the initial task.
In at least one embodiment of the present invention, the initial task includes a scene parameter, and the identifying, by the electronic device, the matching degree of the first flow and the initial task based on the object to be developed includes:
acquiring object information simultaneously corresponding to the object to be developed and the first flow as the parameter information;
and calculating the similarity between the scene parameters and the parameter information to obtain the matching degree.
The parameter information refers to a parameter corresponding to the first flow in the object to be developed. For example, the parameter information may be that 100 points can be accumulated when 100-yuan commodities are purchased, and if the scene parameter is that 100 points can be accumulated when 100-yuan commodities are purchased, the matching degree is 100%.
By comparing the scene parameter with the parameter information, the first process and the task information do not need to be compared, so that the interference of the first process and the task information can be avoided, and the accuracy of the matching degree is improved.
And S14, if the matching degree is smaller than a preset threshold value, updating the initial task based on the parameter information of the first process to obtain the first task, and acquiring the development information of the second process as the second task.
In at least one embodiment of the present invention, the preset threshold may be set according to actual requirements, for example, the preset threshold may be set to 90%.
The first task is developing information that matches the first process.
The second task can be code information which is developed and completed by a developer according to the second process. The second task may be retrieved from a developer's storage path.
In at least one embodiment of the present invention, after identifying a matching degree of the first flow and the initial task based on the object to be developed, the scenario task development method further includes:
and if the matching degree is greater than or equal to the preset threshold value, determining the initial task as the first task.
With the above embodiment, since repeated development of the first task is not required, the development efficiency of the target task can be further improved.
In at least one embodiment of the present invention, the updating, by the electronic device, the initial task based on the parameter information of the first process, and obtaining the first task includes:
positioning the parameter position of the scene parameter in the initial task;
and writing the parameter information into the parameter position to obtain the first task.
By locating the parameter position, the scene parameter can be covered based on the parameter information, and the generation efficiency of the first task is improved.
And S15, splicing the first task and the second task according to the logical relationship of the first process and the second process in the business process diagram to obtain a target task.
It is emphasized that the target task may also be stored in a node of a blockchain in order to further ensure privacy and security of the target task.
In at least one embodiment of the present invention, the target task refers to code information corresponding to the object to be developed.
In at least one embodiment of the present invention, the splicing, by the electronic device, the first task and the second task according to the logical relationship of the first flow and the second flow in the business flow diagram, and obtaining the target task includes:
detecting the position relation of the first flow and the second flow in the business flow chart;
acquiring information corresponding to the position relation from a preset relation table as the logic relation;
detecting a programming language in the preset workflow engine;
acquiring a relation code of the logical relation on the programming language;
and merging the first task and the second task based on the relation code to obtain the target task.
Wherein the location information may include, but is not limited to: upper and lower relationships, left and right relationships, etc.
The preset relationship table stores mapping relationships between a plurality of position relationships and a plurality of logical relationships, for example, if the position information is an up-down relationship, the logical relationships may be executed in sequence, and if the position relationship is a left-right relationship, the logical relationships are executed in parallel.
The programming languages include, but are not limited to: JAVA language, C language, etc.
The logical relationship can be accurately determined by detecting the position relationship, so that the first task and the second task can be accurately merged based on the relationship code of the logical relationship on the programming language, and the generation accuracy of the target task is improved.
According to the technical scheme, the business process diagram corresponding to the object to be developed can be accurately identified based on the scene development request, the business process diagram is further split based on the preset workflow engine, the first process which does not need to be manually researched and developed by developers can be accurately selected from the business process diagram, the first task corresponding to the first process can be accurately generated by identifying the matching degree of the first process and the initial task through the object to be developed, meanwhile, the initial task does not need to be created again, the generation efficiency of the first task can be improved, the target task is further generated according to the logical relationship of the first process and the second process in the business process diagram, and the initial task does not need to be created, so that the generation efficiency of the target task is improved, the online efficiency of a new service scene (target task) corresponding to the scene development request is improved, and meanwhile, the accuracy of the target task is improved by splicing the first task and the second task through the logical relationship.
FIG. 2 is a functional block diagram of a preferred embodiment of the scene task developing device according to the present invention. The scene task developing device 11 includes a receiving unit 110, an identifying unit 111, a splitting unit 112, an updating unit 113, a splicing unit 114, a detecting unit 115, an obtaining unit 116, a traversing unit 117, and a determining unit 118. The module/unit referred to herein is a series of computer readable instruction segments that can be accessed by the processor 13 and perform a fixed function and that are stored in the memory 12. In the present embodiment, the functions of the modules/units will be described in detail in the following embodiments.
The receiving unit 110 receives a scene development request.
In at least one embodiment of the invention, the scenario development request can be triggered and generated when a developer receives a development requirement.
The scene development request may carry information related to the trigger user, such as a user identifier.
In at least one embodiment of the present invention, before receiving a scene development request, the detecting unit 115 detects whether the scene development request carries account opening information corresponding to a preset account opening tag;
if the scene development request does not carry account opening information corresponding to the preset account opening tag, the obtaining unit 116 obtains a user identifier of a trigger user in the scene development request, and obtains an account opening list from the preset workflow engine;
the traversing unit 117 traverses the account opening list based on the user identifier;
if the account opening list includes the user identifier, the determining unit 118 determines to receive the scene development request.
The preset account opening label refers to an information label required by any user or any merchant when opening an account, for example, the preset account opening label may include, but is not limited to: identity information, etc.
The triggering user refers to a user or a merchant who triggers the generation of the scene task development request.
The user identification can uniquely identify the triggering user.
And the account opening list stores a plurality of user information for opening an account on the preset workflow engine.
Whether the trigger user firstly creates a task on the preset workflow engine or not can be quickly determined by detecting whether the scene development request carries account opening information corresponding to a preset account opening label or not, and whether the scene development request is safe or not can be identified by detecting the user identification through the account opening list when the scene development request does not carry the account opening information corresponding to the preset account opening label, so that a hacker is prevented from attacking the preset workflow engine, and the receiving safety of the scene development request is improved.
The identifying unit 111 identifies the business process diagram of the object to be developed based on the scene development request.
In at least one embodiment of the invention, the object to be developed refers to a specific business activity and the like, for example, the object to be developed can be a benefit activity of a meta-denier.
The business flow chart comprises flow information corresponding to the object to be developed.
In at least one embodiment of the present invention, the identifying unit 111, based on the scene development request, identifies the business flow diagram of the object to be developed, including:
extracting a storage path of the object to be developed from the scene development request;
acquiring a task development text from the storage path, and extracting a plurality of text logic vocabularies from the task development text based on preset logic characters;
determining a lexical order of the plurality of textual logical vocabularies in the task development text;
acquiring module block diagrams corresponding to the text logic vocabularies, and splicing the module block diagrams according to the vocabulary sequence to obtain a flow template diagram;
extracting event information corresponding to the plurality of text logical vocabularies from the task development text;
and inputting the event information into a corresponding module block diagram in the flow template diagram to obtain the business flow diagram.
And the storage path stores a task development text corresponding to the object to be developed.
The preset logical characters may include, but are not limited to: starting, judging, running next step and the like.
The task development text can be accurately acquired through the storage path, and then the text logic vocabularies can be accurately acquired based on preset logic characters, so that the flow template diagram can be accurately generated by combining the vocabulary sequence, and the accuracy and the visibility of the business flow diagram are improved.
The splitting unit 112 splits the business process diagram according to a preset workflow engine to obtain a first process successfully matched with the preset workflow engine and a second process unsuccessfully matched with the preset workflow engine, and determines a configuration task successfully matched with the first process in the preset workflow engine as an initial task.
In at least one embodiment of the present invention, the preset workflow engine includes important functions of node management, flow direction management, process sample management, and the like of a process.
The first process refers to a sub-process which is successfully matched with any configuration task of the preset workflow engine in the business process diagram.
The second process refers to a sub-process which fails to be matched with all the configuration tasks of the preset workflow engine in the business process diagram.
In at least one embodiment of the present invention, the preset workflow engine includes a plurality of the configuration tasks, each configuration task includes task information, the splitting unit 112 splits the business process diagram according to the preset workflow engine to obtain a first process that is successfully matched with the preset workflow engine, and a second process that is unsuccessfully matched with the preset workflow engine include:
analyzing task information in each configuration task to obtain execution information of each configuration task;
calculating event similarity of the execution information and the event information;
and extracting a sub-process corresponding to the event information with the event similarity larger than a configuration value from the business flow chart as the first process, and extracting a sub-process corresponding to the event information with the event similarity smaller than or equal to the configuration value from the business flow chart as the second process, wherein the configuration value is smaller than the preset threshold value.
The task information refers to information except for scene parameters in the configuration task, and the scene parameters refer to parameter values related to actual transaction scenes.
The execution information refers to flow information corresponding to the task information.
The configuration value can be set according to actual requirements, which is not described in detail herein.
By directly analyzing the task information, because the task information does not contain scene parameters, the representation capability of the execution information on the configuration task can be improved, so that the dependency of the configuration task and the task information can be reduced, the universality of the configuration task is improved, and the first flow and the second flow can be accurately extracted from the business flow chart by combining the judgment of the event similarity.
The identifying unit 111 identifies a matching degree of the first flow and the initial task based on the object to be developed.
In at least one embodiment of the present invention, the matching degree refers to a degree of success in matching the first process with the initial task.
In at least one embodiment of the present invention, the initial task includes a scene parameter, and the identifying unit 111 identifies a matching degree of the first flow and the initial task based on the object to be developed includes:
acquiring object information simultaneously corresponding to the object to be developed and the first flow as the parameter information;
and calculating the similarity between the scene parameters and the parameter information to obtain the matching degree.
The parameter information refers to a parameter corresponding to the first flow in the object to be developed. For example, the parameter information may be that 100 points can be accumulated when 100-yuan commodities are purchased, and if the scene parameter is that 100 points can be accumulated when 100-yuan commodities are purchased, the matching degree is 100%.
By comparing the scene parameter with the parameter information, the first process and the task information do not need to be compared, so that the interference of the first process and the task information can be avoided, and the accuracy of the matching degree is improved.
If the matching degree is smaller than a preset threshold, the updating unit 113 updates the initial task based on the parameter information of the first process to obtain the first task, and obtains the development information of the second process as the second task.
In at least one embodiment of the present invention, the preset threshold may be set according to actual requirements, for example, the preset threshold may be set to 90%.
The first task is developing information that matches the first process.
The second task can be code information which is developed and completed by a developer according to the second process. The second task may be retrieved from a developer's storage path.
In at least one embodiment of the present invention, after identifying a matching degree of 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.
With the above embodiment, since repeated development of the first task is not required, the development efficiency of the target task can be further improved.
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 obtaining the first task includes:
positioning the parameter position of the scene parameter in the initial task;
and writing the parameter information into the parameter position to obtain the first task.
By locating the parameter position, the scene parameter can be covered based on the parameter information, and the generation efficiency of the first task is improved.
The splicing unit 114 splices the first task and the second task according to a logical relationship of the first process and the second process in the business process diagram to obtain a target task.
It is emphasized that the target task may also be stored in a node of a blockchain in order to further ensure privacy and security of the target task.
In at least one embodiment of the present invention, the target task refers to code information corresponding to the object to be developed.
In at least one embodiment of the present invention, the splicing unit 114 splices the first task and the second task according to a logical relationship between the first flow and the second flow in the business flow graph, and obtains a target task includes:
detecting the position relation of the first flow and the second flow in the business flow chart;
acquiring information corresponding to the position relation from a preset relation table as the logic relation;
detecting a programming language in the preset workflow engine;
acquiring a relation code of the logical relation on the programming language;
and merging the first task and the second task based on the relation code to obtain the target task.
Wherein the location information may include, but is not limited to: upper and lower relationships, left and right relationships, etc.
The preset relationship table stores mapping relationships between a plurality of position relationships and a plurality of logical relationships, for example, if the position information is an up-down relationship, the logical relationships may be executed in sequence, and if the position relationship is a left-right relationship, the logical relationships are executed in parallel.
The programming languages include, but are not limited to: JAVA language, C language, etc.
The logical relationship can be accurately determined by detecting the position relationship, so that the first task and the second task can be accurately merged based on the relationship code of the logical relationship on the programming language, and the generation accuracy of the target task is improved.
According to the technical scheme, the business process diagram corresponding to the object to be developed can be accurately identified based on the scene development request, the business process diagram is further split based on the preset workflow engine, the first process which does not need to be manually researched and developed by developers can be accurately selected from the business process diagram, the first task corresponding to the first process can be accurately generated by identifying the matching degree of the first process and the initial task through the object to be developed, meanwhile, the initial task does not need to be created again, the generation efficiency of the first task can be improved, the target task is further generated according to the logical relationship of the first process and the second process in the business process diagram, and the initial task does not need to be created, so that the generation efficiency of the target task is improved, the online efficiency of a new service scene (target task) corresponding to the scene development request is improved, and meanwhile, the accuracy of the target task is improved by splicing the first task and the second task through the logical relationship.
Fig. 3 is a schematic structural diagram of an electronic device according to a preferred embodiment of the method for developing a scene task according to the present invention.
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, such as a scenario task development program, stored in the memory 12 and executable on the processor 13.
It will be appreciated by a person skilled in the art that the schematic diagram is only an example of the electronic device 1 and does not constitute a limitation of the electronic device 1, and that it may comprise more or less components than shown, or some components may be combined, or different components, e.g. the electronic device 1 may further comprise an input output device, a network access device, a bus, etc.
The Processor 13 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, etc. The processor 13 is an operation core and a control center of the electronic device 1, and is connected to each part of the whole electronic device 1 by various interfaces and lines, and executes an operating system of the electronic device 1 and various installed application programs, program codes, and the like.
Illustratively, the computer readable instructions may be partitioned into one or more modules/units that 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 are used for describing the execution process of the computer readable instructions in the electronic device 1. For example, the computer readable instructions may be partitioned into a receiving unit 110, an identifying unit 111, a splitting unit 112, an updating unit 113, a splicing unit 114, a detecting unit 115, an obtaining unit 116, a traversing unit 117, and a determining unit 118.
The memory 12 may be used for storing the computer readable instructions and/or modules, and the processor 13 implements various functions of the electronic device 1 by executing or executing the computer readable instructions and/or modules stored in the memory 12 and invoking data stored in the memory 12. The memory 12 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data created according to use of the electronic device, and the like. The memory 12 may include non-volatile and volatile memories, such as: a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), at least one magnetic disk storage device, a Flash memory device, or other storage device.
The memory 12 may be an external memory and/or an internal memory of the electronic device 1. Further, the memory 12 may be a memory having a physical form, such as a memory stick, a TF Card (Trans-flash Card), or the like.
The integrated modules/units of the electronic device 1 may be stored in a computer-readable storage medium if they are implemented in the form of software functional units and sold or used as separate products. Based on such understanding, all or part of the flow of the method according to the above embodiments may be implemented by hardware that is configured to be instructed by computer readable instructions, which may be stored in a computer readable storage medium, and when the computer readable instructions are executed by a processor, the steps of the method embodiments may be implemented.
Wherein the computer readable instructions comprise computer readable instruction code which may be in source code form, object code form, an executable file or some intermediate form, and the like. The computer-readable medium may include: any entity or device capable of carrying said computer readable instruction code, recording medium, U-disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM).
The block chain is a novel application mode of computer technologies such as distributed scene task development, point-to-point transmission, a consensus mechanism, an encryption algorithm and the like. A block chain (Blockchain), which is essentially a decentralized database, is a series of data blocks associated by using a cryptographic method, and each data block contains information of a batch of network transactions, so as to verify the validity (anti-counterfeiting) of the information and generate a next block. The blockchain may include a blockchain underlying platform, a platform product service layer, an application service layer, and the like.
With reference to fig. 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:
receiving a scene development request;
identifying a business flow chart of an object to be developed based on the scene development request;
splitting the business process diagram according to a preset workflow engine to obtain a first process which is successfully matched with the preset workflow engine and a second process which is unsuccessfully matched with the preset workflow engine, and determining a configuration task which is successfully matched with the first process in the preset workflow engine as an initial task;
identifying the matching degree of the first process and the initial task based on the object to be developed;
if the matching degree is smaller than a preset threshold value, updating the initial task based on the parameter information of the first process to obtain a first task, and acquiring development information of the second process as a second task;
and splicing the first task and the second task according to the logical relationship of the first process and the second process in the business process diagram to obtain a target task.
Specifically, the processor 13 may refer to the description of the relevant steps in the embodiment corresponding to fig. 1 for a specific implementation method of the computer readable instructions, which is not described herein again.
In the embodiments provided in the present invention, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is only one logical functional division, and other divisions may be realized in practice.
The computer readable storage medium has computer readable instructions stored thereon, wherein the computer readable instructions when executed by the processor 13 are configured to implement the steps of:
receiving a scene development request;
identifying a business flow chart of an object to be developed based on the scene development request;
splitting the business process diagram according to a preset workflow engine to obtain a first process which is successfully matched with the preset workflow engine and a second process which is unsuccessfully matched with the preset workflow engine, and determining a configuration task which is successfully matched with the first process in the preset workflow engine as an initial task;
identifying the matching degree of the first process and the initial task based on the object to be developed;
if the matching degree is smaller than a preset threshold value, updating the initial task based on the parameter information of the first process to obtain a first task, and acquiring development information of the second process as a second task;
and splicing the first task and the second task according to the logical relationship of the first process and the second process in the business process diagram to obtain a target task.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In addition, functional modules in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional module.
The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference signs in the claims shall not be construed as limiting the claim concerned.
Furthermore, it is obvious that the word "comprising" does not exclude other elements or steps, and the singular does not exclude the plural. The plurality of units or devices may also be implemented by one unit or device through software or hardware. The terms first, second, etc. are used to denote names, but not any particular order.
Finally, it should be noted that the above embodiments are only for illustrating the technical solutions of the present invention and not for limiting, and although the present invention is described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that modifications or equivalent substitutions may be made on the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention.

Claims (10)

1. A scene task development method is characterized by comprising the following steps:
receiving a scene development request;
identifying a business flow chart of an object to be developed based on the scene development request;
splitting the business process diagram according to a preset workflow engine to obtain a first process which is successfully matched with the preset workflow engine and a second process which is unsuccessfully matched with the preset workflow engine, and determining a configuration task which is successfully matched with the first process in the preset workflow engine as an initial task;
identifying the matching degree of the first process and the initial task based on the object to be developed;
if the matching degree is smaller than a preset threshold value, updating the initial task based on the parameter information of the first process to obtain a first task, and acquiring development information of the second process as a second task;
and splicing the first task and the second task according to the logical relationship of the first process and the second process in the business process diagram to obtain a target task.
2. The scenario task development method of claim 1, wherein prior to receiving a scenario development request, the scenario task development method further comprises:
detecting whether the scene development request carries account opening information corresponding to a preset account opening label or not;
if the scene development request does not carry account opening information corresponding to the preset account opening tag, acquiring a user identifier of a trigger user in the scene development request, and acquiring an account opening list from the preset workflow engine;
traversing the account opening list based on the user identification;
and if the account opening list contains the user identification, determining to receive the scene development request.
3. The scenario task development method of claim 1, wherein the identifying the business flow diagram of the object to be developed based on the scenario development request comprises:
extracting a storage path of the object to be developed from the scene development request;
acquiring a task development text from the storage path, and extracting a plurality of text logic vocabularies from the task development text based on preset logic characters;
determining a lexical order of the plurality of textual logical vocabularies in the task development text;
acquiring module block diagrams corresponding to the text logic vocabularies, and splicing the module block diagrams according to the vocabulary sequence to obtain a flow template diagram;
extracting event information corresponding to the plurality of text logical vocabularies from the task development text;
and inputting the event information into a corresponding module block diagram in the flow template diagram to obtain the business flow diagram.
4. The scenario task development method according to claim 3, wherein the preset workflow engine includes a plurality of the configuration tasks, each configuration task includes task information, the splitting of the business flow graph according to the preset workflow engine obtains a first flow that is successfully matched with the preset workflow engine, and a second flow that is unsuccessfully matched with the preset workflow engine include:
analyzing task information in each configuration task to obtain execution information of each configuration task;
calculating event similarity of the execution information and the event information;
and extracting a sub-process corresponding to the event information with the event similarity larger than a configuration value from the business flow chart as the first process, and extracting a sub-process corresponding to the event information with the event similarity smaller than or equal to the configuration value from the business flow chart as the second process, wherein the configuration value is smaller than the preset threshold value.
5. The method for developing a scene task according to claim 1, wherein the initial task includes scene parameters, and the identifying the matching degree of the first flow and the initial task based on the object to be developed includes:
acquiring object information simultaneously corresponding to the object to be developed and the first flow as the parameter information;
and calculating the similarity between the scene parameters and the parameter information to obtain the matching degree.
6. The scenario task development method of claim 5, wherein the updating the initial task based on the parameter information of the first process, and obtaining the first task comprises:
positioning the parameter position of the scene parameter in the initial task;
and writing the parameter information into the parameter position to obtain the first task.
7. The method for developing scene tasks according to claim 1, wherein the splicing the first task and the second task according to the logical relationship of the first process and the second process in the business process diagram to obtain a target task comprises:
detecting the position relation of the first flow and the second flow in the business flow chart;
acquiring information corresponding to the position relation from a preset relation table as the logic relation;
detecting a programming language in the preset workflow engine;
acquiring a relation code of the logical relation on the programming language;
and merging the first task and the second task based on the relation code to obtain the target task.
8. A scene task development device, characterized in that the scene task development device comprises:
a receiving unit configured to receive a scene development request;
the identification unit is used for identifying a business flow chart of an object to be developed based on the scene development request;
the splitting unit is used for splitting the business process diagram according to a preset workflow engine to obtain a first process which is successfully matched with the preset workflow engine and a second process which is unsuccessfully matched with the preset workflow engine, and determining a configuration task which is successfully matched with the first process in the preset workflow engine as an initial task;
the identification unit is further used for identifying the matching degree of the first process and the initial task based on the object to be developed;
the updating unit is used for updating the initial task based on the parameter information of the first process to obtain a first task and acquiring the development information of the second process as a second task if the matching degree is smaller than a preset threshold;
and the splicing unit is used for splicing the first task and the second task according to the logical relationship of the first process and the second process in the business process diagram to obtain a target task.
9. An electronic device, characterized in that the electronic device comprises:
a memory storing computer readable instructions; and
a processor executing computer readable instructions stored in the memory to implement the scenario task development method of any one of claims 1 to 7.
10. A computer-readable storage medium characterized by: the computer-readable storage medium stores therein computer-readable instructions which are executed by a processor in an electronic device to implement the scenario task development method according to any one of claims 1 to 7.
CN202210063830.3A 2022-01-20 2022-01-20 Scene task development method, device, equipment and storage medium Pending CN114418398A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210063830.3A CN114418398A (en) 2022-01-20 2022-01-20 Scene task development method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210063830.3A CN114418398A (en) 2022-01-20 2022-01-20 Scene task development method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114418398A true CN114418398A (en) 2022-04-29

Family

ID=81275598

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210063830.3A Pending CN114418398A (en) 2022-01-20 2022-01-20 Scene task development method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114418398A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114707146A (en) * 2022-06-02 2022-07-05 深圳市永达电子信息股份有限公司 Workflow identification method, system, computer device and readable storage medium
CN116306591A (en) * 2023-05-18 2023-06-23 深圳市东信时代信息技术有限公司 Flow form generation method, device, equipment and medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114707146A (en) * 2022-06-02 2022-07-05 深圳市永达电子信息股份有限公司 Workflow identification method, system, computer device and readable storage medium
CN116306591A (en) * 2023-05-18 2023-06-23 深圳市东信时代信息技术有限公司 Flow form generation method, device, equipment and medium
CN116306591B (en) * 2023-05-18 2023-10-03 深圳市东信时代信息技术有限公司 Flow form generation method, device, equipment and medium

Similar Documents

Publication Publication Date Title
CN114418398A (en) Scene task development method, device, equipment and storage medium
CN113032528B (en) Case analysis method, case analysis device, case analysis equipment and storage medium
CN111797351A (en) Page data management method and device, electronic equipment and medium
CN113656547B (en) Text matching method, device, equipment and storage medium
CN113283675B (en) Index data analysis method, device, equipment and storage medium
CN115222443A (en) Client group division method, device, equipment and storage medium
CN112199483B (en) Information input assisting method and device, electronic equipment and storage medium
CN114116108A (en) Dynamic rendering method, device, equipment and storage medium
CN113627186B (en) Entity relation detection method based on artificial intelligence and related equipment
CN115952201A (en) Data query method, device, system and storage medium
CN112949305B (en) Negative feedback information acquisition method, device, equipment and storage medium
CN113420545B (en) Abstract generation method, device, equipment and storage medium
CN114942749A (en) Development method, device and equipment of approval system and storage medium
CN113326365B (en) Reply sentence generation method, device, equipment and storage medium
CN114610386A (en) Interaction method, device, equipment and storage medium of H5 and application program
CN114329095A (en) System logic diagram generation method, device, equipment and storage medium
CN114692204A (en) Data query method, device, equipment and storage medium
CN114003784A (en) Request recording method, device, equipment and storage medium
CN112199494A (en) Medical information searching method and device, electronic equipment and storage medium
CN113516205A (en) Data classification method, device, equipment and storage medium based on artificial intelligence
CN111859985A (en) AI customer service model testing method, device, electronic equipment and storage medium
CN114398104A (en) Script processing method, device, equipment and storage medium
CN113420143B (en) Method, device, equipment and storage medium for generating document abstract
CN114741018B (en) Data visualization method, device, equipment and storage medium
CN114971643B (en) Abnormal transaction identification method, device, 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