CN115860448A - Business process data interaction method and device, electronic equipment and medium - Google Patents

Business process data interaction method and device, electronic equipment and medium Download PDF

Info

Publication number
CN115860448A
CN115860448A CN202211539119.7A CN202211539119A CN115860448A CN 115860448 A CN115860448 A CN 115860448A CN 202211539119 A CN202211539119 A CN 202211539119A CN 115860448 A CN115860448 A CN 115860448A
Authority
CN
China
Prior art keywords
service
business
target
data
node
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
CN202211539119.7A
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.)
Zhongdian Jinxin Software Co Ltd
Original Assignee
Zhongdian Jinxin Software 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 Zhongdian Jinxin Software Co Ltd filed Critical Zhongdian Jinxin Software Co Ltd
Priority to CN202211539119.7A priority Critical patent/CN115860448A/en
Publication of CN115860448A publication Critical patent/CN115860448A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The application provides a business process data interaction method, a business process data interaction device, electronic equipment and a medium, which are applied to a distributed business processing platform comprising a business system and a process system which are independent of each other, wherein the method comprises the following steps: the business system sends a business processing request aiming at the target business to the process system; the process system responds to the received service processing request, and when each pre-configured process node starts to process the target service, the process system acquires the service data of the target service again to obtain the service data corresponding to the process node; based on the service data corresponding to the process node, at least part of the process nodes of the process system sequentially process the target service to obtain a service processing result of the target service, and the service processing result is sent to the service system when a preset sending condition is met, so that the process system actively initiates interaction with the service system, reacquires the service data and updates the service data process state, and the interactivity and the convenience in the service processing process are improved.

Description

Business process data interaction method and device, electronic equipment and medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for business process data interaction, an electronic device, and a medium.
Background
With the continuous development of enterprises, business approval in business services is often initiated according to different businesses, the initiated business approval needs to be processed sequentially through a plurality of process nodes in the process services, the processing process is often complex, a process of processing and communicating business data once inevitably involves a plurality of business departments, and the business data is modified and updated for a plurality of times. Nowadays, paperless office is gradually becoming the mainstream, and how to standardize, facilitate and accurately process business through computer technology is a key point for improving business processing efficiency of enterprises. The existing interaction between the process service and the business service is mainly that the business service initiates a request, the process service is responsible for circulation, a callback mechanism between the process service and the business service is not involved, the interactivity and the convenience are not needed, and the business processing efficiency is influenced because the business data according to the process node in the process service is not updated timely when the process node processes the business.
Disclosure of Invention
In view of this, an object of the present application is to provide a method, an apparatus, an electronic device, and a medium for business process data interaction, which can actively interact with a business service when tasks of process nodes are in different states, acquire business data, and update a business data process state, thereby increasing interactivity and convenience in a business processing process.
The business process data interaction method provided by the embodiment of the application is applied to a distributed business processing platform, the distributed business processing platform comprises a business system and a process system which are independent of each other, and the method comprises the following steps:
the business system sends a business processing request aiming at the target business to the process system; the service processing request carries the service attribute of the target service;
the process system responds to the received service processing request, and when each pre-configured process node starts to process the target service, the process system acquires the service data of the target service again to obtain the service data corresponding to the process node; the service data comprises service attributes and/or service flow states of the target service when the target service is started to process the target service at a flow node; the service process state is the result of the last process node processing the target service;
based on the service data corresponding to the process node, at least part of the process nodes of the process system sequentially process the target service to obtain a service processing result of the target service, and the service processing result is sent to the service system when a preset sending condition is met.
In some embodiments, in the method for interacting service process data, when a target service is located in a first process node configured in advance, the reacquiring service data of the target service from a service system to obtain service data corresponding to the process node includes:
when a first preset process node starts to process the target service, sending an acquisition request for acquiring service data to a service system;
after receiving the acquisition request, the service system sends the service attribute of the target service in the service system to the process system;
and the flow system takes the service attribute obtained again as the service data of the target service.
In some embodiments, in the method for service flow data interaction, when a target service is located in a pre-configured flow node other than a first flow node, the reacquiring service data of the target service from a service system to obtain service data corresponding to the flow node includes:
when other preset process nodes start processing the target service, sending an acquisition request for acquiring service data to a service system;
after receiving the acquisition request, the service system sends the service attribute and the service process state of the target service in the service system to the process system;
and the process system takes the acquired service attribute and the acquired service process state as the service data of the target service.
In some embodiments, in the method for service flow data interaction, the process node sequentially processes the target service based on the service data corresponding to the process node, including:
the process node processes the target service based on the service data corresponding to the process node and determines a service process state corresponding to the process node;
and when the process node finishes processing the target service, the process system sends the service process state corresponding to the process node to a service system so that the service system takes the service process state and the service attribute as service data of the next process node.
In some embodiments, in the method for interacting business process data, the business system provides an interface for acquiring business data; correspondingly, when the process node starts to process the target service, reacquiring the service data of the target service from the service system includes:
when the process node starts to process the target service, determining a target interface corresponding to the target service from pre-configured interface data;
and the flow system actively calls the target interface and acquires the service data of the target service from the service system again.
In some embodiments, in the method for service flow data interaction, based on the service data corresponding to the flow node, the target service is sequentially processed at least part of the flow nodes of the flow system to obtain a service processing result of the target service, and after the service processing result is sent to the service system when a preset sending condition is met, the method further includes:
and after receiving the service processing result, the service system sends a first response success signal to the process system, so that the process system stops sending the service processing result to the service system after receiving the first response success signal.
In some embodiments, in the service process data interaction method, the service system implements data interaction with a target service between the service system and the process system through a pre-configured conversion protocol.
In some embodiments, a business process data interaction apparatus is further provided, which is applied to a distributed business processing platform, where the distributed business processing platform includes a business system and a process system that are independent of each other, and the apparatus includes:
the first sending module is used for enabling the business system to send a business processing request aiming at the target business to the process system; the service processing request carries the service attribute of the target service;
an obtaining module, configured to enable the process system to respond to the received service processing request, and when each preconfigured process node starts to process the target service, re-obtain service data of the target service from the service system, to obtain service data corresponding to the process node; the service data comprises service attributes and/or service flow states of the target service when the target service is started to process the target service at a flow node; the service process state is the result of the last process node processing the target service;
and the processing module is used for enabling at least part of the process nodes of the process system to sequentially process the target service based on the service data corresponding to the process nodes, and sending a service processing result to the service system when a preset sending condition is met.
In some embodiments, there is also provided an electronic device comprising: the system comprises a processor, a memory and a bus, wherein the memory stores machine readable instructions executable by the processor, the processor and the memory are communicated through the bus when an electronic device runs, and the machine readable instructions are executed by the processor to execute the steps of the business process data interaction method.
In some embodiments, a computer-readable storage medium is further provided, on which a computer program is stored, which when executed by a processor performs the steps of the business process data interaction method.
The embodiment of the application provides a method, a device, electronic equipment and a medium for service process data interaction, when a process system processes a target service and each pre-configured process node starts to process the target service, service data of the target service is obtained again from the service system, and latest service data corresponding to the process node is obtained, so that at least part of the process nodes of the process system sequentially process the target service based on the latest service data in the process nodes, a service processing result of the target service is obtained, and the service processing result is sent to the service system when a preset sending condition is met.
Through an interaction mechanism of the process system and the service system, the process system responds to and receives the service processing request, and when each pre-configured process node starts to process the target service, service data of the target service are re-acquired from the service system to obtain service data corresponding to the process node, wherein the service data comprise service attributes and/or service process states of the target service when the process node starts to process the target service; the service process state is the result of the previous process node processing the target service, and when the service attribute of the service system side is changed, the process system acquires the real-time service attribute, so that the problem that the process data is not updated timely due to the change of the service attribute is solved; meanwhile, the process system actively calls the business service interface to update the business process state in the business data, the business process state in the business data is updated in real time when the business process state is changed, and the problem that the state in the business service is not updated timely when the business process state in the process service is changed is solved, so that the business processing efficiency is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained from the drawings without inventive effort.
FIG. 1 is a flowchart illustrating a method for a business process data interaction method according to an embodiment of the present application;
fig. 2 is a flowchart illustrating a method for reacquiring service data of the target service from a service system when the process node starts to process the target service according to the embodiment of the present application;
fig. 3 is a flowchart illustrating a method for reacquiring service data of the target service from a service system when another process node starts to process the target service according to the embodiment of the present application;
fig. 4 is a flowchart illustrating a method for reacquiring service data of the target service from a service system when another process node starts to process the target service according to the embodiment of the present application;
fig. 5 is a flowchart illustrating a method for processing the target service in sequence by the process node based on service data corresponding to the process node in the embodiment of the present application;
fig. 6 is a schematic timing diagram illustrating a business process data interaction method according to an embodiment of the present application;
FIG. 7 is a schematic structural diagram illustrating a business process data interaction apparatus according to an embodiment of the present application;
fig. 8 shows a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it should be understood that the drawings in the present application are for illustrative and descriptive purposes only and are not used to limit the scope of protection of the present application. Additionally, it should be understood that the schematic drawings are not necessarily drawn to scale. The flowcharts used in this application illustrate operations implemented according to some embodiments of the present application. It should be understood that the operations of the flow diagrams may be performed out of order, and steps without logical context may be performed in reverse order or simultaneously. One skilled in the art, under the guidance of this application, may add one or more other operations to, or remove one or more operations from, the flowchart.
In addition, the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present application without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that in the embodiments of the present application, the term "comprising" is used to indicate the presence of the features stated hereinafter, but does not exclude the addition of further features.
With the continuous development of enterprises, business approval is often initiated in business services aiming at different businesses, the initiated business approval needs to be sequentially processed through a plurality of process nodes in the process services, the processing flow is often complex, the process of processing and communicating business data at one time inevitably involves a plurality of business departments, and business data is modified and updated for a plurality of times. Nowadays, paperless office is gradually becoming the mainstream, and how to standardize, facilitate and accurately process business through computer technology is a key point for improving business processing efficiency of enterprises. The existing interaction between the process service and the business service is mainly that the business service initiates a request, the process service is responsible for circulation, a callback mechanism between the process service and the business service is not involved, the interactivity and the convenience are not needed, and the business processing efficiency is influenced because the business data according to the process node in the process service is not updated timely when the process node processes the business.
Here, the service may also be referred to as a service system, and the architecture of the service system is a server or a server cluster. The business service is used for initiating business, and the business comprises business in various companies such as leave, business, reimbursement and the like. The process service may also be referred to as a process system, a process engine, and the like, and the architecture of the process service is a server or a server cluster. The process service is used to process the initiated traffic, e.g., by asking for a false approval, denying the asking for false approval, allowing reimbursement, completing reimbursement, etc. When the process system processes a service, a plurality of process nodes are often needed, for example, a leave request service needs to pass through 4 nodes such as group leader examination and approval, department manager examination and approval, personnel examination and approval, regional personnel examination and approval and the like.
The initiated business examination and approval needs to be processed sequentially through a plurality of process nodes in the process service, the processing flow is often complex, the process of one-time business data processing and communication inevitably involves a plurality of business departments, and business data is modified and updated for a plurality of times. For example, the employee initiates a leave approval for 3 days, but before the group leader approval, the leave approval is modified from 3 days to 4 days in consideration of the actual situation. Or the group leader, when processing leave-asking business of Zhang III through the process system, feels that the 3-day vacation is too long, communicates with Zhang III, and hopes that Zhang III changes leave-asking 3 days into leave-asking 2 days; leave 3 days was modified to leave 2 days after Zusanli consent.
And after the previous process node completes processing, the next process node needs the process state data of the processing result of the previous process node when processing the task. For example, the minister needs to determine the approval result of the process node, the minister, according to the approval result of the group leader on the leave-asking service of zhang. Meanwhile, when any node of the flow service processes the task, the attribute information of the task may be changed, for example, after Zhang III sets the group leader to leave the service for 3 days, the 3-day vacation is changed into the 2-day vacation; at this time, the flow node of the minister should also be determined according to the task attribute of "2-day vacation".
However, in the prior art, the interaction between the process service and the business service is mainly that after the business service initiates a request, the process service directly flows through a plurality of process nodes in the process service, and does not involve a callback mechanism with the business service, for example, after a "leave request for 3 days" service is initiated by three times, the process service sequentially flows through 4 nodes of group leader examination and approval, department manager examination and approval, personnel examination and approval, and regional personnel examination and approval. Even if the attribute parameters of the leave-asking service are modified for various reasons, for example, a 3-day vacation is modified into a 4-day vacation, the flow service side cannot acquire the updated service data; therefore, the existing business process data interaction method is not only lack of interactivity and convenience, but also causes that business data according to which a process node in a process service processes business is not updated timely, and business processing efficiency is affected.
It should be noted that, because the existing service flow data interaction method lacks interactivity and convenience, in the service processing, if the initiator wants to modify the service data, a new service is often required to be initiated again.
Based on this, in the embodiment of the present application, a method, an apparatus, an electronic device, and a medium are provided for service flow data interaction, where when a flow system processes a target service, when each preconfigured flow node starts to process the target service, service data of the target service is obtained again from a service system, and latest service data corresponding to the flow node is obtained, so that at least part of the flow nodes of the flow system sequentially process the target service based on the latest service data in the flow node, and obtain a service processing result of the target service, and when a preset sending condition is met, the service processing result is sent to the service system, through an interaction mechanism between the flow system and the service system, the flow system responds to receive the service processing request, and when each preconfigured flow node starts to process the target service, the service system obtains service data of the target service again, and obtains slave service data corresponding to the flow node, where the service data includes a service attribute and/or a service flow state of the target service when the flow node starts to process the target service; the service process state is the result of the previous process node processing the target service, and when the service attribute of the service system side is changed, the process system acquires the real-time service attribute, so that the problem that the process data is not updated timely due to the change of the service attribute is solved; meanwhile, the process system actively calls the business service interface to update the business process state in the business data, the business process state in the business data is updated in real time when the business process state is changed, and the problem that the state in the business service is not updated timely when the business process state in the traditional process service is changed is solved, so that the business processing efficiency is improved.
Referring to fig. 1, fig. 1 is a flowchart illustrating a method of a business process data interaction method according to an embodiment of the present application; specifically, the business process data interaction method is applied to a distributed business processing platform, the distributed business processing platform comprises a business system and a process system which are independent of each other, and the method comprises the following steps of S101-S103;
s101, the service system sends a service processing request aiming at a target service to a flow system; the service processing request carries the service attribute of the target service;
s102, the process system responds to the received service processing request, and when each pre-configured process node starts to process the target service, the process system acquires the service data of the target service again to obtain the service data corresponding to the process node; the service data comprises service attributes and/or service flow states of the target service when the target service is started to process the target service at a flow node; the service process state is the result of the last process node processing the target service;
s103, based on the service data corresponding to the process node, at least part of the process nodes of the process system sequentially process the target service to obtain a service processing result of the target service, and the service processing result is sent to the service system when a preset sending condition is met.
Here, the distributed service processing platform may be a server, or a server and a terminal device. And the service system and the process system which are independent of each other in the distributed service processing platform are the service system and the process system which are mutually decoupled. That is, the business system and the process system are decoupled. The service system and the process system can be configured in the same server or cluster, or configured in different servers or clusters; or the service system is configured in the terminal equipment, and the process system is configured in the server. And the service system and the flow system carry out data transmission and interaction according to a preset communication protocol.
When a process system processes a target service, when each preconfigured process node starts to process the target service, actively calling a preconfigured interface to reacquire service data of the target service from a service system to obtain latest service data corresponding to the process node, so that at least part of the process nodes of the process system sequentially process the target service based on the latest service data in the process nodes to obtain a service processing result of the target service, and sending the service processing result to the service system when a preset sending condition is met; meanwhile, the process system actively calls the business service interface to update the business process state in the business data, the business process state in the business data is updated in real time when the business process state is changed, and the problem that the state in the business service is not updated timely when the business process state in the traditional process service is changed is solved, so that the business processing efficiency is improved.
In the step S101, the service system sends a service processing request for a target service to a process system; the service processing request carries the service attribute of the target service.
The service attribute comprises service information of the target service and corresponding service personnel information, and the service personnel information comprises names of service personnel, corresponding service roles and the like. The service information is used for explaining the specific content of the service.
The service system sends a service processing request for a target service to the process system, and specifically includes:
the business system generates the business attribute of the target business based on the target operation of business personnel aiming at the target business;
and the service system sends a service processing request carrying the service attribute of the target service to the flow system.
Illustratively, a service person performs a target operation on a target service, for example, zhang san is a man-machine interaction interface of the service asking for leave, fills leave asking service information such as leave asking days, leave asking time, leave asking reason and the like, and clicks and submits after completing the filling. And the service system generates the service attribute of the target service according to the service information filled and submitted by Zhang III.
In step S102, the process system responds to the received service processing request, and when each preconfigured process node starts to process the target service, the process system obtains the service data of the target service again to obtain the service data corresponding to the process node.
Here, different flow nodes configured in advance correspond to different states of the target service, such as initiation, circulation, end, and the like.
When each pre-configured process node starts to process the target service, business data of the target service is acquired again from a business system, namely when tasks of the process nodes are in different states, the business data are actively interacted with business services to acquire the business data and update the flow state of the business data.
In the embodiment of the application, the service system provides an interface for acquiring service data; correspondingly, referring to fig. 2, when the process node starts to process the target service, the step of reacquiring the service data of the target service from the service system includes the following steps S201 to S202;
s201, when the process node starts to process the target service, determining a target interface corresponding to the target service from pre-configured interface data;
s202, the process system actively calls the target interface and obtains the service data of the target service again from the service system.
Here, the service data includes a service attribute and/or a service flow state of the target service when a flow node starts to process the target service; and the service process state is the result of the last process node processing the target service.
Specifically, the process nodes are divided into a first process node and other process nodes except the first process node. Here, when the first process node processes the target service, there is no result of the previous process node processing the target service, that is, there is no service flow state when the target service exists, so when the first process node processes the target service, the service data only includes the service attribute of the target service when the process node starts to process the target service.
Correspondingly, when other process nodes process the target service, the result of the previous process node processing the target service affects the processing process of the process node; for example, for the leave examination and approval request, if the service flow state of the previous flow node is that the chief approves and approves, the group leader in the flow node can pass or not pass according to the result of approval and passing of the chief; if the business process state of the previous process node is that the leaders do not approve the business process, the leaders in the process node need to select not to pass according to the result that the leaders do not approve the business process state. Therefore, the service data when the other process nodes process the target service includes the service attribute and the service process state of the target service when the process nodes start to process the target service.
Based on this, referring to fig. 3, when a target service is at a first flow node configured in advance, the slave service system reacquires service data of the target service to obtain service data corresponding to the flow node, including the following steps S301 to S303;
s301, when a pre-configured first process node starts to process the target service, sending an acquisition request for acquiring service data to a service system;
s302, after receiving the acquisition request, the service system sends the service attribute of the target service in the service system to the process system;
and S303, the flow system takes the service attribute obtained again as the service data of the target service.
In step S302, the service attribute of the target service in the service system is the service attribute after the service system receives the acquisition request, and may be the modified or updated service attribute.
The updating of the service attribute in the service system is performed by a modification operation for a target service in the service system.
For example, in the case that the service system sends a service processing request for a target service to a process system, the service attribute of the target service is: zhang III, leave for three days, for 10 months and 8 days in 2022 to 10 months and 11 days in 2022; however, considering that 3 days are insufficient after the third filing of the leave application, the service system assigns the service attributes of the target service to: zhang III, leave for four days, from 10 months 8 days in 2022 to 10 months 12 days in 2022.
At this time, if the traditional business process processing method is adopted, a plurality of process nodes in the process system sequentially process the target business according to the business attributes of "zhang san, please assume three days, and the time is from 10 months and 8 days in 2022 to 10 months and 11 days in 2022". For example, the group leader performs permission operation on the process system based on the business attribute of "three Zhang, leave three days, and have the time of 10 months and 8 days in 2022 and 10 months and 11 days in 2022" and enters a department manager process node. Obviously, the service attributes of the latest leave-asking service of zhang san are: and thirdly, asking for leave for four days, wherein the time is 10 months and 8 days in 2022 to 10 months and 12 days in 2022, and the group leader does not correctly ask for leave examination and approval according to the original business attributes.
In the embodiment of the present application, it is assumed that the group leader process node is the first process node. When the group leader initiates a processing target service, for example, when the group leader clicks on a leave-asking service of page three, the flow system sends an acquisition request for acquiring service data to the service system; and after receiving the acquisition request, the service system sends the service attribute of the target service at the moment in the service system to the flow system, so that the flow system acquires the modified service attribute of the target service. For example, service attributes of the latest leave request service of zhang san are acquired again: zhang III, leave for four days, from 10 months 8 days in 2022 to 10 months 12 days in 2022. And the group leader performs a leave examination and approval according to the acquired latest service attribute.
Referring to fig. 4, in the method for service flow data interaction according to the embodiment of the present application, when a target service is located in a pre-configured flow node other than a first flow node, the step of reacquiring service data of the target service from a service system to obtain service data corresponding to the flow node includes the following steps S401 to S403;
s401, when other preset process nodes start processing the target service, sending an acquisition request for acquiring service data to a service system;
s402, after receiving the acquisition request, the service system sends the service attribute and the service process state of the target service in the service system to the process system;
and S403, the process system takes the acquired service attribute and the acquired service process state as the service data of the target service.
Here, the service flow state in the service system is a service flow state of the target service, which is obtained by processing by a previous flow node of the flow node in the flow system.
Specifically, in step S103, at least part of the process nodes of the process system sequentially process the target service based on the service data corresponding to the process node, obtain a service processing result of the target service, and send the service processing result to the service system when a preset sending condition is met.
Here, referring to fig. 5, the process node sequentially processes the target service based on the service data corresponding to the process node, including the following steps S501 to S502;
s501, the process node processes the target service based on the service data corresponding to the process node, and determines a service process state corresponding to the process node;
s502, when the process node finishes processing the target service, the process system sends the service process state corresponding to the process node to a service system, so that the service system takes the service process state and the service attribute as service data of a next process node.
For example, the group leader performs leave-three approval according to the acquired latest service attribute, and after the leave-three approval, the service flow state corresponding to the group leader flow node is "group leader approved"; and the flow system actively calls a pre-configured specific interface and sends the business flow state of 'permission approval by the group leader' to the business system. When the next process node, namely the department manager process node, initiates a leave-for-leave service for processing page three, the service attribute and the service process state are re-acquired from the service system as the service data of the target service, for example, the re-acquired service data of the target service is: zhang III, leave for four days, for 10 months 8 days in 2022 to 10 months 12 days in 2022; the group leader approves.
Here, zhang san may also change the service attribute after the service system receives the service flow state sent by the flow system. For example, the group leader passed the leave approval for Zhang III, but asked Zhang III to modify the vacation period to 2 days. After the third page is modified, the service attribute of the leave service is as follows: zhang III, leave for 2 days, in the time of 10 months and 8 days in 2022 to 10 months and 9 days in 2022.
At this time, when the next process node-department manager process node initiates a leave-asking service for processing zhang san, the service attribute and the service process state are re-acquired from the service system as the service data of the target service, for example, the re-acquired service data of the target service is: zhang III, leave for 2 days, in the time of 10 months and 8 days in 2022 years to 10 months and 9 days in 2022 years; the group leader approves.
Therefore, the method and the device have the advantages that the interaction mechanism between the business service and the process service is added, so that the data updating in the business service can be reflected in the process system in time, the processing result in the process system can be reflected in the business system in time, and the flexibility of finding the business process in the process of the business process is greatly improved. The process system actively calls the business service interface to update the business process state in the business data, the business process state in the business data is updated in real time when the business process state is changed, and the problem that the state in the business service is not updated timely when the business process state in the traditional process service is changed is solved, so that the business processing efficiency is improved, and the business in the business system is initiated and modified more conveniently.
Here, at least part of the process nodes of the process system sequentially process the target service based on the service data corresponding to the process nodes to obtain a service processing result of the target service; that is, sometimes, the target service needs to be processed by all process nodes to obtain a final service processing result; sometimes, the final service processing result can be obtained only by processing the target service through part of the process nodes.
For example, for a business such as leave, 4 nodes are required to pass through group leader approval, department manager approval, personnel approval, regional personnel approval and the like. If the four process nodes of group leader examination and approval, department manager examination and approval, personnel examination and approval and regional personnel examination and approval are all examined and approved, the final business processing result is that examination and approval are passed.
If the group leader passes the examination and approval and the department manager does not pass the examination and approval, the final business processing result is obtained as examination and approval failure after the two process nodes of the group leader examination and approval and the department manager examination and approval.
The service processing result of the target service is obtained, and the service processing result is sent to a service system when the service processing result meets preset sending conditions, wherein the preset sending conditions at least comprise one of the following conditions that the service processing result is immediately sent when the service processing result is obtained; sending the data when a preset time point is reached; and when the service system is judged not to receive the service processing result, the service system is sent once every preset time interval until the service system receives the service processing result.
In this embodiment of the application, the method for service process data interaction sequentially processes the target service based on the service data corresponding to the process node at least in part of the process nodes of the process system to obtain a service processing result of the target service, and sends the service processing result to the service system when a preset sending condition is met, where the method further includes:
and after receiving the service processing result, the service system sends a first response success signal to the process system, so that the process system stops sending the service processing result to the service system after receiving the first response success signal.
Here, the flow system sends a second response success signal to the service system after receiving the first response success signal.
Referring to fig. 6, fig. 6 is a timing diagram illustrating a business process data interaction method according to an embodiment of the present application. Referring to fig. 6, firstly, a service prepares service attribute data, and calls a pre-configured process service interface to initiate a target service, where the target service includes initiating approval, returning approval, and the like; when the process service starts to process the target service, calling the service through a pre-configured interface, and acquiring service data again; the process service carries out processing actions such as approval, backspacing and the like to obtain a business process state; the process service calls a business service to update business data, including business process states and the like; and finally, when the process is finished or stopped, executing a callback business service specific interface and executing business operation.
In the embodiment of the application, in the service process data interaction method, the service system realizes data interaction of a target service with the process system through a pre-configured conversion protocol.
That is to say, the conversion protocol in the service system converts the service processing request or the service data of the target service into the service processing request in the target format, and sends the service processing request in the target format to the process system.
Similarly, the process system sends the generated service process state or service processing result in the target format to the service system, and a conversion protocol in the service system analyzes the service process state or service processing result in the target format to obtain the service process state or service processing result which can be identified by the service system.
The conversion protocol may also be referred to as an SDK integration file. In the embodiment of the application, an interaction mechanism of the business service and the process service is encapsulated to form the client SDK, the client SDK is installed in the business system, the original logic code of the business system is not changed, and the interaction mechanism of the business system and the process system in the embodiment of the application is realized through the installed client SDK, so that the integration flexibility is increased, the complexity in business development is reduced, and the efficiency of the business service development process is improved.
Of course, the interaction mechanism described in the embodiment of the present application may also be implemented in a conventional manner by modifying the logic code of the business system, or when compiling the logic code of the business system, the code of the interaction mechanism for implementing the business service and the process service described in the embodiment of the present application is compiled.
That is to say, the interaction mechanism of the service and the process service described in the embodiment of the present application provides a mode supported by both the service SDK integration mode and the conventional mode.
Based on the same inventive concept, the embodiment of the present application further provides a business process data interaction device corresponding to the business process data interaction method, and as the principle of solving the problem of the device in the embodiment of the present application is similar to that of the business process data interaction method in the embodiment of the present application, the implementation of the device can refer to the implementation of the method, and repeated details are not repeated.
Referring to fig. 7, fig. 7 is a schematic structural diagram illustrating a business process data interaction apparatus according to an embodiment of the present application; the business process data interaction device is applied to a distributed business processing platform, the distributed business processing platform comprises a business system and a process system which are independent of each other, and the device comprises:
a first sending module 701, configured to enable the service system to send a service processing request for a target service to a flow system; the service processing request carries the service attribute of the target service;
an obtaining module 702, configured to enable the process system to respond to the received service processing request, and when each preconfigured process node starts to process the target service, re-obtain service data of the target service from the service system, to obtain service data corresponding to the process node; the service data comprises service attributes and/or service flow states of the target service when the target service is started to process the target service at a flow node; the service process state is the result of the last process node processing the target service;
a processing module 703, configured to, based on the service data corresponding to the process node, enable at least part of the process nodes of the process system to sequentially process the target service, obtain a service processing result of the target service, and send the service processing result to the service system when a preset sending condition is met.
The service process data interaction device provided in the embodiment of the application, when a process system processes a target service, and when each preconfigured process node starts to process the target service, reacquires service data of the target service from the service system to obtain latest service data corresponding to the process node, so that at least part of the process nodes of the process system sequentially process the target service based on the latest service data in the process node to obtain a service processing result of the target service, and sends the service processing result to the service system when a preset sending condition is met, and when the service attribute of the service system side is changed through an interaction mechanism with the service system, the process acquires a real-time service attribute, and the problem that the process data is not updated timely due to the change of the service attribute is solved; meanwhile, the process system actively calls the business service interface to update the business process state in the business data, the business process state in the business data is updated in real time when the business process state is changed, and the problem that the state in the business service is not updated timely when the business process state in the traditional process service is changed is solved, so that the business processing efficiency is improved.
In some embodiments, in the service flow data interaction apparatus, when a target service is at a first flow node configured in advance, the obtaining module obtains service data of the target service from a service system again, and when service data corresponding to the flow node is obtained, the obtaining module is specifically configured to:
when a first preset process node starts to process the target service, sending an acquisition request for acquiring service data to a service system;
after receiving the acquisition request, the service system sends the service attribute of the target service in the service system to the process system;
and the flow system takes the service attribute obtained again as the service data of the target service.
In some embodiments, in the service flow data interaction apparatus, when a target service is located in a pre-configured flow node other than a first flow node, the obtaining module is specifically configured to, when the service data of the target service is obtained from a service system again and the service data corresponding to the flow node is obtained:
when other preset process nodes start processing the target service, sending an acquisition request for acquiring service data to a service system;
after receiving the acquisition request, the service system sends the service attribute and the service process state of the target service in the service system to the process system;
and the process system takes the acquired service attribute and the acquired service process state as the service data of the target service.
In some embodiments, in the service flow data interaction apparatus, the processing module sequentially processes the target service at a flow node based on service data corresponding to the flow node, and is specifically configured to:
the process node processes the target service based on the service data corresponding to the process node and determines a service process state corresponding to the process node;
and when the process node finishes processing the target service, the process system sends the service process state corresponding to the process node to a service system so that the service system takes the service process state and the service attribute as service data of the next process node.
In some embodiments, in the business process data interaction device, the business system provides an interface for acquiring business data; correspondingly, when the obtaining module enables the flow node to start processing the target service and re-obtains the service data of the target service from the service system, the obtaining module is specifically configured to:
when the process node starts to process the target service, determining a target interface corresponding to the target service from pre-configured interface data;
and the flow system actively calls the target interface to reacquire the service data of the target service from the service system.
In some embodiments, the service process data interaction device further includes a second sending module, configured to, based on service data corresponding to the process node, sequentially process the target service at least part of the process nodes of the process system to obtain a service processing result of the target service, and send the service processing result to the service system when a preset sending condition is met, and after the service system receives the service processing result, send a first response success signal to the process system, so that the process system stops sending the service processing result to the service system after receiving the first response success signal.
In some embodiments, in the business process data interaction device, the business system implements data interaction with a target business between the process systems through a pre-configured conversion protocol.
Based on the same inventive concept, the embodiment of the present application further provides an electronic device corresponding to the business process data interaction method, and as the principle of solving the problem of the electronic device in the embodiment of the present application is similar to that of the business process data interaction method in the embodiment of the present application, the implementation of the electronic device may refer to the implementation of the method, and repeated details are not repeated.
Referring to fig. 8, fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present application, where the electronic device 800 includes: a processor 801, a memory 802 and a bus, wherein the memory 802 stores machine-readable instructions executable by the processor 801, when the electronic device 800 operates, the processor 801 communicates with the memory 802 via the bus, and the machine-readable instructions are executed by the processor 801 to perform the steps of the business process data interaction method.
Based on the same inventive concept, a computer-readable storage medium corresponding to the business process data interaction method is also provided in the embodiments of the present application, and as the principle of solving the problem of the computer-readable storage medium in the embodiments of the present application is similar to the business process data interaction method described above in the embodiments of the present application, the implementation of the electronic device may refer to the implementation of the method, and repeated details are not repeated.
Specifically, an embodiment of the present application provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and the computer program is executed by a processor to perform the steps of the business process data interaction method.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the system and the apparatus described above may refer to corresponding processes in the method embodiments, and are not described in detail in this application. In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. The above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is only one logical functional division, and other divisions may be realized in practice, and for example, a plurality of modules or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or modules through some communication interfaces, and may be in an electrical, mechanical or other form.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a non-volatile computer-readable storage medium executable by a processor. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a platform server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk or an optical disk, and various media capable of storing program codes.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A business process data interaction method is applied to a distributed business processing platform, the distributed business processing platform comprises a business system and a process system which are independent of each other, and the method comprises the following steps:
the business system sends a business processing request aiming at the target business to the process system; the service processing request carries the service attribute of the target service;
the process system responds to the received service processing request, and when each pre-configured process node starts to process the target service, the process system acquires the service data of the target service again to obtain the service data corresponding to the process node; the service data comprises service attributes and/or service flow states of the target service when the target service is started to process the target service at a flow node; the service process state is the result of the previous process node processing the target service;
based on the service data corresponding to the process node, at least part of the process nodes of the process system sequentially process the target service to obtain a service processing result of the target service, and the service processing result is sent to the service system when a preset sending condition is met.
2. The method for service process data interaction according to claim 1, wherein when a target service is at a first process node configured in advance, the re-acquiring the service data of the target service from the service system to obtain the service data corresponding to the process node comprises:
when a first preset process node starts to process the target service, sending an acquisition request for acquiring service data to a service system;
after receiving the acquisition request, the service system sends the service attribute of the target service in the service system to the process system;
and the flow system takes the service attribute obtained again as the service data of the target service.
3. The method of claim 1, wherein when a target service is located in a pre-configured process node other than a first process node, the re-acquiring the service data of the target service from the service system to obtain the service data corresponding to the process node comprises:
when other preset process nodes start processing the target service, sending an acquisition request for acquiring service data to a service system;
after receiving the acquisition request, the service system sends the service attribute and the service flow state of the target service in the service system to the flow system;
and the process system takes the acquired service attribute and the acquired service process state as the service data of the target service.
4. The business process data interaction method of claim 1, wherein the process node sequentially processes the target business based on the business data corresponding to the process node, comprising:
the process node processes the target service based on the service data corresponding to the process node and determines a service process state corresponding to the process node;
and when the process node finishes processing the target service, the process system sends the service process state corresponding to the process node to a service system so that the service system takes the service process state and the service attribute as service data of the next process node.
5. The business process data interaction method of claim 1, wherein the business system provides an interface for obtaining business data;
when the process node starts to process the target service, reacquiring the service data of the target service from a service system includes:
when the process node starts to process the target service, determining a target interface corresponding to the target service from pre-configured interface data;
and the flow system actively calls the target interface and acquires the service data of the target service from the service system again.
6. The method for service process data interaction according to claim 1, wherein based on the service data corresponding to the process node, the target service is sequentially processed at least part of the process nodes of the process system to obtain a service processing result of the target service, and after the service processing result is sent to the service system when a preset sending condition is met, the method further comprises:
and after receiving the service processing result, the service system sends a first response success signal to the process system, so that the process system stops sending the service processing result to the service system after receiving the first response success signal.
7. The method for data interaction in business process according to claim 1, wherein the business system implements data interaction with the target business between the process systems through a pre-configured conversion protocol.
8. A business process data interaction device is applied to a distributed business processing platform, the distributed business processing platform comprises a business system and a process system which are independent, and the device comprises:
the first sending module is used for enabling the business system to send a business processing request aiming at the target business to the process system; the service processing request carries the service attribute of the target service;
an obtaining module, configured to enable the process system to respond to the received service processing request, and when each preconfigured process node starts to process the target service, re-obtain service data of the target service from the service system, to obtain service data corresponding to the process node; the service data comprises service attributes and/or service flow states of the target service when a flow node starts to process the target service; the service process state is the result of the last process node processing the target service;
and the processing module is used for enabling at least part of the process nodes of the process system to sequentially process the target service based on the service data corresponding to the process nodes to obtain a service processing result of the target service, and sending the service processing result to the service system when a preset sending condition is met.
9. An electronic device, comprising: a processor, a memory and a bus, the memory storing machine-readable instructions executable by the processor, the processor and the memory communicating via the bus when the electronic device is running, the machine-readable instructions when executed by the processor performing the steps of the business process data interaction method of any one of claims 1 to 7.
10. A computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, performs the steps of the business process data interaction method according to any one of claims 1 to 7.
CN202211539119.7A 2022-12-01 2022-12-01 Business process data interaction method and device, electronic equipment and medium Pending CN115860448A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211539119.7A CN115860448A (en) 2022-12-01 2022-12-01 Business process data interaction method and device, electronic equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211539119.7A CN115860448A (en) 2022-12-01 2022-12-01 Business process data interaction method and device, electronic equipment and medium

Publications (1)

Publication Number Publication Date
CN115860448A true CN115860448A (en) 2023-03-28

Family

ID=85669394

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211539119.7A Pending CN115860448A (en) 2022-12-01 2022-12-01 Business process data interaction method and device, electronic equipment and medium

Country Status (1)

Country Link
CN (1) CN115860448A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116647619A (en) * 2023-05-30 2023-08-25 中电金信软件有限公司 Service processing method and system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116647619A (en) * 2023-05-30 2023-08-25 中电金信软件有限公司 Service processing method and system

Similar Documents

Publication Publication Date Title
US7983943B2 (en) Method and system for workflow process node synchronization
JP4880376B2 (en) Support apparatus, program, information processing system, and support method
CN110083455B (en) Graph calculation processing method, graph calculation processing device, graph calculation processing medium and electronic equipment
US10558753B2 (en) Software provisioning using an interactive chat-based user interface
CN111258565B (en) Method, system, server and storage medium for generating applet
US7610388B2 (en) System, method and program for coordinating timeouts for distributed servers
CN111212142A (en) Service processing method, integrated open docking platform and computer storage medium
CN108765083B (en) Routing order configuration and processing method and system
CN115860448A (en) Business process data interaction method and device, electronic equipment and medium
CN113467980A (en) Log output method, device and system and embedded equipment
CN113094125B (en) Business process processing method, device, server and storage medium
CN111835809B (en) Work order message distribution method, work order message distribution device, server and storage medium
CN115629743A (en) Service component arranging method, service scheduling method and device, electronic equipment and storage medium
CN114490000A (en) Task processing method, device, equipment and storage medium
CN110874713A (en) Service state management method and device
CN111949862B (en) Method and device for managing business task flow and electronic equipment
CN114036250A (en) High-precision map task processing method and device, electronic equipment and medium
CN113934526A (en) Construction method and device of business process
CN113034048A (en) Task processing method, device, server and storage medium
WO2017099980A1 (en) Providing conference call aid based on upcoming deadline
CN113472638A (en) Edge gateway control method, system, device, electronic equipment and storage medium
CN111080250A (en) Flow backspacing compensation method and device, storage medium and electronic equipment
CN113282457B (en) Method, device and medium for maintaining heterogeneous system integration interface information
CN115955409B (en) Method and related device for changing arrangement
JP6603001B1 (en) Providing a communication channel between instances of the automated assistant

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