CN115358643B - Message-based upstream and downstream document generation method and device and storage medium - Google Patents
Message-based upstream and downstream document generation method and device and storage medium Download PDFInfo
- Publication number
- CN115358643B CN115358643B CN202211290025.0A CN202211290025A CN115358643B CN 115358643 B CN115358643 B CN 115358643B CN 202211290025 A CN202211290025 A CN 202211290025A CN 115358643 B CN115358643 B CN 115358643B
- Authority
- CN
- China
- Prior art keywords
- service
- service scene
- keyword
- message
- upstream
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Administration; Management
- G06Q10/06—Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
- G06Q10/063—Operations research, analysis or management
- G06Q10/0631—Resource planning, allocation, distributing or scheduling for enterprises or organisations
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/22—Indexing; Data structures therefor; Storage structures
- G06F16/2282—Tablespace storage structures; Management thereof
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/24—Querying
- G06F16/245—Query processing
- G06F16/2457—Query processing with adaptation to user needs
- G06F16/24578—Query processing with adaptation to user needs using ranking
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/27—Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/194—Calculation of difference between files
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/20—Natural language analysis
- G06F40/279—Recognition of textual entities
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/30—Semantic analysis
Abstract
The invention provides a method, a device and a storage medium for generating an upstream and downstream document based on messages, which relate to the technical field of databases and distributed computing, and the method comprises the following steps: acquiring a user message needing to generate a document from a message queue based on a preset processing strategy; extracting the adaptive service scene identification of the document from the user message, and matching a corresponding service scene from a preset service scene database based on the service scene identification; arranging corresponding business processes based on the corresponding business scenes; judging whether the service state in the user message meets the execution condition of the service process, if so, triggering the execution of the service process through the message event, acquiring a service basic identifier for generating an upstream and downstream document from the user message, acquiring upstream and downstream service data generated in the execution process of the service process based on the service basic identifier, and generating the upstream and downstream document based on the service basic identifier and the upstream and downstream service data. The accuracy and the efficiency of document generation are improved.
Description
Technical Field
The invention relates to the technical field of databases and distributed computing, in particular to a method and a device for generating upstream and downstream documents based on messages and a storage medium.
Background
In an erp system, automatic generation of upstream and downstream documents is often required to be realized according to different business scenarios. In the prior art, a user is generally required to generate a document after specifying a corresponding service scene, and the generated document is wrong when no corresponding service scene exists.
In the prior art, the mode of generating documents does not consider the business data conditions of upstream and downstream, so that documents generated subsequently need to be supplemented by data of a user, and the workload of the user is increased.
Disclosure of Invention
The present invention proposes the following technical solutions to address one or more technical defects in the prior art.
A method for generating an upstream and downstream bill based on a message comprises the following steps:
an acquisition step, acquiring user information needing to generate a document from an information queue based on a preset processing strategy;
a matching step, namely extracting the adaptive service scene identification of the document from the user message, and matching a corresponding service scene from a preset service scene database based on the service scene identification;
arranging, namely arranging corresponding business processes based on the corresponding business scenes;
and a generating step, namely judging whether the service state in the user message meets the execution condition of the service process, if so, triggering the execution of the service process through a message event, acquiring a service basic identifier for generating an upstream bill and a downstream bill from the user message, acquiring upstream and downstream service data generated in the execution process of the service process based on the service basic identifier, and generating the upstream and downstream bill based on the service basic identifier and the upstream and downstream service data.
Further, the predetermined processing strategy is: and after receiving the user message in the message queue, recording the ID of the received user message through a data table, wherein each user message in the message queue has a unique ID, when reaching a preset time frequency, comparing the ID of the current user message with the maximum ID in the data table, if the ID of the current user message is the same with the maximum ID in the data table, acquiring the user message, and otherwise, discarding the current user message.
Further, the IDs of the user messages in the data table are self-increasing.
Furthermore, the operation of arranging the corresponding service flow based on the corresponding service scenario is as follows: each service scene comprises a plurality of service scene segments, each service scene segment corresponds to a process group, semantic analysis is carried out on the corresponding service scene, the corresponding service scene segment is selected according to the semantic analysis result, and the arrangement of service processes is carried out in the selected corresponding service scene segment.
Furthermore, the service scene segments and the arranged service flow can be stored and reused.
Further, the operation of matching out a corresponding service scenario from a preset service scenario database based on the service scenario identifier includes: when the service scene identification is used for searching in the service scene database to hit a target, the hit target is used as a corresponding service scene, when the target is not hit, word segmentation processing is carried out on the user message to obtain a first keyword, a second keyword and a third keyword, the first keyword, the second keyword and the third keyword are used for searching and matching the description of the service scene in the service scene database, and the target with the maximum correlation obtained through searching and matching is used as the corresponding service scene.
Further, the correlation is calculated by:
wherein the content of the first and second substances,α、β、γ、δ、ε、θis a weight value of the weight value,、、respectively representing the similarity between the first keyword, the second keyword and the third keyword and the description of the service scene.
The invention also provides a device for generating the upstream and downstream documents based on the message, which comprises the following components:
the acquisition unit is used for acquiring user information needing to generate a document from the information queue based on a preset processing strategy;
the matching unit is used for extracting the adaptive service scene identification of the receipt from the user message and matching a corresponding service scene from a preset service scene database based on the service scene identification;
the arranging unit is used for arranging corresponding business processes based on the corresponding business scenes;
and the generating unit is used for judging whether the service state in the user message meets the execution condition of the service flow, if so, triggering the execution of the service flow through a message event, acquiring a service basic identifier for generating an upstream bill and a downstream bill from the user message, acquiring upstream and downstream service data generated in the execution process of the service flow based on the service basic identifier, and generating the upstream and downstream bill based on the service basic identifier and the upstream and downstream service data.
Further, the predetermined processing strategy is: and after receiving the user message in the message queue, recording the ID of the received user message through a data table, wherein each user message in the message queue has a unique ID, when reaching a preset time frequency, comparing the ID of the current user message with the maximum ID in the data table, if the ID of the current user message is the same with the maximum ID in the data table, acquiring the user message, and otherwise, discarding the current user message.
Further, the IDs of the user messages in the data table are self-increasing.
Furthermore, the operation of arranging the corresponding service flow based on the corresponding service scenario is as follows: each service scene comprises a plurality of service scene segments, each service scene segment corresponds to a process group, semantic analysis is carried out on the corresponding service scene, the corresponding service scene segment is selected according to the semantic analysis result, and the arrangement of service processes is carried out in the selected corresponding service scene segment.
Furthermore, the service scene segments and the arranged service flows can be stored and reused.
Further, the operation of matching out a corresponding service scenario from a preset service scenario database based on the service scenario identifier includes: when the service scene identification is used for searching in the service scene database to hit a target, the hit target is used as a corresponding service scene, when the target is not hit, word segmentation processing is carried out on the user message to obtain a first keyword, a second keyword and a third keyword, the first keyword, the second keyword and the third keyword are used for searching and matching the description of the service scene in the service scene database, and the target with the maximum correlation obtained through searching and matching is used as the corresponding service scene.
Further, the correlation is calculated by:
wherein the content of the first and second substances,α、β、γ、δ、ε、θis a weight value of the weight value,、、respectively representing the similarity between the first keyword, the second keyword and the third keyword and the description of the service scene.
The invention also proposes a computer-readable storage medium having stored thereon computer program code which, when executed by a computer, performs any of the methods described above.
The invention has the technical effects that: the invention relates to a method, a device and a storage medium for generating an upstream and downstream bill based on a message, wherein the method comprises the following steps: an acquisition step, acquiring user information needing to generate a document from an information queue based on a preset processing strategy; a matching step, namely extracting the adaptive service scene identification of the document from the user message, and matching a corresponding service scene from a preset service scene database based on the service scene identification; arranging, namely arranging corresponding business processes based on the corresponding business scenes; and a generating step, namely judging whether the service state in the user message meets the execution condition of the service process, if so, triggering the execution of the service process through a message event, acquiring a service basic identifier for generating an upstream document and a downstream document from the user message, acquiring upstream and downstream service data generated in the execution process of the service process based on the service basic identifier, and generating the upstream and downstream documents based on the service basic identifier and the upstream and downstream service data. According to the method, firstly, the user information needing to generate the document is obtained from the information queue based on a preset processing strategy, namely, the document is selectively generated based on the driving of the user information, then the corresponding service scene is loaded based on the information in the information, the upstream and downstream flows of the corresponding service are arranged based on the service scene, then the document generation time is determined based on the event state of the user information, and the upstream and downstream data of the generated document are obtained, so that the document generation accuracy is improved, and the document generation efficiency is improved; in the data table of the invention, the ID of the user message is added in an automatic increasing mode, for example, the ID is added in sequence by +1, namely, whether the user message is put into the message queue based on the time frequency or not is judged, the message with the largest ID in the message queue is the user message which needs to be executed currently, for example, the user message is put into the message queue for execution based on the appointed time point, thereby avoiding the error execution of the user message and improving the accuracy of the execution of the user message; each service scene comprises a plurality of service scene fragments, each service scene fragment corresponds to one process group, semantic analysis is carried out on the corresponding service scene, the corresponding service scene fragment is selected according to the semantic analysis result, and the arrangement of the service process is carried out in the selected corresponding service scene fragment, so that the accuracy of the selection of the service scene fragment is improved, the service process which is subsequently arranged can be solidified into a template, and the use efficiency is improved; in the invention, in order to avoid that the service scene identification carried in the user message can not match the corresponding service scene, thereby causing the system to report error or the generated document is wrong, the invention adopts a word segmentation processing mode, uses the first, second and third key words after word segmentation to search and match the description of the service scene in the service scene database, takes the target with the maximum correlation searched and matched as the corresponding service scene, and provides a specific formula of correlation calculation, thereby improving the accuracy of service scene selection.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings.
Fig. 1 is a flow chart of a method of message-based generation of upstream and downstream documents according to an embodiment of the present invention.
Fig. 2 is a block diagram of an apparatus for generating upstream and downstream documents based on messages according to an embodiment of the present invention.
Detailed Description
The present application will be described in further detail with reference to the following drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the relevant invention and not restrictive of the invention. It should be noted that, for convenience of description, only the portions related to the present invention are shown in the drawings.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
Fig. 1 shows a method for generating a message-based upstream and downstream document according to the present invention, which includes:
an obtaining step S101, obtaining a user message needing to generate a document from a message queue based on a preset processing strategy;
a matching step S102, extracting the adapted service scene identification of the receipt from the user message, and matching the corresponding service scene from a preset service scene database based on the service scene identification;
an arranging step S103, arranging corresponding business processes based on the corresponding business scenes;
a generating step S104, determining whether the service state in the user message meets the execution condition of the service flow, if yes, triggering the execution of the service flow through a message event, and acquiring a service basic identifier for generating an upstream and downstream document from the user message, acquiring upstream and downstream service data generated in the execution process of the service flow based on the service basic identifier, and generating the upstream and downstream document based on the service basic identifier and the upstream and downstream service data.
The invention firstly obtains the user information needing to generate the document from the information queue based on the preset processing strategy, namely selectively drives the document generation based on the user information, then loads the corresponding service scene based on the information in the information, arranges the corresponding upstream and downstream flow of the service based on the service scene, then determines the document generation time based on the event state of the user information and obtains the upstream and downstream data of the generated document, thereby improving the document generation accuracy and the document generation efficiency, which is one of the important invention points of the invention.
In a further embodiment, the predetermined processing policy is: and after receiving the user message in the message queue, recording the ID of the received user message through a data table, wherein each user message in the message queue has a unique ID, when the preset time frequency is reached, comparing the ID of the current user message with the maximum ID in the data table, if the ID of the current user message is the same as the maximum ID in the data table, acquiring the user message, and otherwise, discarding the current user message. The IDs of the user messages in the data table are self-increasing. The preset time frequency includes: immediate execution, execution at a specified point in time, execution delayed by a period of time, and the like. The preset temporal frequency is included in an event status of the user message. In the invention, a data table is adopted to record all messages in a message queue, in the data table, the ID of the user message is added in an automatic increasing mode, for example, 1 is added in sequence, namely whether the user message is put into the message queue based on the time frequency, the message with the maximum ID of the message queue is the user message which needs to be executed currently, for example, the user message is put into the message queue for execution based on a specified time point, thereby avoiding the wrong execution of the user message, improving the accuracy of the user message execution, and being another important invention point of the invention.
In a further embodiment, the operation of arranging the corresponding business process based on the corresponding business scenario is: each service scene comprises a plurality of service scene segments, each service scene segment corresponds to a process group, semantic analysis is carried out on the corresponding service scene, the corresponding service scene segment is selected according to the semantic analysis result, and the arrangement of service processes is carried out in the selected corresponding service scene segment. And the service scene segments and the arranged service flow can be stored and reused. For example, a business process arranged in a business scenario segment includes: data verification, data screening, data conversion, data completion, data persistence and data processing events; and each flow has two auxiliary flows before and after execution, and a running context environment is provided for the execution of the flow by connecting context objects in series in the execution process of the business flow. When the program is designed, a judgment logic for judging whether to allow execution is required when entering a scene, a scene segment and a flow group, namely judging whether to meet the conditions of entering the corresponding scene, the scene segment and the flow group through codes, and ensuring the accuracy of execution. Each service scene comprises a plurality of service scene fragments, each service scene fragment corresponds to one process group, semantic analysis is carried out on the corresponding service scene, the corresponding service scene fragment is selected according to the semantic analysis result, and the arrangement of the service process is carried out in the selected corresponding service scene fragment, so that the accuracy of the selection of the service scene fragment is improved, the service process which is subsequently arranged can be solidified into a template, and the use efficiency is improved.
In a further embodiment, the operation of matching out a corresponding service scenario from a preset service scenario database based on the service scenario identifier includes: when the service scene identification is used for searching in the service scene database to hit a target, the hit target is used as a corresponding service scene, when the target is not hit, word segmentation processing is carried out on the user message to obtain a first keyword, a second keyword and a third keyword, the first keyword, the second keyword and the third keyword are used for searching and matching the description of the service scene in the service scene database, and the target with the maximum correlation obtained through searching and matching is used as the corresponding service scene. The correlation calculation method comprises the following steps:
wherein the content of the first and second substances,α、β、γ、δ、ε、θis a weight value of the weight value,、、the similarity between the first keyword, the second keyword and the third keyword and the description of the service scene respectively can be cosine similarity, and the similarity calculation mode not only considers the similarity of a single word, but also considers the similarity of three words together, so that the correlation calculation is more accurate, which is another important invention point of the invention.
In the invention, in order to avoid that the service scene identification carried in the user message cannot match the corresponding service scene, thereby causing the system to report error or the generated document is wrong, the invention adopts a word segmentation processing mode, uses the first, second and third key words after word segmentation to search and match the description of the service scene in the service scene database, takes the target with the maximum correlation searched and matched as the corresponding service scene, and provides a specific formula for correlation calculation, thereby improving the accuracy of service scene selection, which is another important invention point of the invention.
Fig. 2 shows an apparatus for generating a message-based upstream and downstream document according to the present invention, the apparatus comprising:
an obtaining unit 201, which obtains a user message that needs to generate a document from a message queue based on a predetermined processing policy;
the matching unit 202 is used for extracting the adaptive service scene identifier of the document from the user message, and matching a corresponding service scene from a preset service scene database based on the service scene identifier;
the arranging unit 203 arranges a corresponding business process based on the corresponding business scene;
the generating unit 204 is configured to determine whether a service state in the user message meets an execution condition of the service flow, if so, trigger execution of the service flow through a message event, acquire a service basic identifier for generating an upstream and downstream document from the user message, acquire upstream and downstream service data generated in an execution process of the service flow based on the service basic identifier, and generate the upstream and downstream document based on the service basic identifier and the upstream and downstream service data.
The invention firstly obtains the user information needing to generate the document from the information queue based on the preset processing strategy, namely selectively drives the document generation based on the user information, then loads the corresponding service scene based on the information in the information, arranges the corresponding upstream and downstream flow of the service based on the service scene, then determines the document generation time based on the event state of the user information and obtains the upstream and downstream data of the generated document, thereby improving the document generation accuracy and the document generation efficiency, which is one of the important invention points of the invention.
In a further embodiment, the predetermined processing policy is: and after receiving the user message in the message queue, recording the ID of the received user message through a data table, wherein each user message in the message queue has a unique ID, when reaching a preset time frequency, comparing the ID of the current user message with the maximum ID in the data table, if the ID of the current user message is the same with the maximum ID in the data table, acquiring the user message, and otherwise, discarding the current user message. The IDs of the user messages in the data table are self-increasing. The preset time frequency includes: immediate execution, execution at a specified point in time, execution delayed by a period of time, and the like. The preset temporal frequency is included in an event status of the user message. In the invention, a data table is adopted to record all messages in a message queue, in the data table, the ID of the user message is added in an automatic increasing mode, for example, the ID is +1 in sequence, namely whether the user message is put into the message queue based on the time frequency, the message with the largest ID in the message queue is the user message which needs to be executed currently, for example, the user message is put into the message queue for execution based on a specified time point, thereby avoiding the wrong execution of the user message, improving the accuracy of the execution of the user message, and being another important invention point of the invention.
In a further embodiment, the operation of arranging the corresponding service flow based on the corresponding service scenario is: each service scene comprises a plurality of service scene segments, each service scene segment corresponds to a process group, semantic analysis is carried out on the corresponding service scene, the corresponding service scene segment is selected according to the semantic analysis result, and the arrangement of service processes is carried out in the selected corresponding service scene segment. And the service scene segments and the arranged service flow can be stored and reused. For example, a business process arranged in a business scenario segment includes: data verification, data screening, data conversion, data completion, data persistence and data processing events; and each flow has two auxiliary flows before and after execution, and a running context environment is provided for the execution of the flow by connecting context objects in series in the execution process of the business flow. When the program is designed, a judgment logic for judging whether to allow execution is required when entering a scene, a scene segment and a flow group, namely judging whether to meet the conditions of entering the corresponding scene, the scene segment and the flow group through codes, and ensuring the accuracy of execution. Each service scene comprises a plurality of service scene fragments, each service scene fragment corresponds to one process group, semantic analysis is carried out on the corresponding service scene, the corresponding service scene fragment is selected according to the semantic analysis result, and the arrangement of the service process is carried out in the selected corresponding service scene fragment, so that the accuracy of the selection of the service scene fragment is improved, the service process which is subsequently arranged can be solidified into a template, and the use efficiency is improved.
In a further embodiment, the operation of matching out a corresponding service scenario from a preset service scenario database based on the service scenario identifier includes: when the service scene identification is used for searching and targeting in the service scene database, the targeted target is used as a corresponding service scene, when the target is not targeted, word segmentation processing is carried out on the user message to obtain a first key word, a second key word and a third key word, the first key word, the second key word and the third key word are used for searching and matching the description of the service scene in the service scene database, and the target with the maximum correlation which is searched and matched is used as the corresponding service scene. The correlation calculation method comprises the following steps:
wherein, the first and the second end of the pipe are connected with each other,α、β、γ、δ、ε、θis a weight value of the weight value,、、the similarity between the first keyword, the second keyword and the third keyword and the description of the service scene respectively can be cosine similarity, and the similarity calculation mode not only considers the similarity of a single word, but also considers the similarity of three words together, so that the correlation calculation is more accurate, which is another important invention point of the invention.
In the invention, in order to avoid that the service scene identification carried in the user message cannot match the corresponding service scene, thereby causing the system to report errors or the generated document is wrong, the invention adopts a word segmentation processing mode, uses the first, second and third key words after word segmentation to search and match the description of the service scene in the service scene database, takes the target with the maximum correlation searched and matched as the corresponding service scene, and provides a specific formula for correlation calculation, thereby improving the accuracy of service scene selection, which is another important invention point of the invention.
An embodiment of the present invention provides a computer storage medium, on which a computer program is stored, which when executed by a processor implements the above-mentioned method, and the computer storage medium can be a hard disk, a DVD, a CD, a flash memory, or the like.
For convenience of description, the above devices are described as being divided into various units by function, and are described separately. Of course, the functionality of the various elements may be implemented in the same one or more pieces of software and/or hardware in the practice of the present application.
From the above description of the embodiments, it is clear to those skilled in the art that the present application can be implemented by software plus a necessary general hardware platform. Based on such understanding, the technical solutions of the present application may be essentially implemented or the portions that contribute to the prior art may be embodied in the form of a software product, which may be stored in a storage medium, such as ROM/RAM, a magnetic disk, an optical disk, etc., and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the apparatuses described in the embodiments or some portions of the embodiments of the present application.
Finally, it should be noted that: although the present invention has been described in detail with reference to the above embodiments, it should be understood by those skilled in the art that: modifications and equivalents may be made thereto without departing from the spirit and scope of the invention and it is intended to cover in the claims the invention as defined in the appended claims.
Claims (4)
1. A method for generating an upstream and downstream bill based on a message is characterized by comprising the following steps:
an acquisition step, namely acquiring a user message of a document to be generated from a message queue based on a preset processing strategy;
a matching step, namely extracting the adaptive service scene identification of the document from the user message, and matching a corresponding service scene from a preset service scene database based on the service scene identification;
arranging, namely arranging corresponding business processes based on the corresponding business scenes;
a generating step, namely judging whether the service state in the user message meets the execution condition of the service process, if so, triggering the execution of the service process through a message event, acquiring a service basic identifier for generating an upstream document and a downstream document from the user message, acquiring upstream and downstream service data generated in the execution process of the service process based on the service basic identifier, and generating the upstream document and the downstream document based on the service basic identifier and the upstream and downstream service data;
wherein the predetermined processing policy is: recording the ID of the received user message through a data table after the user message is received by the message queue, wherein each user message in the message queue has a unique ID, when the preset time frequency is reached, the ID of the current user message is used for comparing with the maximum ID in the data table, if the ID is the same as the maximum ID, the user message is obtained, otherwise, the current user message is discarded, and the ID of the user message in the data table is increased;
wherein the operation of arranging the corresponding service flow based on the corresponding service scenario is as follows: each service scene comprises a plurality of service scene fragments, each service scene fragment corresponds to a process group, semantic analysis is carried out on the corresponding service scene, the corresponding service scene fragment is selected according to the semantic analysis result, and the arrangement of service processes is carried out in the selected corresponding service scene fragment;
the operation of matching out the corresponding service scene from the preset service scene database based on the service scene identification comprises: when the service scene identification is used for searching in the service scene database to hit a target, the hit target is used as a corresponding service scene, when the target is not hit, word segmentation processing is carried out on the user message to obtain a first keyword, a second keyword and a third keyword, the first keyword, the second keyword and the third keyword are used for searching and matching the description of the service scene in the service scene database, and the target with the maximum correlation obtained through searching and matching is used as the corresponding service scene;
the correlation calculation method comprises the following steps:
2. The method of claim 1, wherein the service scene segments and the choreographed service flow can be saved and reused.
3. An apparatus for generating upstream and downstream documents based on messages, the apparatus comprising:
the acquisition unit is used for acquiring user information needing to generate a document from the information queue based on a preset processing strategy;
the matching unit is used for extracting the adaptive service scene identification of the receipt from the user message and matching a corresponding service scene from a preset service scene database based on the service scene identification;
the arranging unit is used for arranging corresponding business processes based on the corresponding business scenes;
the generating unit is used for judging whether the service state in the user message meets the execution condition of the service flow, if so, the execution of the service flow is triggered through a message event, the service basic identification for generating an upstream bill and a downstream bill is obtained from the user message, the upstream and downstream service data generated in the execution process of the service flow is obtained based on the service basic identification, and the upstream and downstream bill is generated based on the service basic identification and the upstream and downstream service data;
wherein the predetermined processing policy is: after receiving user information in the information queue, recording the ID of the received user information through a data table, wherein each user information in the information queue has a unique ID, when the preset time frequency is reached, the ID of the current user information is used for comparing with the maximum ID in the data table, if the ID is the same as the maximum ID, the user information is obtained, otherwise, the current user information is abandoned, and the ID of the user information in the data table is self-increasing;
wherein the operation of arranging the corresponding service flow based on the corresponding service scenario is as follows: each service scene comprises a plurality of service scene fragments, each service scene fragment corresponds to a process group, semantic analysis is carried out on the corresponding service scene, the corresponding service scene fragment is selected according to the semantic analysis result, and the arrangement of service processes is carried out in the selected corresponding service scene fragment;
the operation of matching out the corresponding service scene from the preset service scene database based on the service scene identification comprises: when the service scene identification is used for searching in the service scene database to hit a target, the hit target is used as a corresponding service scene, when the target is not hit, word segmentation processing is carried out on the user message to obtain a first keyword, a second keyword and a third keyword, the first keyword, the second keyword and the third keyword are used for searching and matching the description of the service scene in the service scene database, and the target with the maximum correlation obtained through searching and matching is used as the corresponding service scene;
the correlation calculation method comprises the following steps:
4. A computer storage medium having a computer program stored thereon, the computer program on the computer storage medium, when executed by a processor, implementing the method of any one of claims 1-2.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211290025.0A CN115358643B (en) | 2022-10-21 | 2022-10-21 | Message-based upstream and downstream document generation method and device and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211290025.0A CN115358643B (en) | 2022-10-21 | 2022-10-21 | Message-based upstream and downstream document generation method and device and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115358643A CN115358643A (en) | 2022-11-18 |
CN115358643B true CN115358643B (en) | 2023-02-10 |
Family
ID=84008680
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211290025.0A Active CN115358643B (en) | 2022-10-21 | 2022-10-21 | Message-based upstream and downstream document generation method and device and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115358643B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116664299B (en) * | 2023-05-24 | 2024-02-20 | 东方证券股份有限公司 | Service data processing method and device, electronic equipment and storage medium |
CN117611094A (en) * | 2023-12-06 | 2024-02-27 | 阿帕数字科技有限公司 | Method and system for realizing supply chain system design based on business process arrangement |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103116832A (en) * | 2011-11-16 | 2013-05-22 | 航天信息软件技术有限公司 | Method and device for grouping collecting and generating business documents |
US9165049B2 (en) * | 2013-03-01 | 2015-10-20 | Sap Se | Translating business scenario definitions into corresponding database artifacts |
US20150356474A1 (en) * | 2014-06-10 | 2015-12-10 | Rouven Day | Real-time correlation of data model data |
CN113762910B (en) * | 2020-11-27 | 2024-04-16 | 北京京东振世信息技术有限公司 | Document monitoring method and device |
CN115185576A (en) * | 2022-06-24 | 2022-10-14 | 平安银行股份有限公司 | Process customization method and system based on process application system |
-
2022
- 2022-10-21 CN CN202211290025.0A patent/CN115358643B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN115358643A (en) | 2022-11-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN115358643B (en) | Message-based upstream and downstream document generation method and device and storage medium | |
US8560513B2 (en) | Searching for information based on generic attributes of the query | |
US20140212106A1 (en) | Music soundtrack recommendation engine for videos | |
US8719025B2 (en) | Contextual voice query dilation to improve spoken web searching | |
US9355250B2 (en) | Method and system for rapidly scanning files | |
CN109977277A (en) | Automobile information querying method, device and electronic equipment based on searching system | |
CN111708909B (en) | Video tag adding method and device, electronic equipment and computer readable storage medium | |
US20180210897A1 (en) | Model generation method, word weighting method, device, apparatus, and computer storage medium | |
US20230205755A1 (en) | Methods and systems for improved search for data loss prevention | |
CN113934848B (en) | Data classification method and device and electronic equipment | |
CN114528421A (en) | Content auditing method and device, electronic equipment and storage medium | |
CN104580109A (en) | Method and device for generating click verification code | |
JP4973738B2 (en) | Business flow processing program, method and apparatus | |
US8463725B2 (en) | Method for analyzing a multimedia content, corresponding computer program product and analysis device | |
WO2021055868A1 (en) | Associating user-provided content items to interest nodes | |
TWI699663B (en) | Segmentation method, segmentation system and non-transitory computer-readable medium | |
CN111932076A (en) | Rule configuration and release method and device and computing equipment | |
CN111178037A (en) | Repeated defect report identification method and device and electronic equipment | |
US20140195561A1 (en) | Search method and information managing apparatus | |
CN112115362B (en) | Programming information recommendation method and device based on similar code recognition | |
CN110598199A (en) | Data stream processing method and device, computer equipment and storage medium | |
WO2017107651A1 (en) | Method and device for determining relevance between news and for calculating the relevance between news | |
US9251253B2 (en) | Expeditious citation indexing | |
KR20060119439A (en) | Query matching method and system for outputting results matched to query by processing the query according to various logics | |
US9430565B2 (en) | Providing relevant content |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |