CN112579325A - Business object processing method and device, electronic equipment and storage medium - Google Patents
Business object processing method and device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN112579325A CN112579325A CN202011602436.XA CN202011602436A CN112579325A CN 112579325 A CN112579325 A CN 112579325A CN 202011602436 A CN202011602436 A CN 202011602436A CN 112579325 A CN112579325 A CN 112579325A
- Authority
- CN
- China
- Prior art keywords
- service
- component
- flow
- service object
- message
- 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.)
- Granted
Links
- 238000003672 processing method Methods 0.000 title description 3
- 238000000034 method Methods 0.000 claims abstract description 72
- 238000013507 mapping Methods 0.000 claims abstract description 28
- 238000012545 processing Methods 0.000 claims abstract description 25
- 238000004891 communication Methods 0.000 claims description 14
- 238000004590 computer program Methods 0.000 claims description 7
- 230000008569 process Effects 0.000 abstract description 41
- 230000003993 interaction Effects 0.000 abstract description 12
- 230000000694 effects Effects 0.000 abstract description 3
- 238000010586 diagram Methods 0.000 description 7
- 238000004519 manufacturing process Methods 0.000 description 4
- 230000009471 action Effects 0.000 description 3
- 238000001914 filtration Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 2
- 238000006243 chemical reaction Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/46—Multiprogramming arrangements
- G06F9/54—Interprogram communication
- G06F9/546—Message passing systems or structures, e.g. queues
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q10/00—Administration; Management
- G06Q10/10—Office automation; Time management
- G06Q10/103—Workflow collaboration or project management
Landscapes
- Engineering & Computer Science (AREA)
- Business, Economics & Management (AREA)
- Human Resources & Organizations (AREA)
- Strategic Management (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- Software Systems (AREA)
- Entrepreneurship & Innovation (AREA)
- General Physics & Mathematics (AREA)
- Operations Research (AREA)
- Tourism & Hospitality (AREA)
- Quality & Reliability (AREA)
- General Business, Economics & Management (AREA)
- Marketing (AREA)
- Economics (AREA)
- Data Mining & Analysis (AREA)
- General Engineering & Computer Science (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The embodiment of the invention provides a method and a device for processing a business object, wherein the method comprises the following steps: acquiring a link relation between service objects in the service objects; generating a process file of the business object according to the link relation; mapping the flow file into a flow component of each service object, wherein each flow component receives and/or forwards messages of other flow components to express the business data flow relation of each service object; and according to the message receiving relation and/or the message forwarding relation among the flowing components, taking the flowing components as the workflow of the business object, and executing the service objects according to the workflow. The embodiment of the invention executes each service object by means of the workflow, can conveniently comb out the whole flow logic of the service objects, the dependency relationship between the service objects, the service data circulation relationship and the like, can solve the technical problem that the interaction between the existing service objects is not clear, and achieves the effect of improving the interaction definition between the service objects.
Description
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and an apparatus for processing a business object, an electronic device, and a computer-readable storage medium.
Background
With the rapid development of computer technology, more and more services realize Serverless, and Serverless means that a developer does not consider the problem of a server too much, but executes codes by using a third-party server resource. Serverless is the operation of the server logic implemented by the developer in a stateless computing container, triggered by an event, managed entirely by a third party. Moreover, the service granularity of the service object is thinner and thinner, the responsibility of the service object is single, the internal logic of the service object is highly cohesive, the service is clear, and the iteration of the requirement is facilitated.
However, the interaction between service objects becomes very complicated, and the current interaction process between service objects is realized by passing a remote call message between service objects, and the like. Remote call messages and the like are difficult to track, so that the interaction between service objects is unclear, and the whole business process is difficult to comb.
Disclosure of Invention
Embodiments of the present invention provide a method and an apparatus for processing a business object, an electronic device and a computer-readable storage medium, which combine a process file of the business object with a flow component of the service object, and embody interaction between the service objects in a workflow manner, so as to more clearly grasp an interaction process between the service objects. The specific technical scheme is as follows:
in a first aspect of the present invention, a method for processing a business object is provided, including: acquiring a link relation between service objects in the service objects; generating a flow file of the business object according to the link relation, wherein the flow file represents the triggering sequence of each service object in the business object; mapping the flow file into a flow component of each service object, wherein each flow component receives and/or forwards messages of other flow components to express a business data flow relation of each service object; and according to the message receiving relation and/or the message forwarding relation among the flowing components, taking the flowing components as the workflow of the business object, and executing the service objects according to the workflow.
Optionally, the mapping the process file to a flow component of each service object includes: and mapping the flow file into a trigger component, a serial component and/or a parallel component, and performing serial operation on the trigger component, the serial component and/or the parallel component.
Optionally, the executing each service object according to the workflow includes: subscribing service publishing information from a service publishing event according to the trigger component; forwarding the service publishing message to a first service object in each service object according to the trigger component; and starting from the first service object, sequentially executing the corresponding serial components or the parallel components according to the service release message.
Optionally, after the mapping the process file to a flow component of each service object, the method further includes: and establishing an association relationship between the flow file and each flow component according to the component identification information carried in the service release message and the flow identification information of the flow file, and storing the flow file and each flow component according to the association relationship.
Optionally, before executing each service object according to the workflow, the method further includes: applying the flow component to a cluster, detecting a trigger message of the flow component according to a detector in the cluster; when the detector detects the trigger message, executing the steps of executing each service object according to the workflow.
In a second aspect of the present invention, there is also provided a device for processing a business object, including: the acquisition module is used for acquiring the link relation between service objects in the service objects; a generating module, configured to generate a flow file of the service object according to the link relationship, where the flow file represents a trigger sequence of each service object in the service object; the mapping module is used for mapping the flow file into flowing components of each service object, and each flowing component receives and/or forwards messages of other flowing components to express a business data flow relation of each service object; and the execution module is used for taking each flowing component as a workflow of the business object according to the message receiving relation and/or the message forwarding relation among each flowing component and executing each service object according to the workflow.
Optionally, the mapping module is configured to map the process file into a trigger component, a serial component and/or a parallel component, and perform a serial operation on the trigger component, and the serial component and/or the parallel component.
Optionally, the execution module includes: the message subscription module is used for subscribing the service publishing messages from the service publishing events according to the trigger component; a message forwarding module, configured to forward the service publishing message to a first service object in each service object according to the trigger component; and the component execution module is used for sequentially executing the corresponding serial components or the parallel components from the first service object according to the service release message.
Optionally, the apparatus further comprises: and the association module is used for establishing an association relationship between the flow file and each flow component according to the component identification information carried in the service release message and the flow identification information of the flow file after the mapping module maps the flow file into the flow components of each service object, and storing the flow file and each flow component according to the association relationship.
Optionally, the apparatus further comprises: an application module, configured to apply the flow component to a cluster before the execution module executes each service object according to the workflow, and detect a trigger message of the flow component according to a detector in the cluster; and the execution module is used for executing each service object according to the workflow when the detector detects the trigger message.
In another aspect of the present invention, there is also provided a computer-readable storage medium, which stores instructions that, when executed on a computer, cause the computer to execute any one of the above-mentioned business object processing methods.
In yet another aspect of the present invention, there is also provided a computer program product containing instructions which, when run on a computer, cause the computer to perform the method for processing a business object as described in any one of the above.
According to the method for processing the service object, provided by the embodiment of the invention, by adopting a technical means of generating the flow file of the service object and mapping to obtain the flow components of the service object, each flow component is taken as the workflow of the service object according to the message receiving relation and/or the message forwarding relation among each flow component, so that each service object can be executed according to the workflow. The workflow is used for executing each service object, the whole flow logic of the service object, the dependency relationship between the service objects, the service data flow relationship and the like can be conveniently sorted out, the workflow can also be used as a requirement document of the service object, the cost for developers and production personnel to know the service requirement is reduced, the working efficiency of the developers and the production personnel is improved, the technical problem that the interaction between the existing service objects is not clear can be solved, and the effect of improving the interaction definition between the service objects is achieved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below.
Fig. 1 is a flowchart illustrating steps of a method for processing a business object according to an embodiment of the present invention.
Fig. 2 is a schematic flow chart of an implementation scheme of a Serverless workflow based on JBPM and Knative according to an embodiment of the present invention.
Fig. 3 is a deployment schematic diagram of an implementation scheme of a Serverless workflow based on JBPM and knetive according to an embodiment of the present invention.
Fig. 4 is a schematic structural diagram of a business object processing apparatus according to an embodiment of the present invention.
Fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be described below with reference to the drawings in the embodiments of the present invention.
The embodiment of the invention provides a method for processing a business object, which generates a flow file of the business object according to a link relation between service objects in the business object, and maps the flow file into a corresponding flow component. Each flow component represents the business data flow relationship of each service object by receiving and/or forwarding messages of other flow components. And according to the message receiving relation and/or the message forwarding relation among the flowing components, taking the flowing components as the workflow of the business object, and then executing the service objects according to the workflow.
Fig. 1 is a flowchart illustrating steps of a method for processing a business object according to an embodiment of the present invention. The method for processing the business object may specifically include the following steps.
In an embodiment of the invention, the business object may be a product, such as a system, an application, and the like. The business object may include a plurality of service objects, and the execution process of the business object requires business interaction among the plurality of service objects. The link relationship between the service objects may represent trigger nodes of the service objects in the business object, and the sequential relationship, logical relationship, etc. between the trigger nodes.
And 102, generating a flow file of the business object according to the link relation.
In the embodiment of the invention, the link relation between the service objects can be intuitively expressed through the form of a link diagram. A flow document may be understood as a computer identifiable document of the link relationship between service objects. In practical applications, the flow file may be a JBPM file. JBPM is a set of Process engines based on Business Process Modeling Notation (BPMN for short). For example, there are 5 service objects based on Knative (Serverless architecture scheme of an open source) in the service object M, and the service objects are the service objects A, B, C, D, E respectively. As shown in fig. 2, fig. 2 shows a link diagram of each service object in the business object M. In fig. 2, each service object may be used as each intermediate node of the service object M, and the service object M further includes a start node and an end node. The service object A is an intermediate node positioned behind the start node, the service objects B and C are two parallel intermediate nodes positioned behind the intermediate node where the service object A is positioned respectively, and the intermediate node where the service object B is positioned is directly connected with the end node backwards. The intermediate node where the service object C is located is connected with the judging node backwards, the judging node is connected with two parallel intermediate nodes where the service objects D and E are located backwards, and the intermediate nodes where the service objects D and E are located are directly connected with the ending node backwards. According to the link relationship of each service object in the service object M, the following flow file can be generated:
the process file may be a file in an Extensible Markup Language (XML) format. The flow file may indicate the triggering order of each service object in the business object, for example, service object a triggers before other service objects, service objects B and C trigger in parallel, service objects D and E trigger after other service objects, and service objects D and E trigger in parallel. When the process file is generated, corresponding process identification information can be generated for the process file, and the process identification information is used for uniquely representing the process file.
In an embodiment of the present invention, each service object may have a respective flow component, and each flow component may represent a business data flow relationship of each service object by receiving and/or forwarding messages of other flow components. Moreover, the flow components of the service objects may be different from each other according to the triggering sequence of the service objects in the service objects. The flow file is a file representing the whole execution flow of the business object, and the flow file contains the trigger sequence of each service object in the business object, so that the flow file can be mapped into a flow component of each service object.
And step 104, taking each flow component as a workflow of the business object according to the message receiving relation and/or the message forwarding relation among the flow components, and executing each service object according to the workflow.
In an embodiment of the invention, a message receiving relationship between flow components means that one flow component receives messages from another flow component, and a message forwarding relationship between flow components means that one flow component forwards messages of another flow component to yet another flow component. The workflow of the business object may represent the logical relationship of each service object in the business object during the execution of the business object, and so on. And executing each service object according to the workflow, and reflecting the business data flow conversion relation among the service objects through the workflow so as to master the service object to which the business data flow is transferred.
According to the method for processing the service object, provided by the embodiment of the invention, by adopting a technical means of generating the flow file of the service object and mapping to obtain the flow components of the service object, each flow component is taken as the workflow of the service object according to the message receiving relation and/or the message forwarding relation among each flow component, so that each service object can be executed according to the workflow. The workflow is used for executing each service object, the whole flow logic of the service object, the dependency relationship between the service objects, the service data flow relationship and the like can be conveniently sorted out, the workflow can also be used as a requirement document of the service object, the cost for developers and production personnel to know the service requirement is reduced, the working efficiency of the developers and the production personnel is improved, the technical problem that the interaction between the existing service objects is not clear can be solved, and the effect of improving the interaction definition between the service objects is achieved.
In an exemplary embodiment of the invention, the flow assembly may include, but is not limited to: trigger component, serial component, parallel component. When mapping the process file to the streaming component of each service object, the process file may be mapped to the trigger component and the serial component and/or the parallel component, and the trigger component and the serial component and/or the parallel component may be operated in series. Specifically, when mapping the flow file to each streaming component, each service object in the flow file in the XML format of the JBPM may be mapped to a streaming component in the format of yaml under kyrive (yaml is a format that has high readability and is used to express data serialization). The mapping process can be understood as a process combining JBPM and Knative, and the mapping result is a flowing component of each service object. When the flow components are connected in series, the trigger component and the serial component, or the trigger component and the parallel component, which send messages and receive messages, or the trigger component, the serial component and the parallel component are connected in series according to the order of sending messages first and receiving messages later according to the message receiving relation between the trigger component and the serial component and/or the parallel component. And/or the trigger component and the serial component, or the trigger component and the parallel component, or the trigger component, the serial component and the parallel component, which receive the message and forward the message, can be connected in series according to the message forwarding relation between the trigger component and the serial component and/or the parallel component, or the trigger component, the serial component and the parallel component are connected in series according to the sequence of receiving the message first and then forwarding the message. The trigger component is used for subscribing the service publishing information of the service publishing event and forwarding the service publishing information to the first service object. The service publishing event may be a cache broker (broker) event, where the broker event receives a clooudevent (a uniform event definition and description specification) message sent by a pre-deployed flow trigger service, and the clooudevent message may include flow identification information of the flow file. The serial component and the parallel component may be generated according to a trigger sequence of the service object in the service object, for example, for the service object a, a start node of the service object M is before the service object a, and service objects B and C are after the service object a, that is, if the trigger sequence between the service object a and the service objects B and C is a serial sequence, the serial component is mapped to the service object a; for the service objects B and C, if the service objects B and C are two parallel intermediate nodes of the service object M, the service objects B and C are mapped to obtain parallel components.
In an exemplary embodiment of the present invention, when executing the service objects according to the workflow, the service publishing message from the service publishing event may be subscribed according to the trigger component, and then the service publishing message may be forwarded to the first service object according to the trigger component. And starting from the first service object, executing corresponding serial components or parallel components in sequence according to the service release message. For example, starting from the service object a described above, a serial component is executed, the corresponding service content is processed by the service object a, and then the serial component forwards the processing result of the service object a to a parallel component, and the corresponding service content is processed by the service objects B and C.
In an exemplary embodiment of the present invention, after mapping the flow file to the flow components of each service object, an association relationship between the flow file and each flow component may be established according to the component identification information and the flow identification information of the flow file carried in the service release message, and the flow file and each flow component are stored in the database according to the association relationship. In practical application, if the component identification information carried in the service release message is the same as or corresponds to the process identification information of the process file, an association relationship between the process file and each flow component may be established. If the business object needs to be adjusted, the process file can be directly read from the database according to the process identification information, and the read process file is modified. If the service object needs to be adjusted, the mobile component can be directly read from the database according to the component identification information, and the read mobile component is modified. Moreover, the database may store process files for a plurality of business objects and flow components for each of the plurality of business objects.
Based on the above description about the embodiment of the method for processing a business object, an implementation scheme of a Serverless workflow based on JBPM and knetive is described below. As shown in fig. 2, fig. 2 is a flow chart illustrating an implementation scheme of Serverless workflow based on JBPM and knetive. And deploying a flow trigger service object, wherein the flow trigger service object can issue a cloodevent message containing flow identification information of a flow file and send the cloodevent message to a broker event. Subscribe to a broker message for a broker event with a pre-generated trigger component, which may be a trigger. The trigger component generates a trigger message and transmits the trigger message to the serial component, which may be a sequence1.yaml file, and the serial component receives the trigger message and is processed by service object a. The workflow is forwarded to service objects B and C using a pre-generated parallel component, which may be a parallell 1.yaml file. And the parallel component forwards the workflow to a service object B, the service object B does not define other processes after processing, and the workflow is ended. The parallel component forwards the workflow to the serial component, which may be a sequence2.yaml file, which forwards the workflow to service object C, and to the parallel component, which may be a parallell 2.yaml file, from which it is determined whether to execute service object D or service object E. The parallel2.yaml file can be used as a judgment node, the judgment node generates a corresponding filtering service object according to the service processing result, and the filtering service object is used for judging whether the service processing result meets the filtering condition. If the filter condition for service object D is satisfied, the workflow goes to service object D, and if the filter condition for service object E is satisfied, the workflow goes to service object E. After the service object D and the service object E, no other flow is defined, and the workflow ends.
As shown in fig. 3, fig. 3 shows a deployment diagram of an implementation scheme of Serverless workflow based on JBPM and knetive. The generated JBPM flow file can be stored in a database, and the mapped Knative flow component can also be stored in the database. In the database, an association relationship can be established between the JBPM flow file and the Knative flow component. Before executing each service object according to the workflow, the Knative flow component can be applied to the cluster through an application program interface of the cluster, the trigger message of the Knative flow component is detected according to a detector in the cluster, and when the detector detects the trigger message, each service object is executed according to each Knative flow component in the cluster. The embodiment of the invention can execute respective service objects according to the workflow for the service objects on the plurality of terminals in the cluster by applying the flow component to the cluster, so as to intensively know the service data flow relation among the service objects on the plurality of terminals in the cluster.
Fig. 4 is a schematic structural diagram illustrating a business object processing apparatus according to an embodiment of the present invention. The processing means of the business object may comprise the following modules.
An obtaining module 41, configured to obtain a link relationship between service objects in the service object;
a generating module 42, configured to generate a flow file of the service object according to the link relationship, where the flow file represents a trigger sequence of each service object in the service object;
a mapping module 43, configured to map the process file into a flow component of each service object, where each flow component receives and/or forwards a message of another flow component to indicate a business data flow relationship of each service object;
and the execution module 44 is configured to use each of the flow components as a workflow of the business object according to a message receiving relationship and/or a message forwarding relationship between the flow components, and execute each of the service objects according to the workflow.
In an exemplary embodiment of the present invention, the mapping module 43 is configured to map the flow file into a trigger component and a serial component and/or a parallel component, and perform a serial operation on the trigger component and the serial component and/or the parallel component.
In an exemplary embodiment of the present invention, the executing module 44 includes:
the message subscription module is used for subscribing the service publishing messages from the service publishing events according to the trigger component;
a message forwarding module, configured to forward the service publishing message to a first service object in each service object according to the trigger component;
and the component execution module is used for sequentially executing the corresponding serial components or the parallel components from the first service object according to the service release message.
In an exemplary embodiment of the invention, the apparatus further comprises:
an association module, configured to, after the mapping module 43 maps the flow file into the flow components of each service object, establish an association relationship between the flow file and each flow component according to component identification information carried in the service release message and the flow identification information of the flow file, and store the flow file and each flow component according to the association relationship.
In an exemplary embodiment of the invention, the apparatus further comprises:
an application module, configured to apply the flow component to a cluster before the execution module 44 executes each service object according to the workflow, and detect a trigger message of the flow component according to a detector in the cluster;
the executing module 44 is configured to execute each service object according to the workflow when the detector detects the trigger message.
An embodiment of the present invention further provides an electronic device, as shown in fig. 5, including a processor 51, a communication interface 52, a memory 53 and a communication bus 54, where the processor 51, the communication interface 52, and the memory 53 complete mutual communication through the communication bus 54,
a memory 53 for storing a computer program;
the processor 51 is configured to implement the following steps when executing the program stored in the memory 53:
acquiring a link relation between service objects in the service objects; generating a flow file of the business object according to the link relation, wherein the flow file represents the triggering sequence of each service object in the business object; mapping the flow file into a flow component of each service object, wherein each flow component receives and/or forwards messages of other flow components to express a business data flow relation of each service object; and according to the message receiving relation and/or the message forwarding relation among the flowing components, taking the flowing components as the workflow of the business object, and executing the service objects according to the workflow.
When the process file is mapped to the flow component of each service object, the process file is mapped to a trigger component, a serial component and/or a parallel component, and the trigger component, the serial component and/or the parallel component are operated in series.
When executing each service object according to the workflow, subscribing service publishing information from a service publishing event according to the trigger component; forwarding the service publishing message to a first service object in each service object according to the trigger component; and starting from the first service object, sequentially executing the corresponding serial components or the parallel components according to the service release message.
After the process file is mapped to the flow components of each service object, establishing an association relationship between the process file and each flow component according to component identification information carried in the service release message and the process identification information of the process file, and storing the process file and each flow component according to the association relationship.
Before executing each service object according to the workflow, applying the flow components to a cluster, and detecting trigger messages of the flow components according to a detector in the cluster; when the detector detects the trigger message, executing the steps of executing each service object according to the workflow.
The communication bus mentioned in the above terminal may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the terminal and other equipment.
The Memory may include a Random Access Memory (RAM) or a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the Integrated Circuit may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, or a discrete hardware component.
In another embodiment of the present invention, a computer-readable storage medium is further provided, in which instructions are stored, and when the instructions are executed on a computer, the computer is enabled to execute the method for processing the business object in any of the above embodiments.
In another embodiment of the present invention, there is also provided a computer program product containing instructions, which when run on a computer, causes the computer to execute the method for processing the business object according to any one of the above embodiments.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the invention to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.
Claims (10)
1. A method for processing a business object, comprising:
acquiring a link relation between service objects in the service objects;
generating a flow file of the business object according to the link relation, wherein the flow file represents the triggering sequence of each service object in the business object;
mapping the flow file into a flow component of each service object, wherein each flow component receives and/or forwards messages of other flow components to express a business data flow relation of each service object;
and according to the message receiving relation and/or the message forwarding relation among the flowing components, taking the flowing components as the workflow of the business object, and executing the service objects according to the workflow.
2. The method of claim 1, wherein mapping the flow file to a flow component of each of the service objects comprises:
and mapping the flow file into a trigger component, a serial component and/or a parallel component, and performing serial operation on the trigger component, the serial component and/or the parallel component.
3. The method of claim 2, wherein executing each of the service objects according to the workflow comprises:
subscribing service publishing information from a service publishing event according to the trigger component;
forwarding the service publishing message to a first service object in each service object according to the trigger component;
and starting from the first service object, sequentially executing the corresponding serial components or the parallel components according to the service release message.
4. The method of claim 3, wherein after said mapping said flow file to a flow component for each of said service objects, said method further comprises:
and establishing an association relationship between the flow file and each flow component according to the component identification information carried in the service release message and the flow identification information of the flow file, and storing the flow file and each flow component according to the association relationship.
5. The method of any of claims 1 to 4, wherein prior to said executing each of said service objects according to said workflow, said method further comprises:
applying the flow component to a cluster, detecting a trigger message of the flow component according to a detector in the cluster;
when the detector detects the trigger message, executing the steps of executing each service object according to the workflow.
6. An apparatus for processing a business object, comprising:
the acquisition module is used for acquiring the link relation between service objects in the service objects;
a generating module, configured to generate a flow file of the service object according to the link relationship, where the flow file represents a trigger sequence of each service object in the service object;
the mapping module is used for mapping the flow file into flowing components of each service object, and each flowing component receives and/or forwards messages of other flowing components to express a business data flow relation of each service object;
and the execution module is used for taking each flowing component as a workflow of the business object according to the message receiving relation and/or the message forwarding relation among each flowing component and executing each service object according to the workflow.
7. The apparatus of claim 6, wherein the mapping module is configured to map the flow file into a trigger component and a serial component and/or a parallel component, and to perform a serial operation on the trigger component and the serial component and/or the parallel component.
8. The apparatus of claim 7, wherein the execution module comprises:
the message subscription module is used for subscribing the service publishing messages from the service publishing events according to the trigger component;
a message forwarding module, configured to forward the service publishing message to a first service object in each service object according to the trigger component;
and the component execution module is used for sequentially executing the corresponding serial components or the parallel components from the first service object according to the service release message.
9. An electronic device is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing mutual communication by the memory through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of any one of claims 1 to 5 when executing a program stored in the memory.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1-5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011602436.XA CN112579325B (en) | 2020-12-29 | 2020-12-29 | Business object processing method and device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011602436.XA CN112579325B (en) | 2020-12-29 | 2020-12-29 | Business object processing method and device, electronic equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112579325A true CN112579325A (en) | 2021-03-30 |
CN112579325B CN112579325B (en) | 2024-06-21 |
Family
ID=75144338
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011602436.XA Active CN112579325B (en) | 2020-12-29 | 2020-12-29 | Business object processing method and device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112579325B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113626167A (en) * | 2021-08-11 | 2021-11-09 | 京东科技控股股份有限公司 | Thread control method, device, equipment and computer storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050066304A1 (en) * | 2003-09-11 | 2005-03-24 | Captaris, Inc. | Custom and customizable components, such as for workflow applications |
US20060070025A1 (en) * | 2004-09-30 | 2006-03-30 | Microsoft Corporation | Workflow schedule authoring tool |
CN105045802A (en) * | 2015-05-22 | 2015-11-11 | 杭州亿方云网络科技有限公司 | Message-driven multi-type file preview system |
CN110609675A (en) * | 2018-06-14 | 2019-12-24 | 中兴通讯股份有限公司 | Workflow modeling method and device and computer readable storage medium |
CN110808855A (en) * | 2019-10-30 | 2020-02-18 | 中国工商银行股份有限公司 | Internet technology architecture, management method and device, electronic equipment and medium |
CN111208992A (en) * | 2020-01-10 | 2020-05-29 | 深圳壹账通智能科技有限公司 | System scheduling workflow generation method and system |
CN111510468A (en) * | 2019-01-30 | 2020-08-07 | 杭州海康威视数字技术股份有限公司 | Method and device for scheduling computing tasks, server and computing system |
-
2020
- 2020-12-29 CN CN202011602436.XA patent/CN112579325B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050066304A1 (en) * | 2003-09-11 | 2005-03-24 | Captaris, Inc. | Custom and customizable components, such as for workflow applications |
US20060070025A1 (en) * | 2004-09-30 | 2006-03-30 | Microsoft Corporation | Workflow schedule authoring tool |
CN105045802A (en) * | 2015-05-22 | 2015-11-11 | 杭州亿方云网络科技有限公司 | Message-driven multi-type file preview system |
CN110609675A (en) * | 2018-06-14 | 2019-12-24 | 中兴通讯股份有限公司 | Workflow modeling method and device and computer readable storage medium |
CN111510468A (en) * | 2019-01-30 | 2020-08-07 | 杭州海康威视数字技术股份有限公司 | Method and device for scheduling computing tasks, server and computing system |
CN110808855A (en) * | 2019-10-30 | 2020-02-18 | 中国工商银行股份有限公司 | Internet technology architecture, management method and device, electronic equipment and medium |
CN111208992A (en) * | 2020-01-10 | 2020-05-29 | 深圳壹账通智能科技有限公司 | System scheduling workflow generation method and system |
Non-Patent Citations (5)
Title |
---|
KATE EBY 等: "Business Process Modeling and Notation (BPMN) 101", Retrieved from the Internet <URL:https://www.smartsheet.com/beginners-guide> * |
吴亚锋;谭文安;: "基于Petri网关联矩阵的流程模型间距离计算方法", 计算机与数字工程, no. 03 * |
唐华云;郭芬;桑英硕;: "工作流管理平台的设计及其在自助服务中的应用", 计算机***应用, no. 07, 15 July 2016 (2016-07-15) * |
李国栋等: "基于Petri网的组件化工作流模型研究", 微计算机信息, pages 1 - 2 * |
邹少军;: "基于Petri网的工作流模型构建", 微计算机信息, no. 21 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113626167A (en) * | 2021-08-11 | 2021-11-09 | 京东科技控股股份有限公司 | Thread control method, device, equipment and computer storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN112579325B (en) | 2024-06-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108322351B (en) | Method and device for generating topological graph and method and device for determining faults | |
CN111752799A (en) | Service link tracking method, device, equipment and storage medium | |
CN111381987A (en) | Message processing method and device, electronic equipment and medium | |
CN110765422A (en) | Parameter checking method and device | |
CN111782546B (en) | Automatic interface testing method and device based on machine learning | |
CN110928934A (en) | Data processing method and device for business analysis | |
CN112579325B (en) | Business object processing method and device, electronic equipment and storage medium | |
CN114443905A (en) | Interface document updating method and device, electronic equipment and readable storage medium | |
CN111443920B (en) | Frame migration method and device | |
CN110309028B (en) | Monitoring information acquisition method, service monitoring method, device and system | |
CN114936245B (en) | Method and device for integrating and processing multi-source heterogeneous data | |
CN115580647A (en) | Service call link tracking method and system and electronic equipment | |
CN113704203A (en) | Log file processing method and device | |
CN114443343A (en) | Method, device, equipment and storage medium for service interface to feed back abnormal information | |
CN117453665B (en) | Data processing method, device, equipment and storage medium | |
CN111884932A (en) | Link determination method, device, equipment and computer readable storage medium | |
CN113760693A (en) | Method and apparatus for local debugging of microservice systems | |
CN113778886B (en) | Processing method and device for test cases | |
CN113114612B (en) | Determination method and device for distributed system call chain | |
CN112579553B (en) | Method and apparatus for recording information | |
CN116414427A (en) | Product release method, device, equipment and storage medium | |
CN111324846B (en) | Information processing method, information processing device, electronic equipment and computer readable storage medium | |
CN111163088B (en) | Message processing method, system and device and electronic equipment | |
CN108052648B (en) | Website picture deleting method and device and electronic equipment | |
CN117193729A (en) | Micro-service generation method and device, electronic 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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |