CN114756293A - Service processing method, device, computer equipment and storage medium - Google Patents

Service processing method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN114756293A
CN114756293A CN202210221970.9A CN202210221970A CN114756293A CN 114756293 A CN114756293 A CN 114756293A CN 202210221970 A CN202210221970 A CN 202210221970A CN 114756293 A CN114756293 A CN 114756293A
Authority
CN
China
Prior art keywords
service
target
instance
task
account
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
CN202210221970.9A
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.)
Dawning Information Industry Beijing Co Ltd
Original Assignee
Dawning Information Industry Beijing 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 Dawning Information Industry Beijing Co Ltd filed Critical Dawning Information Industry Beijing Co Ltd
Priority to CN202210221970.9A priority Critical patent/CN114756293A/en
Publication of CN114756293A publication Critical patent/CN114756293A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • G06F9/4451User profiles; Roaming
    • 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/21Design, administration or maintenance of databases
    • 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/25Integrating or interfacing systems involving database management systems
    • G06F16/254Extract, transform and load [ETL] procedures, e.g. ETL data flows in data warehouses
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0482Interaction with lists of selectable items, e.g. menus

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Human Computer Interaction (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The application relates to a service processing method, a service processing device, a computer device, a storage medium and a computer program product. The method comprises the following steps: responding to the process creating operation of the target business, and generating a process instance corresponding to the target business; generating a task instance corresponding to each task node contained in the target service by executing the process instance, and sequentially executing the task instance according to the execution logic relationship of each task node; and responding to the configuration operation of the target task instance, determining the currently executed target task instance in the execution logic relation, suspending the target task instance, and performing configuration processing on the target task instance. The method improves the operation flexibility of the whole service processing process.

Description

Service processing method, device, computer equipment and storage medium
Technical Field
The present application relates to the field of big data processing technologies, and in particular, to a service processing method, apparatus, computer device, storage medium, and computer program product.
Background
With the increasing maturity and popularity of big data technologies, various industries have benefited from the big data era. With increasingly rich business data, workflow comes up. The workflow is a calculation model of the workflow (or called as a business process), logic and rules for organizing the work in the workflow together before and after, and tasks in the business process are deployed and implemented in a process instance mode in a computer based on the workflow.
In the current business process processing method, a pipeline execution mode is adopted according to a process example of a business process, and a plurality of task nodes in the process example are sequentially executed until the processing of a whole business project is completed.
However, in the current business process processing method, a pipeline-based execution mode is adopted, and the configuration operation cannot be performed on the business process in the execution process, so that the whole business process processing process has no flexibility.
Disclosure of Invention
In view of the above, it is necessary to provide a service processing method, apparatus, computer device, computer readable storage medium and computer program product for solving the above technical problems.
In a first aspect, the present application provides a service processing method. The method comprises the following steps:
responding to the process creating operation of the target business, and generating a process instance corresponding to the target business;
generating a task instance corresponding to each task node contained in the target service by executing the process instance, and sequentially executing the task instance according to the execution logic relationship of each task node;
and responding to the node configuration operation of the task instance, determining a target task instance currently being executed in the execution logic relation, suspending the target task instance, and performing configuration processing on the target task instance.
By adopting the method, the execution logic relation of the target service is determined by creating the process instance and the task instance of the target service, the target task instance which is currently executed is determined based on the execution logic relation, the suspension and the configuration of the processing process of the target service are realized, and the operation flexibility of the whole service processing process is improved.
In one embodiment, before responding to the flow creation operation on the target business, the method further includes:
acquiring an account identifier of a target account, and determining a service set corresponding to a service group to which the account identifier belongs;
and in a service processing interface, outputting and displaying options created by the service identification generation flow corresponding to each service contained in the service set.
In this embodiment, for the account identifier of each account, the process creation option of each service corresponding to the account identifier is displayed in the service processing interface displayed by the service processing system logged in, so that authority management for a big data processing task (that is, a general name of each service processing task in the service processing system) is realized, and the security of service processing is improved.
In one embodiment, the obtaining the account identifier of the target account and determining the service set corresponding to the service group to which the account identifier belongs includes:
displaying an account list and a preset service group in a user management interface; the account list comprises a plurality of account identifications;
responding to the configuration grouping operation of the account identifications, and determining the service grouping of each user identification; and the service group is used for determining the execution service under the authorization authority corresponding to the account identifier.
In the embodiment, the authority of each account identifier is assigned by grouping each account identifier in the account list, so that the account identifiers in the service group have the service processing authority of the corresponding group, and thus, the processing safety of each service under authorization is ensured.
In one embodiment, before generating the process instance corresponding to the target service, the method further includes:
judging whether a process instance corresponding to the running target service identifier exists under a target account or not according to the target service identifier corresponding to the target service;
if the running process example exists, closing a trigger interface of the process creation operation provided in the form of the target service identifier, and outputting prompt information of the process example corresponding to the target service identifier;
and if the running process example does not exist, executing the step of generating the process example corresponding to the target service.
In this embodiment, when performing a triggering operation on a service flow instance, a current service triggering state is determined first, if a flow creation option of a current target service is in an un-running state, the target service is processed in response to the triggering operation, if the flow creation option of the current target service is in a triggered state, that is, it is determined that the triggering operation is triggered twice or multiple times according to a target service identifier of a running flow instance, the current flow creation option is grayed, and further, an operation of triggering the flow instance again is not processed, and a user prompt message is provided at the same time, so as to prevent an execution process of an original flow instance from being affected due to a user error touch.
In one embodiment, the sequentially executing the task instances according to the execution logical relationship of the task nodes includes:
reading service data of a current task instance from a database according to a preset execution logic relation in the target service, and executing the current task instance based on the service data;
after the execution of the task instances is completed, the intermediate processing results of the task instances are written into a master database, and the master database carries out data synchronization to the slave database.
In one embodiment, the method further comprises:
and storing the executed logic relation and the intermediate processing result between the executed task instances in the process instance as an executed business processing record so as to be used for carrying out progress query and/or intermediate result query on the process instance.
In this embodiment, after suspending the currently executed process instance, the computer device processes the execution logic relationship and the intermediate processing result of each task instance that has been executed and completed in the process instance, and stores the service processing record of the processed task instance, so that the process instance may be continued or the information of the task instance and the intermediate result in the processed process may be queried.
In one embodiment, the method further comprises:
responding to a log downloading operation of a target task instance, and determining a task instance identifier corresponding to the target task instance;
and acquiring a log storage path of the target task instance according to the task instance identifier, and reading and downloading log information corresponding to the target service instance based on the log storage path.
In this embodiment, each task instance included in the process instance provides an entry that can perform log query, and a user can trigger log query through each entry that performs log query, and further download the log query to a corresponding target task instance based on a queried log saving path.
In a second aspect, the present application further provides a service processing apparatus. The device comprises:
the first generation module is used for responding to the process creation operation of the target service and generating a process instance corresponding to the target service;
a second generating module, configured to generate a task instance corresponding to each task node included in the target service by executing the process instance, and sequentially execute the task instance according to an execution logic relationship of each task node;
and the configuration module is used for responding to the node configuration operation of the task instance, determining a target task instance which is currently executed in the execution logic relationship, suspending the target task instance and performing configuration processing on the target task instance.
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 implementing the following steps when executing the computer program:
responding to the process creating operation of the target business, and generating a process instance corresponding to the target business;
generating a task instance corresponding to each task node contained in the target service by executing the process instance, and sequentially executing the task instance according to the execution logic relationship of each task node;
and responding to the node configuration operation of the task instance, determining a target task instance currently being executed in the execution logic relation, suspending the target task instance, and performing configuration processing on the target task instance.
In a fourth aspect, the present application further 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 the process creating operation of the target business, and generating a process instance corresponding to the target business;
generating a task instance corresponding to each task node contained in the target service by executing the process instance, and sequentially executing the task instance according to the execution logic relationship of each task node;
and responding to the node configuration operation of the task instance, determining a target task instance currently being executed in the execution logic relation, suspending the target task instance, and performing configuration processing on the target task instance.
In a fifth aspect, the present application further provides a computer program product. The computer program product comprising a computer program which when executed by a processor performs the steps of:
responding to the process creating operation of the target business, and generating a process instance corresponding to the target business;
generating task instances corresponding to the task nodes contained in the target service by executing the process instances, and sequentially executing the task instances according to the execution logic relationship of the task nodes;
and responding to the node configuration operation of the task instance, determining a target task instance currently being executed in the execution logic relation, suspending the target task instance, and performing configuration processing on the target task instance.
The service processing method, the service processing device, the computer equipment, the storage medium and the computer program product respond to the process creation operation of the target service and generate the process instance corresponding to the target service; generating a task instance corresponding to each task node contained in the target service by executing the process instance, and sequentially executing the task instance according to the execution logic relationship of each task node; and responding to the configuration operation of the target task instance, determining the currently executed target task instance in the execution logic relationship, suspending the target task instance, and performing configuration processing on the target task instance. By adopting the method, the execution logic relation of the target service is determined by creating the process instance and the task instance of the target service, the target task instance which is currently executed is determined based on the execution logic relation, the suspension and the configuration of the processing process of the target service are realized, and the operation flexibility of the whole service processing process is improved.
Drawings
Fig. 1 is a schematic flow chart of a service processing method in an embodiment;
FIG. 2 is a flow diagram that illustrates the steps of a target business under authorization displayed on a business process interface in one embodiment;
FIG. 3 is a flow diagram illustrating the steps of grouping account transactions in one embodiment;
FIG. 4 is a flowchart illustrating the step of determining whether a process creation operation is triggered for the first time in one embodiment;
FIG. 5 is a flowchart illustrating steps of performing task instances using a database isolation method according to an embodiment;
FIG. 6 is a flowchart of the log query step in one embodiment;
FIG. 7 is a flow diagram illustrating an example of a method for business processing in one embodiment;
FIG. 8 is a block diagram of a traffic processing apparatus in one embodiment;
FIG. 9 is a diagram of an internal structure of a computer device in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
In one embodiment, as shown in FIG. 1, businesses have benefited from the big data age. With the increasing abundance of business data, the implementation of ETL (Extract-Transform-Load) by multi-type task nodes is inevitable. Therefore, the present application provides a service processing method, and the present embodiment is illustrated by applying the method to a terminal, it can be understood that the method can also be applied to a server, and can also be applied to a system including the terminal and the server, and is implemented by interaction between the terminal and the server. In this embodiment, the method includes the steps of:
and 102, responding to the process creating operation of the target business, and generating a process instance corresponding to the target business.
In implementation, flow creation options of multiple services are displayed in a terminal display page of the computer device, and all services corresponding to the flow creation options of each service are services for which a login account of the terminal has processing authority. And then, the user logs in the account, can select a target flow creating option in the display page through selection operations such as check and click, and generate a flow creating operation instruction of the target service, and further, the background responds to the flow creating operation instruction of the target service and generates a flow instance corresponding to the target service according to a pre-stored flow definition (namely, a flow execution strategy).
The process instance corresponding to the target service is initiated by a user, and is based on a product generated when the process definition corresponds to the program execution, and is used for identifying the processing state of the process task.
Optionally, each user initiates the process creation, and a process instance is generated. Specifically, in this embodiment of the present application, a computer system deployed with a service processing method may support multiple users (in a cluster manner) to simultaneously initiate a flow creation request for a same target service, that is, multiple users (for example, a user a, a user B, and a user C) may simultaneously initiate a flow creation request for a same target service P on respective terminal devices, and in the service processing system, a respective flow instance is generated for each user, that is, a flow instance PA corresponding to the user a, a flow instance PB corresponding to the user B, and a flow instance PC corresponding to the user C, and the flow instances of each user may not interfere with each other in an execution process, so that respective resource isolation is achieved.
And 104, generating task instances corresponding to the task nodes contained in the target service by executing the process instances, and sequentially executing the task instances according to the execution logic relationship of the task nodes.
In implementation, the computer device generates a task instance corresponding to each task node based on the node definition of each task node in the target service flow by executing the flow instance of the target service, and then the computer device sequentially executes each task instance according to the execution logic relationship of each task node in the target service. And finally, the computer equipment acquires the service data corresponding to each task instance in the target service by executing the task instance, and processes the service data to obtain a processing result (which can also be called an intermediate calculation result) processed by each task instance.
The execution process of each task instance may be used to identify the execution state of a specific task node.
And 106, responding to the configuration operation of the target task instance, determining the currently executed target task instance in the execution logic relation, suspending the target task instance, and configuring the target task instance.
In implementation, when a target service is executed, the computer device implements processing tasks such as extraction, conversion, and loading of service data by running a process instance of the target service and task instances included in the process instance and ordered according to an execution logical relationship. Furthermore, in the process of executing the target business process, when a task instance corresponding to a certain task node is being executed, a user wants to perform node configuration on the task instance, the user can trigger node configuration operation through a node configuration option provided by a display page, a background of the computer device responds to the configuration operation on the target task instance, a target task instance (namely, a task instance to be configured) triggered by the user is located in an execution logic relationship of each task instance contained in the whole process instance, and then the computer device performs configuration processing on the target task instance.
The method comprises the steps that a task node instance is displayed on a service processing interface, and a task node configuration option is displayed on each task instance in the service processing interface.
Optionally, after the target task instance is configured, the computer device may continue to process the incompletely completed flow instances based on the execution logic relationship pre-stored in the flow instances, and when all task instances in the flow instances are executed, the target service processing is completed.
In the service processing method, the computer device responds to the process creation operation of the target service and generates the process instance corresponding to the target service. And then, the computer equipment generates task examples corresponding to the task nodes contained in the target service by executing the process examples, and then, the computer equipment starts to sequentially execute the task examples according to the execution logic relation of the task nodes. In the execution process of the task instance, the computer device responds to the configuration operation of the target task instance, determines the currently executed target task instance according to the execution logic relation, and then suspends the target task instance and performs configuration processing on the target task instance in order to perform corresponding configuration operation on the target task instance. By adopting the method, the execution logic relation of the target service is determined by creating the process instance and the task instance of the target service, the target task instance which is currently executed is determined based on the execution logic relation, the suspension and the configuration of the processing process of the target service are realized, and the operation flexibility of the whole service processing process is improved.
In one embodiment, as shown in fig. 2, before step 102, each account has different business permissions corresponding to the business processing platform, so that the business processing platform displays processable businesses under the business processing permissions, the business processing method further includes the following steps:
step 202, acquiring an account identifier of the target account, and determining a service set corresponding to a service group to which the account identifier belongs.
In implementation, the computer device obtains an account identifier of a target account, determines a service group corresponding to the account identifier according to a service attribute of the account identifier, and each service group corresponds to a service set executable by the service group. Further, the computer device may determine a service set corresponding to the account identifier. Specifically, the account identifier of the target account may be a user name, an account ID, and the like of the account, which is not limited in the embodiment of the present application. And, the account identifier also carries service attribute information, for example, the account identifier is: s0121, service attribute information: and (5) research and development. The service corresponding to the service identifier is grouped into a research and development group, the research and development group contains all account identifiers with the same service attribute, and the determined research and development group corresponds to a service set under an authorization authority, that is, the service set contains executable services under multiple research and development authorities.
Optionally, the corresponding relationship between the account identifier and the service attribute may be pre-stored in the database, and when the user logs in the service processing platform system through the target account, the corresponding target service attribute is queried and determined in the database based on the account identifier.
And 204, outputting and displaying options created by the service identification generation flows corresponding to the services contained in the service set in the service processing interface.
In implementation, in the service processing interface, when a user logs in the service processing system based on a target account, the computer device generates, in the form of a corresponding service identifier, a flow creation option for each service included in a set of services determined by the target account in the service processing interface, and outputs and displays the generated flow creation option. Furthermore, the user can create a corresponding target process according to the process creation option provided in the service processing interface.
In this embodiment, for the account identifier of each account, the process creation option of each service corresponding to the account identifier is displayed in the service processing interface displayed by the service processing system logged in, so that authority management for a big data processing task (that is, a general name of each service processing task in the service processing system) is realized, and the security of service processing is improved.
In one embodiment, as shown in fig. 3, in the service processing system, an administrator (or referred to as an administrative user) may perform authority management on each user account logged in the service processing system in a user management interface, that is, the specific processing procedure of determining the service set corresponding to the account identifier in step 202 includes:
step 302, displaying the account list and the preset service group in the user management interface.
The account list comprises a plurality of account identifications.
In an implementation, a computer device displays an account list and a preset business grouping in a user management interface. For example, the account list displayed in the user management interface includes account identifiers of 10 login users, which are S01201, S01202, S01203, S01204 … S01210, respectively. And the user management interface further includes preset service groups and the like, for example, the preset service groups include: the data extraction group, the data conversion group, the data loading group and the like, and the account list and the preset service group are not limited in the embodiment of the application.
Step 304, responding to the configuration grouping operation of the account identifier, and determining the service group to which each user identifier belongs.
The service group is used for determining the execution service under the authorization authority corresponding to the account identification.
In implementation, for a service attribute carried by each account identifier, the account identifiers are grouped in a configuration manner, for example, the account identifiers: s01202 service attribute: research personnel configure and group the account identifier S01202, and a user may perform group processing on each account identifier in an account list by dragging or checking an account identifier option in a service processing interface, and then a background of the computer device determines a service group to which each account identifier belongs in response to the configuration and group operation on the account identifier.
Optionally, each service group corresponds to a service set, and an account included in the characterization service group is deployed to execute a service in the service set, and further, when a certain service in the service set is processed, an operation right may be further determined for all accounts included in the service group. Specifically, each account identifier is matched with a corresponding user role identifier, and when a user role corresponding to each account is determined, the computer device may determine an authorization right for each account according to the user role corresponding to each account, for example, for an account a and an account B included in the same service group S, for an executable service centralized target service H of the service group S, the role identifier corresponding to the account a is a developer, the right determined by the account a is capable of performing data ETL processing, and the role corresponding to the account B is a tester, and the right determined by the account B is capable of performing query and test of an intermediate processing result.
In this embodiment, the authority classification of each account identifier is realized by performing group processing on each account identifier in the account list, so that the account identifiers in the service group have service processing authorities corresponding to the group, thereby ensuring the processing security of each service under authorization.
In an embodiment, as shown in fig. 4, a business processing method in the present application provides a graying function for a flow creation option, that is, after a user performs a trigger operation on a target business for flow creation, when the target business is not processed and completed this time, the flow creation option cannot start again, before generating a flow instance corresponding to the target business in step 102, the method further includes:
step 402, according to the target service identifier corresponding to the target service, judging whether a process instance corresponding to the running target service identifier exists under the target account.
In implementation, in response to a process creation operation on a target service, according to a service identifier of the target service carried in the process creation operation, querying and judging whether a process instance of the target service identical to the target service identifier is running in each process of background running processing.
And step 404, if the running process example exists, closing a trigger interface of the process creation operation provided in the form of the target service identifier, and outputting prompt information of the process example corresponding to the existing target service identifier.
In implementation, if there is a running process instance, it indicates that, on the device, a user under a current account performs secondary or multiple triggering on a process creation option of a target service, and in order to not affect a processing process of a process instance in which operation is triggered for the first time, for the secondary or multiple triggering operation of the user, the computer device closes a trigger interface of the process creation operation, performs a graying operation on the process creation option output and displayed in the form of a target service identifier, so that the computer device cannot process the process creation operation of the target service that is triggered for the second time or multiple times, and then outputs prompt information of the process instance corresponding to the target service identifier that exists, so as to prompt the current user that the operation is triggered for two times or multiple times.
Optionally, in the execution process of the target service, if the running state and the running result of each task instance included in the process instance need to be queried, two query modes are provided in the present application, specifically, a process instance query interface and a task instance query interface are respectively provided in the service processing system, and further, the two query modes are as follows:
in a first mode, a user can trigger a call flow instance query interface to acquire a current running state of a flow instance and all obtained intermediate running results of a task instance, wherein the current running state of the flow instance contains information of the currently executed task instance, so that the user can acquire the running state of the task instance without calling the task instance query interface to perform node-by-node query jumping, namely without performing processing such as node process jumping, and service query logic is simplified.
And in the second mode, the user can also trigger and call each task instance query interface, and sequentially query the running state and the running result of each task instance through the pre-stored execution logic relation.
In summary, the embodiment of the present application does not limit the manner in which the user performs various example queries.
Step 406, if there is no running process instance, executing the step of generating the process instance corresponding to the target service.
In implementation, if there is no running process instance, which indicates that the current operation is a process creation operation triggered for the first time on the target service, the computer device generates a process instance corresponding to the target service in response to the process creation operation, that is, executes the content of step 102, and since step 102 has been described in detail above, the processing procedure of step 102 in the embodiment of the present application is not described again.
In this embodiment, when performing a triggering operation on a service flow instance, a current service triggering state is determined first, if a flow creation option of a current target service is in an unoperated state, the target service is processed in response to the triggering operation, if the flow creation option of the current target service is in a triggered state, that is, it is determined that the triggering operation is triggered twice or many times according to a target service identifier of the running flow instance, the current flow creation option is grayed out, and further, the operation of triggering the flow instance again is not processed, and a user prompt message is provided at the same time, so as to prevent an execution process of an original flow instance from being affected due to a user error touch.
In an embodiment, as shown in fig. 5, in the present application, in the processing process of the task instance, data is obtained and written by using a database read-write separation mechanism, so as to implement high concurrency of cluster deployment, for example, in step 104, the task instances are sequentially executed according to the execution logic relationship of each task node, and the specific processing process includes:
step 502, according to the preset execution logic relationship in the target service, reading the service data of the current task instance from the database, and executing the current task instance based on the service data.
In implementation, two types of databases are deployed in advance, namely a master database and a slave database, a large amount of service data are stored in the slave database, and data sharing is realized between the master database and the slave database based on a master-slave data sharing mechanism.
The process instance corresponding to the target service comprises task instances corresponding to a plurality of task nodes, the computer device executes the task instances in sequence according to the execution logic relation among the task nodes, further, when the current task instance is processed, the service data corresponding to the current task instance can be obtained from a pre-deployed slave database, and further, the computer device executes the service data process of the current task instance based on the obtained service data.
Step 504, after the task instance is executed, writing the intermediate processing result of the task instance into the master database, and performing data synchronization from the master database to the slave database.
In implementation, after the current task instance is executed, the computer device writes the intermediate processing result of the task instance into a pre-deployed master database, the master database stores the intermediate processing result obtained by processing each task instance, and further, the master database performs data synchronization to the slave database.
In the embodiment, a database read-write separation mechanism is adopted to read and write the service data in the target service, so that the data processing pressure of the database is dispersed, and the high-concurrency running processing of multiple devices (cluster deployment) is supported.
In an embodiment, in the execution process of the overall process instance, when a task instance currently being executed needs to be configured, a target task instance currently being executed needs to be paused, and after the target task instance is paused, the method further includes:
and storing the execution logic relationship and the intermediate processing result between the executed task instances in the process instance as an executed business processing record so as to be used for carrying out progress query and/or intermediate result query on the process instance.
In implementation, for a process instance of an incomplete target business, the task instance executed by the process instance is not invalidated or clarified, but the computer device stores the execution logic relationship and the intermediate processing result of the executed task instance in the process instance as an executed business processing record for progress query and/or intermediate result query of the process instance and facilitates the continued processing of the incomplete process instance.
In this embodiment, after suspending the currently executed process instance, the computer device processes the execution logic relationship and the intermediate processing result of each task instance that has been executed and completed in the process instance, and stores the service processing record of the processed task instance, so that the process instance may be continued or the information of the task instance and the intermediate result in the processed process may be queried.
In one embodiment, as shown in fig. 6, in the business processing system, for a process instance that has been completed by execution, the computer device may perform log query on each task instance therein, or for a process instance that is being executed, may suspend the task instance that is being executed in the process instance, and further perform log query on the task instance that has been executed in the process instance, specifically, the business processing method further includes:
step 602, responding to the log downloading operation of the target task instance, and determining a task instance identifier corresponding to the target task instance.
In implementation, a user triggers a log downloading operation for a certain task instance (namely, a target task instance) in a process instance, and a computer device determines a task instance identifier corresponding to the target task instance in response to the log downloading operation for the target task instance.
And step 604, acquiring a log saving path of the target task instance according to the task instance identifier, and reading and downloading log information corresponding to the target service instance based on the log saving path.
In implementation, the log information generated in the process of executing the process instances and the task instances is cached in a preset storage space of a pre-deployed database, and the log storage path of each process instance and the log storage path of each task instance are identified based on the service identifier corresponding to each process instance and the task instance identifier corresponding to each task instance.
In this embodiment, each task instance included in the process instance provides an entry that can perform log query, and a user can trigger log query through each entry that performs log query, and further download the log query to a corresponding target task instance based on a queried log saving path.
In an embodiment, an example of a service processing method is provided, as shown in fig. 7, specifically including the following steps:
step 701, responding to a flow creating request of a target service initiated by multiple users at the same time, generating a flow instance corresponding to the target service for each user, and feeding back a flow instance creating result to a terminal of each user.
Step 702, executing each process instance respectively, and generating each task instance corresponding to the target service.
And 703, sequentially executing all task instances contained in each process instance according to the execution logic relationship contained in the target service.
Step 704, detecting the execution state of each task instance, and if all task instances included in each process instance are executed successfully, completing the execution of the target business process triggered by each user.
In this embodiment, based on the K8S cluster deployment, multiple users simultaneously trigger operations, and further, based on the trigger on each user, a process instance and a task instance are respectively created, the process engine API is used to distribute process pressure in a micro-service manner, and the multiple local mechanisms of K8S support the automatic cluster deployment of the process instance.
It should be understood that, although the steps in the flowcharts related to the embodiments as described above are sequentially displayed as indicated by arrows, the steps are not necessarily performed sequentially as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a part of the steps in the flowcharts related to the embodiments described above may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the execution order of the steps or stages is not necessarily sequential, but may be rotated or alternated with other steps or at least a part of the steps or stages in other steps.
Based on the same inventive concept, the embodiment of the present application further provides a service processing apparatus for implementing the service processing method. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme described in the above method, so the specific limitations in one or more service processing device embodiments provided below may refer to the limitations on the service processing method in the foregoing, and details are not described here.
In one embodiment, as shown in fig. 8, there is provided a traffic processing apparatus 800, including: a first generation module 810, a second generation module 820, and a configuration module 830, wherein:
a first generating module 810, configured to generate a flow instance corresponding to a target service in response to a flow creating operation for the target service;
a second generating module 820, configured to generate task instances corresponding to task nodes included in the target service by executing the process instances, and sequentially execute the task instances according to the execution logic relationship of the task nodes;
the configuration module 830 is configured to determine, in response to a configuration operation on a target task instance, a target task instance currently being executed in the execution logic relationship, suspend the target task instance, and perform configuration processing on the target task instance.
In one embodiment, the service processing apparatus 800 further includes:
the determining module is used for acquiring the account identifier of the target account and determining a service set corresponding to the service group to which the account identifier belongs;
and the display module is used for outputting and displaying options created by the service identification generation flows corresponding to the services contained in the service set in the service processing interface.
In one embodiment, the determining module is specifically configured to display an account list and a preset service group in a user management interface; the account list comprises a plurality of account identifications;
responding to the configuration grouping operation of the account identification, and determining the business grouping of each user identification; the service group is used for determining the execution service under the authorization authority corresponding to the account identifier.
In one embodiment, the service processing apparatus 800 further includes:
the judging module is used for judging whether a process example corresponding to the running target service identifier exists under the target account or not according to the target service identifier corresponding to the target service;
the system comprises a grey setting module, a trigger module and a processing module, wherein the grey setting module is used for closing a trigger interface of flow establishing operation provided in a target service identification form and outputting prompt information of a flow example corresponding to a target service identification if the running flow example exists;
and the first generating module is used for executing the step of generating the process instance corresponding to the target service if the running process instance does not exist.
In one embodiment, the second generating module 820 further comprises:
the reading submodule is used for reading the service data of the current task instance from the database according to the preset execution logic relation in the target service and executing the current task instance based on the service data;
and the writing submodule is used for writing the intermediate processing result of the task instance into the master database after the task instance is executed, and carrying out data synchronization from the master database to the slave database.
In one embodiment, the service processing apparatus 800 further includes:
and the recording module is used for storing the execution logic relation and the intermediate processing result between the executed task instances in the process instance as an executed business processing record so as to be used for carrying out progress query and/or intermediate result query on the process instance.
In one embodiment, the service processing apparatus 800 further includes:
the determining module is used for responding to log downloading operation of the target task instance and determining a task instance identifier corresponding to the target task instance;
and the downloading module is used for acquiring a log saving path of the target task instance according to the task instance identifier, and reading and downloading log information corresponding to the target service instance based on the log saving path.
The modules in the service processing device can be wholly or partially implemented by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 9. The computer device includes a processor, a memory, a communication interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless communication can be realized through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement a business process method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 9 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory having a computer program stored therein and a processor that when executing the computer program performs the steps of:
responding to the process creating operation of the target service, and generating a process instance corresponding to the target service;
generating a task instance corresponding to each task node contained in the target service by executing the process instance, and sequentially executing the task instance according to the execution logic relationship of each task node;
and responding to the node configuration operation of the task instance, determining a target task instance currently being executed in the execution logic relation, suspending the target task instance, and performing configuration processing on the target task instance.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
acquiring an account identifier of a target account, and determining a service set corresponding to a service group to which the account identifier belongs;
and in a service processing interface, outputting and displaying options created by the service identifier generation flow corresponding to each service contained in the service set.
In one embodiment, the processor when executing the computer program further performs the steps of:
displaying an account list and a preset service group in a user management interface; the account list comprises a plurality of account identifications;
responding to the configuration grouping operation of the account identifications, and determining the business grouping of each user identification; and the service group is used for determining the execution service under the authorization authority corresponding to the account identification.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
judging whether a process instance corresponding to the running target service identifier exists under the target account or not according to the target service identifier corresponding to the target service;
if the running process example exists, closing a trigger interface of the process creation operation provided in the form of the target service identifier, and outputting prompt information of the process example corresponding to the existing target service identifier;
and if the running process instance does not exist, executing the step of generating the process instance corresponding to the target service.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
reading the service data of the current task instance from the database according to the preset execution logic relation in the target service, and executing the current task instance based on the service data;
after the execution of the task instance is completed, the intermediate processing result of the task instance is written into the master database, and the master database carries out data synchronization to the slave database.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
and storing the execution logic relationship and the intermediate processing result between the executed task instances in the process instance as an executed business processing record so as to be used for carrying out progress query and/or intermediate result query on the process instance.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
responding to the log downloading operation of the target task instance, and determining a task instance identifier corresponding to the target task instance;
and acquiring a log saving path of the target task instance according to the task instance identifier, and reading and downloading log information corresponding to the target service instance based on the log saving path.
In an embodiment, a computer-readable storage medium is provided, on which a computer program is stored which, when being executed by a processor, carries out the steps of the above-mentioned method embodiments.
In an embodiment, a computer program product is provided, comprising a computer program which, when being executed by a processor, carries out the steps of the above-mentioned method embodiments.
In an embodiment, a computer program product is provided, comprising a computer program which, when being executed by a processor, carries out the steps of the above-mentioned method embodiments.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, databases, or other media used in the embodiments provided herein can include at least one of non-volatile and volatile memory. The nonvolatile Memory may include a Read-Only Memory (ROM), a magnetic tape, a floppy disk, a flash Memory, an optical Memory, a high-density embedded nonvolatile Memory, a resistive Random Access Memory (ReRAM), a Magnetic Random Access Memory (MRAM), a Ferroelectric Random Access Memory (FRAM), a Phase Change Memory (PCM), a graphene Memory, and the like. Volatile Memory can include Random Access Memory (RAM), external cache Memory, and the like. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others. The databases referred to in various embodiments provided herein may include at least one of relational and non-relational databases. The non-relational database may include, but is not limited to, a block chain based distributed database, and the like. The processors referred to in the embodiments provided herein may be general purpose processors, central processing units, graphics processors, digital signal processors, programmable logic devices, quantum computing based data processing logic devices, etc., without limitation.
All possible combinations of the technical features in the above embodiments may not be described for the sake of brevity, but should be considered as being within the scope of the present disclosure as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, and these are all within the scope of protection of the present application. Therefore, the protection scope of the present application shall be subject to the appended claims.

Claims (10)

1. A method for processing a service, the method comprising:
responding to the process creating operation of the target business, and generating a process instance corresponding to the target business;
generating task instances corresponding to the task nodes contained in the target service by executing the process instances, and sequentially executing the task instances according to the execution logic relationship of the task nodes;
and responding to the node configuration operation of the task instance, determining a target task instance currently executed in the execution logic relationship, suspending the target task instance, and performing configuration processing on the target task instance.
2. The method of claim 1, wherein prior to the responding to the flow creation operation for the target business, the method further comprises:
acquiring an account identifier of a target account, and determining a service set corresponding to a service group to which the account identifier belongs;
and in a service processing interface, outputting and displaying options created by the service identification generation flow corresponding to each service contained in the service set.
3. The method according to claim 2, wherein the obtaining the account identifier of the target account and determining the service set corresponding to the service group to which the account identifier belongs comprises:
displaying an account list and a preset service group in a user management interface; the account list comprises a plurality of account identifications;
responding to the configuration grouping operation of the account identifications, and determining the service grouping of each user identification; and the service group is used for determining the execution service under the authorization authority corresponding to the account identifier.
4. The method of claim 1, wherein before generating the process instance corresponding to the target service, the method further comprises:
judging whether a process instance corresponding to the running target service identifier exists under a target account or not according to the target service identifier corresponding to the target service;
if the running process example exists, closing a trigger interface of the process creation operation provided in the form of the target service identifier, and outputting prompt information of the process example corresponding to the target service identifier;
and if the running process instance does not exist, executing the step of generating the process instance corresponding to the target service.
5. The method according to claim 1, wherein said executing the task instances in sequence according to the execution logical relationship of the task nodes comprises:
reading service data of a current task instance from a database according to a preset execution logic relation in the target service, and executing the current task instance based on the service data;
after the execution of the task instances is completed, the intermediate processing results of the task instances are written into a master database, and the master database carries out data synchronization to the slave database.
6. The method of claim 1, further comprising:
and storing the executed logic relationship and the intermediate processing result between the executed task instances in the process instance as an executed business processing record so as to be used for carrying out progress query and/or intermediate result query on the process instance.
7. The method of claim 1, further comprising:
responding to a log downloading operation of a target task instance, and determining a task instance identifier corresponding to the target task instance;
and acquiring a log storage path of the target task instance according to the task instance identifier, and reading and downloading log information corresponding to the target service instance based on the log storage path.
8. A traffic processing apparatus, characterized in that the apparatus comprises:
the first generation module is used for responding to the process creation operation of the target service and generating a process instance corresponding to the target service;
a second generating module, configured to generate a task instance corresponding to each task node included in the target service by executing the process instance, and sequentially execute the task instance according to an execution logic relationship of each task node;
and the configuration module is used for responding to the configuration operation of the target task instance, determining the currently executed target task instance in the execution logic relationship, suspending the target task instance and performing configuration processing on the target task instance.
9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method of any of claims 1 to 7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
CN202210221970.9A 2022-03-07 2022-03-07 Service processing method, device, computer equipment and storage medium Pending CN114756293A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210221970.9A CN114756293A (en) 2022-03-07 2022-03-07 Service processing method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210221970.9A CN114756293A (en) 2022-03-07 2022-03-07 Service processing method, device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114756293A true CN114756293A (en) 2022-07-15

Family

ID=82325378

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210221970.9A Pending CN114756293A (en) 2022-03-07 2022-03-07 Service processing method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114756293A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117539451A (en) * 2024-01-10 2024-02-09 杭州新中大科技股份有限公司 Flow execution method, device, electronic equipment and storage medium

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101334865A (en) * 2007-06-28 2008-12-31 国际商业机器公司 Working stream user interface creation method and creator
US20090049422A1 (en) * 2007-05-10 2009-02-19 Joseph Hage Method and system for modeling and developing a software application
CN101861570A (en) * 2007-10-19 2010-10-13 通用电气智能平台有限公司 Systems and methods for debugging multiple workflow instances
CN105144092A (en) * 2013-03-14 2015-12-09 微软技术许可有限责任公司 Software release workflow management
CN105531658A (en) * 2013-06-06 2016-04-27 微软技术许可有限责任公司 Role tailored workspace
CN105988815A (en) * 2015-03-04 2016-10-05 银联商务有限公司 Business process development method and system
CN107038066A (en) * 2017-05-09 2017-08-11 吉林大学 A kind of Activity Calculation system based on Web
US20180081710A1 (en) * 2016-09-16 2018-03-22 Oracle International Corporation Controllable workflow in software configuration automation
CN111475564A (en) * 2020-04-13 2020-07-31 恒安嘉新(北京)科技股份公司 Streaming data processing method, system, computer equipment and storage medium
CN112668295A (en) * 2021-01-15 2021-04-16 云南电网有限责任公司迪庆供电局 Management system and method based on user-defined form and Activiti workflow
CN113674135A (en) * 2021-08-03 2021-11-19 北京三易思创科技有限公司 Calculation method for realizing CALPUFF high performance based on workflow
CN113778527A (en) * 2021-01-25 2021-12-10 北京沃东天骏信息技术有限公司 Method and apparatus for controlling state of pipeline task

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090049422A1 (en) * 2007-05-10 2009-02-19 Joseph Hage Method and system for modeling and developing a software application
CN101334865A (en) * 2007-06-28 2008-12-31 国际商业机器公司 Working stream user interface creation method and creator
CN101861570A (en) * 2007-10-19 2010-10-13 通用电气智能平台有限公司 Systems and methods for debugging multiple workflow instances
CN105144092A (en) * 2013-03-14 2015-12-09 微软技术许可有限责任公司 Software release workflow management
CN105531658A (en) * 2013-06-06 2016-04-27 微软技术许可有限责任公司 Role tailored workspace
CN105988815A (en) * 2015-03-04 2016-10-05 银联商务有限公司 Business process development method and system
US20180081710A1 (en) * 2016-09-16 2018-03-22 Oracle International Corporation Controllable workflow in software configuration automation
CN107038066A (en) * 2017-05-09 2017-08-11 吉林大学 A kind of Activity Calculation system based on Web
CN111475564A (en) * 2020-04-13 2020-07-31 恒安嘉新(北京)科技股份公司 Streaming data processing method, system, computer equipment and storage medium
CN112668295A (en) * 2021-01-15 2021-04-16 云南电网有限责任公司迪庆供电局 Management system and method based on user-defined form and Activiti workflow
CN113778527A (en) * 2021-01-25 2021-12-10 北京沃东天骏信息技术有限公司 Method and apparatus for controlling state of pipeline task
CN113674135A (en) * 2021-08-03 2021-11-19 北京三易思创科技有限公司 Calculation method for realizing CALPUFF high performance based on workflow

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117539451A (en) * 2024-01-10 2024-02-09 杭州新中大科技股份有限公司 Flow execution method, device, electronic equipment and storage medium
CN117539451B (en) * 2024-01-10 2024-04-12 杭州新中大科技股份有限公司 Flow execution method, device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
US10540173B2 (en) Version control of applications
US20150006608A1 (en) Networked solutions integration using a cloud business object broker
JP2017514218A (en) Running third-party applications
CN116450107B (en) Method and device for secondary development of software by low-code platform and electronic equipment
CN115858213A (en) Task scheduling checking method and device, computer equipment and storage medium
CN114756293A (en) Service processing method, device, computer equipment and storage medium
CN114356504A (en) Data migration method and device in cluster, electronic equipment and storage medium
CN116467975B (en) Data processing method, device, electronic equipment and storage medium
CN114006815A (en) Automatic deployment method and device for cloud platform nodes, nodes and storage medium
CN112148709A (en) Data migration method, system and storage medium
CN116561003A (en) Test data generation method, device, computer equipment and storage medium
CN111399999A (en) Computer resource processing method and device, readable storage medium and computer equipment
CN114996955A (en) Target range environment construction method and device for cloud-originated chaotic engineering experiment
CN115098359A (en) Project research and development test method, device, equipment, storage medium and program product
CN114185566A (en) Containerized deployment method, apparatus, computer device and storage medium
CN114722261A (en) Resource processing method and device, electronic equipment and storage medium
CN110297625B (en) Application processing method and device
US20100318849A1 (en) Runtime behavior alteration using behavior injection harness
CN111813842B (en) Data processing method, device, system, equipment and storage medium
CN114528045B (en) Plug-in operation method, device, computer equipment and storage medium
CN114528198A (en) Software automation test method and device, electronic equipment and storage medium
CN117056220A (en) Batch job testing method and device, computer equipment and storage medium
CN116010268A (en) Test environment building method, device, computer equipment and storage medium
CN118152137A (en) Resource allocation method, device, computer equipment, storage medium and product
CN117076292A (en) Webpage testing method and device, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination