CN116775707A - Service state determining method, device, computer equipment, medium and program product - Google Patents

Service state determining method, device, computer equipment, medium and program product Download PDF

Info

Publication number
CN116775707A
CN116775707A CN202310761697.3A CN202310761697A CN116775707A CN 116775707 A CN116775707 A CN 116775707A CN 202310761697 A CN202310761697 A CN 202310761697A CN 116775707 A CN116775707 A CN 116775707A
Authority
CN
China
Prior art keywords
service
state
identifier
business
tag
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
CN202310761697.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.)
CCB Finetech Co Ltd
Original Assignee
CCB Finetech 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 CCB Finetech Co Ltd filed Critical CCB Finetech Co Ltd
Priority to CN202310761697.3A priority Critical patent/CN116775707A/en
Publication of CN116775707A publication Critical patent/CN116775707A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • G06F16/24564Applying rules; Deductive queries
    • 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

Landscapes

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

Abstract

The application relates to the technical field of big data processing and discloses a service state determining method, a device, computer equipment, a storage medium and a computer program product. The method comprises the following steps: responding to the service state inquiry request, analyzing the service state inquiry request to obtain a service identifier; based on the service identification, inquiring in a service label database to obtain a service label corresponding to the service identification; extracting state information corresponding to the service identifier from the service tag according to a preset service tag analysis rule to obtain a service state; push service status. The whole scheme constructs the service tag based on the service identifier and the service state, and when the service state query request is received, the service tag can be directly obtained according to the service identifier, and the service state is obtained by analyzing the service tag, so that the service state query rate is high.

Description

Service state determining method, device, computer equipment, medium and program product
Technical Field
The present application relates to the field of big data processing technology, and in particular, to a service state determining method, apparatus, computer device, storage medium, and computer program product.
Background
With the development of computer technology, numerous applications have emerged. In the process of interaction between a user and application software, a large number of service records are generated, so that the user can conveniently inquire focused services, the service progress can be known in time, and the service state needs to be inquired. Taking business as an example, staff needs to track business states in real time.
The current business opportunity tracking is mainly realized by collecting business logs and analyzing the logs. This approach can result in reduced efficiency in storing logs and analyzing the logs when the amount of logs processed is excessive, and lower business tracking efficiency.
Disclosure of Invention
In view of the foregoing, it is desirable to provide an efficient business state determining method, apparatus, computer device, computer readable storage medium, and computer program product.
In a first aspect, the present application provides a service status determining method. The method comprises the following steps:
responding to a service state query request, and analyzing the service state query request to obtain a service identifier;
based on the service identifier, inquiring in a service tag database to obtain a service tag corresponding to the service identifier;
Extracting state information corresponding to the service identifier from the service tag according to a preset service tag analysis rule to obtain a service state;
pushing the service state.
In one embodiment, the method further comprises: monitoring service flows in real time through a task tracking thread, wherein the service flows comprise at least one flow in a service circulation process;
and updating the business label associated with the business process under the condition that the business process is detected to be ended.
In one embodiment, the updating the service tag associated with the service flow when the end of the service flow is detected includes: under the condition that any one of the business processes is detected to be finished, determining a process identifier and a business identifier corresponding to the finished process; acquiring a service tag corresponding to the service identifier based on the service identifier; and updating the service label according to the flow identifier.
In one embodiment, the method further comprises: acquiring a contract identifier associated with the service identifier, and acquiring a contract state based on the contract identifier; and updating the contract state according to the service state.
In one embodiment, the extracting, according to a preset service tag analysis rule, state information corresponding to the service identifier from the service tag to obtain a service state includes: extracting a primary service state and a secondary service state from the service label according to a preset service label analysis rule; and determining a service state based on the primary service state and the secondary service state.
In one embodiment, the method further comprises: responding to a service creation request, generating a service identifier for the service, and acquiring a service flow associated with the service identifier; generating a business label according to an initial flow in the business flows, wherein the initial flow is the first flow in the business flows.
In one embodiment, the business state comprises a business machine state.
In a second aspect, the application further provides a service state determining device. The device comprises:
the identification acquisition module is used for responding to the service state query request, analyzing the service state query request and acquiring a service identification;
the service tag acquisition module is used for inquiring in a service tag database based on the service identifier to acquire a service tag corresponding to the service identifier;
The extraction module is used for extracting state information corresponding to the service identifier from the service tag according to a preset service tag analysis rule to obtain a service state;
and the pushing module is used for pushing the service state.
In one embodiment, the service state determining device further includes an updating module, configured to monitor, in real time, a service flow through a task tracking thread, where the service flow includes at least one flow in a service circulation process; and updating the business label associated with the business process under the condition that the business process is detected to be ended.
In one embodiment, the updating module is further configured to determine a flow identifier and a service identifier corresponding to the terminated flow when it is detected that any one of the service flows is terminated; acquiring a service label corresponding to the service identifier based on the service identifier; and updating the service label according to the flow mark.
In one embodiment, the service state determining device further includes a contract updating module, configured to obtain a contract identifier associated with the service identifier, and obtain the contract state based on the contract identifier; and updating the combined state according to the service state.
In one embodiment, the extracting module is further configured to extract the primary service state and the secondary service state from the service label according to a preset service label parsing rule; the traffic state is determined based on the primary traffic state and the secondary traffic state.
In an optional embodiment, the service state determining device further includes a generating module, configured to respond to a service creation request, generate a service identifier for a service, and obtain a service flow associated with the service identifier; generating a business label according to an initial flow in the business flows, wherein the initial flow is the first flow in the business flows.
In an alternative embodiment, the business state comprises a business machine state.
In a third aspect, the present application also provides a computer device. The computer device comprises a memory storing a computer program and a processor which when executing the computer program performs the steps of:
responding to a service state query request, and analyzing the service state query request to obtain a service identifier;
based on the service identifier, inquiring in a service tag database to obtain a service tag corresponding to the service identifier;
Extracting state information corresponding to the service identifier from the service tag according to a preset service tag analysis rule to obtain a service state;
pushing the service state.
In a fourth aspect, the present application also provides a computer-readable storage medium. The computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of:
responding to a service state query request, and analyzing the service state query request to obtain a service identifier;
based on the service identifier, inquiring in a service tag database to obtain a service tag corresponding to the service identifier;
extracting state information corresponding to the service identifier from the service tag according to a preset service tag analysis rule to obtain a service state;
pushing the service state.
In a fifth aspect, the present application also provides a computer program product. The computer program product comprises a computer program which, when executed by a processor, implements the steps of:
responding to a service state query request, and analyzing the service state query request to obtain a service identifier;
Based on the service identifier, inquiring in a service tag database to obtain a service tag corresponding to the service identifier;
extracting state information corresponding to the service identifier from the service tag according to a preset service tag analysis rule to obtain a service state;
pushing the service state.
The service state determining method, the device, the computer equipment, the storage medium and the computer program product are used for responding to the service state query request and analyzing the service state query request to obtain the service identifier; based on the service identification, inquiring in a service label database to obtain a service label corresponding to the service identification; extracting state information corresponding to the service identifier from the service tag according to a preset service tag analysis rule to obtain a service state; push service status. The whole scheme constructs the service tag based on the service identifier and the service state, and when the service state query request is received, the service tag can be directly obtained according to the service identifier, and the service state is obtained by analyzing the service tag, so that the service state query rate is high.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments or the conventional techniques of the present application, the drawings required for the descriptions of the embodiments or the conventional techniques will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present application, and other drawings may be obtained according to the drawings without inventive effort for those skilled in the art.
FIG. 1 is an application environment diagram of a business state determination method in one embodiment;
FIG. 2 is a flow chart of a method of determining traffic status in one embodiment;
FIG. 3 is a flow chart of a method for determining a traffic state according to another embodiment;
FIG. 4 is a flow chart of a method for determining a traffic state according to another embodiment;
FIG. 5 is a block diagram of a traffic state determining apparatus in one embodiment;
fig. 6 is an internal structural diagram of a computer device in one embodiment.
Detailed Description
It should be noted that, the user information (including but not limited to user equipment information, user personal information, etc.) and the data (including but not limited to data for analysis, stored data, presented data, etc.) related to the present application are information and data authorized by the user or sufficiently authorized by each party, and the collection, use and processing of the related data need to comply with the related laws and regulations of the related country and region.
The present application will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present application more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
The service state determining method provided by the embodiment of the application can be applied to an application environment shown in figure 1. Wherein the terminal 102 communicates with the server 104 via a network. The data storage system may store data that the server 104 needs to process. The data storage system may be integrated on the server 104 or may be located on a cloud or other network server.
In one possible implementation, the terminal 102 responds to the service state query request, and analyzes the service state query request to obtain a service identifier; based on the service identifier, inquiring in a service tag database to obtain a service tag corresponding to the service identifier, wherein the service tag database is stored in the server 104; extracting state information corresponding to the service identifier from the service tag according to a preset service tag analysis rule to obtain a service state; push service status.
In another possible implementation manner, the terminal 102 responds to the service state query request and sends the service state query request to the server 104, and the server 104 responds to the service state query request and analyzes the service state query request to obtain a service identifier; based on the service identification, inquiring in a service label database to obtain a service label corresponding to the service identification; extracting state information corresponding to the service identifier from the service tag according to a preset service tag analysis rule to obtain a service state; push service status. The terminal 102 may be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, internet of things devices, and portable wearable devices, where the internet of things devices may be smart speakers, smart televisions, smart air conditioners, smart vehicle devices, and the like. The portable wearable device may be a smart watch, smart bracelet, headset, or the like. The server 104 may be implemented as a stand-alone server or as a server cluster of multiple servers.
The terminal 102 may be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, internet of things devices, and portable wearable devices, where the internet of things devices may be smart speakers, smart televisions, smart air conditioners, smart vehicle devices, and the like. The portable wearable device may be a smart watch, smart bracelet, headset, or the like. The server 104 may be implemented as a stand-alone server or as a server cluster of multiple servers.
In one embodiment, as shown in fig. 2, a service status determining method is provided, and the method is applied to the server 104 in fig. 1 for illustration, and includes the following steps:
step 202, responding to the service state inquiry request, analyzing the service state inquiry request to obtain the service identification.
The service state characterizes the flow state of the current service in the complete service flow. The business flow is a working process composed of process nodes and execution modes involved in the execution process of the business. The services may be related to different services, including, for example, business machine services, approval services, contract services, and the like. The service identifier is a unique identifier of the service and is used for distinguishing different services.
Specifically, a user triggers a service state query operation on a terminal, the terminal listens to and responds to the service state query operation of the user, obtains a service identifier input by the user, generates a service state query request according to the service identifier, and uploads the service state query request to a server. Optionally, the terminal may further display a plurality of service query buttons on the display interface, the user triggers a service query button on the terminal, that is, triggers a service status query operation, the terminal listens to and responds to the service status query operation of the user, obtains a service identifier associated with the service query button triggered by the user, generates a service status query request according to the service identifier, and uploads the service status query request to the server.
The server receives the service state query request, analyzes the service state query request and obtains the service identification.
Step 204, based on the service identifier, query is performed in the service tag database to obtain the service tag corresponding to the service identifier.
The service label data stores service labels, the service labels carry current flow information of the service, and the service labels are generated based on preset label generation rules.
Specifically, the server generates a query instruction according to the service identifier, and queries in the service tag database based on the query instruction to obtain a service tag corresponding to the service identifier.
And step 206, extracting state information corresponding to the service identifier from the service label according to a preset service label analysis rule to obtain a service state.
The preset service tag analysis rule is a related rule for extracting a service state, and the preset service tag analysis rule may correspond to a preset tag generation rule. In some alternative embodiments, the business state comprises business machine state.
Specifically, the server locally acquires a preset service tag analysis rule, determines a service state storage position according to the preset service tag analysis rule, extracts state information corresponding to the service identifier from the service state storage position of the service tag, and finally performs association query in a state information table according to the state information to obtain a service state corresponding to the state information. The state information may be a state identifier, and represent different service states (i.e. service flow information), so after the server extracts the state identifier, the server queries the state description information corresponding to the state identifier from the state information table to obtain the service state.
In some alternative embodiments, different services may also correspond to different service tag analysis rules, the server obtains a preset service tag analysis rule corresponding to the service identifier based on the service identifier, determines a service state storage position according to the preset service tag analysis rule, then extracts state information corresponding to the service identifier from the service state storage position of the service tag, and finally performs association query in a state information table according to the state information to obtain a service state corresponding to the state information.
Step 208, pushing the service status.
Specifically, the server pushes the service state to the terminal, so that the terminal displays state information corresponding to the service identifier on the display interface, and a user intuitively knows the service state.
In the service state determining method, the service state query request is analyzed in response to the service state query request to obtain the service identifier; based on the service identification, inquiring in a service label database to obtain a service label corresponding to the service identification; extracting state information corresponding to the service identifier from the service tag according to a preset service tag analysis rule to obtain a service state; push service status. The whole scheme constructs the service tag based on the service identifier and the service state, and when the service state query request is received, the service tag can be directly obtained according to the service identifier, and the service state is obtained by analyzing the service tag, so that the service state query rate is high.
In some alternative embodiments, the method further comprises: monitoring the business process in real time through a task tracking thread; and updating the business label associated with the business process under the condition that the business process is detected to be ended.
Wherein the business processes include at least one process in a business circulation process. The task tracking thread is used for monitoring the execution condition of a plurality of business processes.
Specifically, the server deploys a task tracking thread to monitor an event corresponding to a business process in real time, and updates a business label corresponding to the business process when the event execution corresponding to the business process is detected to be finished. Further, the task tracking thread of the server may be a task list object, and when the service flow ends, a complex event of the service flow is triggered, and the task list object monitors completion of a corresponding event, updates a service tag associated with the service flow, and may also identify a flow state in which the current service is located in the service flow.
In some embodiments, the server may further deploy an exclusive task tracking thread for each process in the service flows, where the exclusive task tracking thread monitors the service execution condition entering the process, and updates the service tag associated with the service flow when it is detected that the service flow ends. In the embodiment, by deploying a special task tracking thread for each process, the real-time tracking of multiple business processes in the system can be improved, and the business updating efficiency and accuracy are improved.
In some alternative embodiments, as shown in fig. 3, in the case where the end of the business process is detected, updating the business tag associated with the business process includes:
step 302, under the condition that any one of the business processes is detected to be finished, determining a process identifier and a business identifier corresponding to the finished process;
step 304, based on the service identifier, obtaining a service tag corresponding to the service identifier;
and 306, updating the service label according to the flow identification.
The flow identifier may be a state identifier, which is a unique identifier of a flow corresponding to the service.
Specifically, when the server monitors that any one of the service flows is finished, the server acquires the flow identifier corresponding to the finished flow through the degagatetask object, acquires the service identifier of the finished flow, and distinguishes which service is which service and which process execution is finished. And then, inquiring in the service label data according to the service identification to obtain the service label corresponding to the service identification. And modifying the service state information in the service tag according to the flow mark to obtain an updated service tag. The server may also modify the flow information of the service on the system according to the flow identification.
Taking business as an example, business states include states of communication confirmation, solution decision, stand off, bid quotation, contract negotiation, legal review printing, contract signing, and the like. The business identifier comprises a business opportunity identifier, a business opportunity label can be inquired through the business opportunity identifier, the business opportunity state is extracted from the business opportunity label, and the step of turning the business opportunity flow is clear. By monitoring the execution state of the process by the task tracking thread, when the execution of a certain process is finished, the position of the business opportunity in the process can be modified, and meanwhile, the business opportunity label can be modified.
In some alternative embodiments, the method further comprises: acquiring a contract identifier associated with the service identifier, and acquiring a contract state based on the contract identifier; and updating the combined state according to the service state.
Wherein the contract identification is a unique identification of the contract. The business may also be associated with a contract, storing the business identity in association with the contract identity. Taking business opportunity service as an example, business opportunity flow and contract state can be associated, and contract state can be updated according to business opportunity state.
Specifically, the server queries in the contract database according to the service identifier, acquires the contract identifier associated with the service identifier, acquires the contract state of the contract based on the contract identifier, and can update the contract state according to the service state.
In some alternative embodiments, as shown in fig. 4, according to a preset service tag analysis rule, extracting state information corresponding to a service identifier from a service tag to obtain a service state, including:
step 402, extracting a primary service state and a secondary service state from a service label according to a preset service label analysis rule;
step 404, determining a service state based on the primary service state and the secondary service state.
The business process comprises a first-level process and a plurality of second-level processes, wherein the first-level process corresponds to the first-level business state, and the second-level process corresponds to the second-level business state. For example, the business machine flow comprises three primary flows of establishing a business machine, standing and bidding, and signing a contract, the business machine primary flow comprises two secondary flows of communication confirmation and solution decision, the standing and bidding primary flow comprises two secondary flows of bidding and bidding, and the signing of the contract comprises three secondary flows of contract negotiation, legal review and contract signing.
Specifically, the server acquires a primary service state position and a secondary service state position according to a preset service tag analysis rule, extracts a primary service identifier of the primary service state position and a secondary service identifier of the secondary service state position from a service tag, then splices the primary service identifier and the secondary service identifier to obtain a service state identifier, and acquires corresponding state description information according to the service state identifier to obtain a service state.
Optionally, the server may further determine the first-level state description information directly according to the first-level service identifier, and push the first-level service state, so as to meet the requirement of the user on quick query.
In some alternative embodiments, the method further comprises: responding to the service creation request, generating a service identifier for the service, and acquiring a service flow associated with the service identifier;
and generating a business label according to the initial flow in the business flow.
Wherein the initial flow is the first flow in the business flow.
Specifically, the server receives a new service creation request, and can generate a service identifier according to a service type, a creation date and a service serial number, and acquire a service flow associated with the service. The business process may be set by the user according to the requirement, and the business identifier generating rule may also be set according to a specific business scenario, which is not limited herein. The service serial number is the unique identification of the service and is the self-increasing serial number.
Then, a flow identifier corresponding to the initial flow in the service flow is obtained, a service label is generated according to the service identifier and the flow identifier based on a preset label generation rule, and the initial service label is generated. The server can also record the circulation time of the service identifier in the service flow, so as to inform the responsible personnel corresponding to the flow in time, operate within the preset period of the flow and improve the service processing efficiency. For example, a business opportunity is created by the staff in the system, the business opportunity is identified as bs202301010001, the business opportunity is just established, the business opportunity state is the demand communication, and the business opportunity label is bs202301010001 demand communication. When the business label is a bid term, we need to pick business identified as bs202301010001 to associate when creating the bid. At the moment, the business opportunity can be checked according to the bidding state, and the business opportunity is in the bidding stage, and the bidding flow is associated with the business opportunity; when contract negotiation is carried out, the business opportunity with business opportunity identification bs202301010001 is selected by the same process to be associated, and the business opportunity label is contract negotiation, so that the business opportunity state query efficiency is improved. In addition, the circulation time among the nodes of the flow can be counted, and the flow is optimized for the nodes with longer time, so that the flow of the business opportunity is improved, and the flow efficiency is improved.
In order to easily understand the technical solution provided by the embodiments of the present application, a complete service state determining process is used to briefly describe the service state determining method provided by the embodiments of the present application:
(1) Responding to the service creation request, generating a service identifier for the service, and acquiring a service flow associated with the service identifier; and generating a business label according to the initial flow in the business flow.
(2) And responding to the service state query request, and analyzing the service state query request to obtain the service identifier.
(3) Based on the service identification, inquiring in a service label database to obtain a service label corresponding to the service identification;
(4) Extracting state information corresponding to the service identifier from the service tag according to a preset service tag analysis rule to obtain a service state; push service status.
(5) Monitoring service flows in real time through task tracking threads, wherein the service flows comprise at least one flow in a service circulation process;
(6) Under the condition that any one of the business processes is detected to be finished, determining a process identifier and a business identifier corresponding to the finished process; acquiring a service label corresponding to the service identifier based on the service identifier; and updating the service label according to the flow mark.
(7) Acquiring a contract identifier associated with the service identifier, and acquiring a contract state based on the contract identifier; and updating the combined state according to the service state.
It should be understood that, although the steps in the flowcharts related to the above embodiments are sequentially shown as indicated by arrows, these steps are not necessarily sequentially performed in the order indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in the flowcharts described in the above embodiments may include a plurality of steps or a plurality of stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of the steps or stages is not necessarily performed sequentially, but may be performed alternately or alternately with at least some of the other steps or stages.
Based on the same inventive concept, the embodiment of the application also provides a service state determining device for realizing the above related service state determining method. The implementation of the solution provided by the device is similar to the implementation described in the above method, so the specific limitation in the embodiments of one or more service state determining devices provided below may refer to the limitation of the service state determining method hereinabove, and will not be described herein.
In one embodiment, as shown in fig. 5, there is provided a service status determining apparatus, including: an identification acquisition module 502, a service tag acquisition module 504, an extraction module 506, and a push module 508, wherein:
the identifier obtaining module 502 is configured to respond to a service state query request, and parse the service state query request to obtain a service identifier;
the service tag obtaining module 504 is configured to query in a service tag database based on the service identifier, to obtain a service tag corresponding to the service identifier;
the extracting module 506 is configured to extract, from the service tag, state information corresponding to the service identifier according to a preset service tag parsing rule, to obtain a service state;
and the pushing module 508 is configured to push the service status.
In an optional embodiment, the service state determining device further includes an updating module, configured to monitor, in real time, a service flow through the task tracking thread, where the service flow includes at least one flow in a service circulation process; and updating the business label associated with the business process under the condition that the business process is detected to be ended.
In an optional embodiment, the updating module is further configured to determine, when it is detected that any one of the service flows ends, a flow identifier and a service identifier corresponding to the ended flow; acquiring a service label corresponding to the service identifier based on the service identifier; and updating the service label according to the flow mark.
In an optional embodiment, the service status determining apparatus further includes a contract updating module, configured to obtain a contract identifier associated with the service identifier, and obtain the contract status based on the contract identifier; and updating the combined state according to the service state.
In an alternative embodiment, the extracting module 506 is further configured to extract the primary service status and the secondary service status from the service tag according to a preset service tag parsing rule; the traffic state is determined based on the primary traffic state and the secondary traffic state.
In an optional embodiment, the service state determining device further includes a generating module, configured to generate a service identifier for a service in response to the service creation request, and obtain a service flow associated with the service identifier; generating a business label according to an initial flow in the business flows, wherein the initial flow is the first flow in the business flows.
In an alternative embodiment, the business state comprises business machine state.
The above-mentioned respective modules in the service state determination apparatus may be implemented in whole or in part by software, hardware, and a combination thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a computer device is provided, which may be a server, the internal structure of which may be as shown in fig. 6. The computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database of the computer device is used for storing business label data, contract data and business flow data. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a method of traffic state determination.
It will be appreciated by those skilled in the art that the structure shown in FIG. 6 is merely a block diagram of some of the structures associated with the present inventive arrangements and is not limiting of the computer device to which the present inventive arrangements may be applied, and that a particular computer device may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
In one embodiment, a computer device is provided comprising a memory and a processor, the memory having stored therein a computer program, the processor when executing the computer program performing the steps of:
responding to the service state inquiry request, analyzing the service state inquiry request to obtain a service identifier;
based on the service identification, inquiring in a service label database to obtain a service label corresponding to the service identification;
extracting state information corresponding to the service identifier from the service tag according to a preset service tag analysis rule to obtain a service state;
push service status.
In one embodiment, the processor when executing the computer program further performs the steps of: monitoring service flows in real time through task tracking threads, wherein the service flows comprise at least one flow in a service circulation process; and updating the business label associated with the business process under the condition that the business process is detected to be ended.
In one embodiment, the processor when executing the computer program further performs the steps of: under the condition that any one of the business processes is detected to be finished, determining a process identifier and a business identifier corresponding to the finished process; acquiring a service label corresponding to the service identifier based on the service identifier; and updating the service label according to the flow mark.
In one embodiment, the processor when executing the computer program further performs the steps of: acquiring a contract identifier associated with the service identifier, and acquiring a contract state based on the contract identifier; and updating the combined state according to the service state.
In one embodiment, the processor when executing the computer program further performs the steps of: extracting a primary service state and a secondary service state from the service label according to a preset service label analysis rule; the traffic state is determined based on the primary traffic state and the secondary traffic state.
In one embodiment, the processor when executing the computer program further performs the steps of: responding to the service creation request, generating a service identifier for the service, and acquiring a service flow associated with the service identifier; generating a business label according to an initial flow in the business flows, wherein the initial flow is the first flow in the business flows.
In one embodiment, a computer readable storage medium is provided having a computer program stored thereon, which when executed by a processor, performs the steps of:
responding to the service state inquiry request, analyzing the service state inquiry request to obtain a service identifier;
Based on the service identification, inquiring in a service label database to obtain a service label corresponding to the service identification;
extracting state information corresponding to the service identifier from the service tag according to a preset service tag analysis rule to obtain a service state;
push service status.
In one embodiment, the computer program when executed by the processor further performs the steps of: monitoring service flows in real time through task tracking threads, wherein the service flows comprise at least one flow in a service circulation process; and updating the business label associated with the business process under the condition that the business process is detected to be ended.
In one embodiment, the computer program when executed by the processor further performs the steps of: under the condition that any one of the business processes is detected to be finished, determining a process identifier and a business identifier corresponding to the finished process; acquiring a service label corresponding to the service identifier based on the service identifier; and updating the service label according to the flow mark.
In one embodiment, the computer program when executed by the processor further performs the steps of: acquiring a contract identifier associated with the service identifier, and acquiring a contract state based on the contract identifier; and updating the combined state according to the service state.
In one embodiment, the computer program when executed by the processor further performs the steps of: extracting a primary service state and a secondary service state from the service label according to a preset service label analysis rule; the traffic state is determined based on the primary traffic state and the secondary traffic state.
In one embodiment, the computer program when executed by the processor further performs the steps of: responding to the service creation request, generating a service identifier for the service, and acquiring a service flow associated with the service identifier; generating a business label according to an initial flow in the business flows, wherein the initial flow is the first flow in the business flows.
In one embodiment, a computer program product is provided comprising a computer program which, when executed by a processor, performs the steps of:
responding to the service state inquiry request, analyzing the service state inquiry request to obtain a service identifier;
based on the service identification, inquiring in a service label database to obtain a service label corresponding to the service identification;
extracting state information corresponding to the service identifier from the service tag according to a preset service tag analysis rule to obtain a service state;
Push service status.
In one embodiment, the computer program when executed by the processor further performs the steps of: monitoring service flows in real time through task tracking threads, wherein the service flows comprise at least one flow in a service circulation process; and updating the business label associated with the business process under the condition that the business process is detected to be ended.
In one embodiment, the computer program when executed by the processor further performs the steps of: under the condition that any one of the business processes is detected to be finished, determining a process identifier and a business identifier corresponding to the finished process; acquiring a service label corresponding to the service identifier based on the service identifier; and updating the service label according to the flow mark.
In one embodiment, the computer program when executed by the processor further performs the steps of: acquiring a contract identifier associated with the service identifier, and acquiring a contract state based on the contract identifier; and updating the combined state according to the service state.
In one embodiment, the computer program when executed by the processor further performs the steps of: extracting a primary service state and a secondary service state from the service label according to a preset service label analysis rule; the traffic state is determined based on the primary traffic state and the secondary traffic state.
In one embodiment, the computer program when executed by the processor further performs the steps of: responding to the service creation request, generating a service identifier for the service, and acquiring a service flow associated with the service identifier; generating a business label according to an initial flow in the business flows, wherein the initial flow is the first flow in the business flows.
Those skilled in the art will appreciate that implementing all or part of the above-described methods in accordance with the embodiments may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed may comprise the steps of the embodiments of the methods described above. Any reference to memory, database, or other medium used in embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high density embedded nonvolatile Memory, resistive random access Memory (ReRAM), magnetic random access Memory (Magnetoresistive Random Access Memory, MRAM), ferroelectric Memory (Ferroelectric Random Access Memory, FRAM), phase change Memory (Phase Change Memory, PCM), graphene Memory, and the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory, and the like. By way of illustration, and not limitation, RAM can be in the form of a variety of forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), and the like. The databases referred to in the embodiments provided herein may include at least one of a relational database and a non-relational database. The non-relational database may include, but is not limited to, a blockchain-based distributed database, and the like. The processor referred to in the embodiments provided in the present application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic unit, a data processing logic unit based on quantum computing, or the like, but is not limited thereto.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The foregoing examples illustrate only a few embodiments of the application, which are described in detail and are not to be construed as limiting the scope of the application. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the application, which are all within the scope of the application. Accordingly, the scope of the application should be assessed as that of the appended claims.

Claims (17)

1. A method for determining a traffic state, the method comprising:
responding to a service state query request, and analyzing the service state query request to obtain a service identifier;
based on the service identifier, inquiring in a service tag database to obtain a service tag corresponding to the service identifier;
extracting state information corresponding to the service identifier from the service tag according to a preset service tag analysis rule to obtain a service state;
Pushing the service state.
2. The method according to claim 1, wherein the method further comprises:
monitoring service flows in real time through a task tracking thread, wherein the service flows comprise at least one flow in a service circulation process;
and updating the business label associated with the business process under the condition that the business process is detected to be ended.
3. The method according to claim 2, wherein updating the business tag associated with the business process in the event that the end of the business process is detected comprises:
under the condition that any one of the business processes is detected to be finished, determining a process identifier and a business identifier corresponding to the finished process;
acquiring a service tag corresponding to the service identifier based on the service identifier;
and updating the service label according to the flow identifier.
4. The method according to claim 1, wherein the method further comprises:
acquiring a contract identifier associated with the service identifier, and acquiring a contract state based on the contract identifier;
and updating the contract state according to the service state.
5. The method according to any one of claims 1 to 4, wherein the extracting, according to a preset service tag parsing rule, state information corresponding to the service identifier from the service tag to obtain a service state includes:
Extracting a primary service state and a secondary service state from the service label according to a preset service label analysis rule;
and determining a service state based on the primary service state and the secondary service state.
6. The method according to claim 1, wherein the method further comprises:
responding to a service creation request, generating a service identifier for the service, and acquiring a service flow associated with the service identifier;
generating a business label according to an initial flow in the business flows, wherein the initial flow is the first flow in the business flows.
7. The method of claim 1, wherein the business state comprises a business machine state.
8. A traffic state determining apparatus, the apparatus comprising:
the identification acquisition module is used for responding to the service state query request, analyzing the service state query request and acquiring a service identification;
the service tag acquisition module is used for inquiring in a service tag database based on the service identifier to acquire a service tag corresponding to the service identifier;
the extraction module is used for extracting state information corresponding to the service identifier from the service tag according to a preset service tag analysis rule to obtain a service state;
And the pushing module is used for pushing the service state.
9. The apparatus of claim 8, wherein the traffic state determining means further comprises an updating module for:
monitoring service flows in real time through a task tracking thread, wherein the service flows comprise at least one flow in a service circulation process; and updating the business label associated with the business process under the condition that the business process is detected to be ended.
10. The apparatus of claim 9, wherein the update module is further configured to:
under the condition that any one of the business processes is detected to be finished, determining a process identifier and a business identifier corresponding to the finished process; acquiring a service tag corresponding to the service identifier based on the service identifier; and updating the service label according to the flow identifier.
11. The apparatus of claim 8, wherein the traffic state determining means further comprises a contract update module for:
acquiring a contract identifier associated with the service identifier, and acquiring a contract state based on the contract identifier; and updating the contract state according to the service state.
12. The apparatus of any one of claims 8-11, wherein the extraction module is further configured to:
extracting a primary service state and a secondary service state from the service label according to a preset service label analysis rule; and determining a service state based on the primary service state and the secondary service state.
13. The apparatus of claim 8, wherein the traffic state determining means further comprises a generating module configured to:
responding to a service creation request, generating a service identifier for the service, and acquiring a service flow associated with the service identifier; generating a business label according to an initial flow in the business flows, wherein the initial flow is the first flow in the business flows.
14. The apparatus of claim 8, wherein the traffic state comprises a business machine state.
15. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any of claims 1 to 7 when the computer program is executed.
16. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 7.
17. A computer program product comprising a computer program, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 7.
CN202310761697.3A 2023-06-26 2023-06-26 Service state determining method, device, computer equipment, medium and program product Pending CN116775707A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310761697.3A CN116775707A (en) 2023-06-26 2023-06-26 Service state determining method, device, computer equipment, medium and program product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310761697.3A CN116775707A (en) 2023-06-26 2023-06-26 Service state determining method, device, computer equipment, medium and program product

Publications (1)

Publication Number Publication Date
CN116775707A true CN116775707A (en) 2023-09-19

Family

ID=87987560

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310761697.3A Pending CN116775707A (en) 2023-06-26 2023-06-26 Service state determining method, device, computer equipment, medium and program product

Country Status (1)

Country Link
CN (1) CN116775707A (en)

Similar Documents

Publication Publication Date Title
US11669499B2 (en) Management of journal entries associated with customizations of knowledge objects in a search head cluster
CN111158977A (en) Abnormal event root cause positioning method and device
CN113157947A (en) Knowledge graph construction method, tool, device and server
CN113505265B (en) Data query method and device, electronic equipment, storage medium and program product
CN115905630A (en) Graph database query method, device, equipment and storage medium
CN111897898B (en) Configuration method and device for equipment position of Internet of things and computer equipment
CN107016028B (en) Data processing method and apparatus thereof
CN110737662A (en) data analysis method, device, server and computer storage medium
CN116775707A (en) Service state determining method, device, computer equipment, medium and program product
CN116743790A (en) Device data acquisition, device data analysis method and device and computer device
CN114860806A (en) Data query method and device of block chain, computer equipment and storage medium
CN111553749A (en) Activity push strategy configuration method and device
CN110674137A (en) Data processing method and device, storage medium and electronic equipment
Naureen Big Data Analytics with Hadoop
CN117689451B (en) Flink-based stream vector search method, device and system
CN113177157B (en) Label separation method, device, equipment and storage medium
CN118133793A (en) Form generation method, form generation device, computer equipment and storage medium
CN118152442A (en) Object data processing method, device, computer equipment and storage medium
CN117236298A (en) Report data generation method, report data generation device, computer equipment, report data generation medium and program product
CN114254124A (en) Sensitive data map display method and device, computer equipment and medium
CN116578771A (en) User orientation method, device, computer equipment and computer readable storage medium
CN118606142A (en) Application state monitoring method, apparatus, computer device, readable storage medium and program product
CN117370645A (en) Page display method, device, computer equipment and storage medium
CN118094024A (en) Virtual resource pushing method, device, computer equipment and storage medium
CN116974814A (en) Data recovery method, apparatus, device, storage medium and computer program product

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
CB03 Change of inventor or designer information
CB03 Change of inventor or designer information

Inventor after: Zhou Xinke

Inventor after: Liu Ya

Inventor after: Xiang Hui

Inventor after: Zhao Jing

Inventor after: Pan Chunxiao

Inventor before: Zhou Xinke

Inventor before: Liu Ya

Inventor before: Xiang Hui

Inventor before: Zhao Jing

Inventor before: Pan Xiaochun