CN109840073B - Method and device for realizing business process - Google Patents

Method and device for realizing business process Download PDF

Info

Publication number
CN109840073B
CN109840073B CN201711194042.3A CN201711194042A CN109840073B CN 109840073 B CN109840073 B CN 109840073B CN 201711194042 A CN201711194042 A CN 201711194042A CN 109840073 B CN109840073 B CN 109840073B
Authority
CN
China
Prior art keywords
stage
business process
phase
processor
event
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201711194042.3A
Other languages
Chinese (zh)
Other versions
CN109840073A (en
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.)
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology 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 Beijing Jingdong Century Trading Co Ltd, Beijing Jingdong Shangke Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN201711194042.3A priority Critical patent/CN109840073B/en
Publication of CN109840073A publication Critical patent/CN109840073A/en
Application granted granted Critical
Publication of CN109840073B publication Critical patent/CN109840073B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The embodiment of the application discloses a method and a device for realizing a business process. One embodiment of the method comprises: filling a business process in a preset process frame to generate an executable process, wherein the process frame comprises a pre-constructed stage processor and a flow processor; dividing a business process into a plurality of stages according to the logic sequence of the business, wherein each stage comprises a plurality of predefined events related to the business process; controlling the execution of each event in each stage by using a stage processor, and controlling each stage in the business flow to be sequentially executed according to the logic sequence of the business by using a flow processor; and responding to the completion of the execution of each stage in the business process, and sending a final page view corresponding to the business process to the user. According to the implementation mode, the stage processor and the flow processor in the flow framework can be utilized to separate the logic control from the business flow, so that the complexity of business flow development is reduced, and the maintenance of the business flow is facilitated.

Description

Method and device for realizing business process
Technical Field
The embodiment of the application relates to the technical field of computers, in particular to the technical field of internet, and particularly relates to a method and a device for realizing a business process.
Background
With the development of internet technology, more and more internet-based business systems are emerging. Many business systems are composed of individual business processes, such as an online shopping process, an online store opening process, a settlement process, etc. in the e-commerce field. In order to improve the development efficiency of the business process, a process framework is usually adopted to form the executable process.
In the prior art, a Spring flow framework is usually adopted to implement development of a business flow. When a business process forms an executable process based on a Spring process framework, a plurality of related configuration files need to be configured to enable the business process to be executed.
Disclosure of Invention
The embodiment of the application provides a method and a device for realizing a business process.
In a first aspect, an embodiment of the present application provides a method for implementing a business process, where the method includes: filling a business process in a preset process frame to generate an executable process, wherein the process frame comprises a pre-constructed stage processor and a flow processor; dividing a business process into a plurality of stages according to a logic sequence of the business, wherein each stage comprises a plurality of predefined events related to the business process; controlling the execution of each event in each stage by using a stage processor, and controlling each stage in the business flow to be sequentially executed according to the logic sequence of the business by using a flow processor; and responding to the completion of the execution of each stage in the business process, and sending a final page view corresponding to the business process to the user.
In some embodiments, the method further comprises: executing each stage in the business process, and marking the stage as a completed stage after the execution of any stage is completed; each event in the phases is executed and any event is marked as a completed event after its execution is completed.
In some embodiments, controlling, by the streaming processor, the stages in the business process to execute in sequence according to a logical order of the business comprises: detecting whether each stage in the business process is marked as a finished stage by using a flow processor; if so, sending a final page view corresponding to the business process to the user; if not, the flow processor calls the phase processor to control the execution of the first phase, wherein the first phase is any phase which is being executed in the business process.
In some embodiments, the method further comprises: after the execution of the first stage is finished, judging whether a second stage exists in the business process by using the flow processor, wherein the second stage is a stage arranged after the first stage in the business process; if so, redirecting to the uniform resource locator of the second stage so that the stage processor controls the execution of the second stage; and if not, sending the final page view corresponding to the business process to the user.
In some embodiments, invoking the phase handler with the streaming handler controls execution of the first phase, including: detecting whether the first phase is marked as a completed phase by using a phase processor; if yes, sending a stage completion view corresponding to the first stage to a user; if not, judging whether the first stage meets the end condition.
In some embodiments, the method further comprises: when the first phase meets the end condition, marking the first phase as a completed phase; and when the first stage does not meet the end condition, calling a pre-constructed event processing process corresponding to a first event to execute the first event, wherein the first event is any event which is executed in the first stage.
In a second aspect, an embodiment of the present application provides an apparatus for implementing a business process, where the apparatus includes: the system comprises a filling unit, a processing unit and a processing unit, wherein the filling unit is configured to fill a business process in a preset process frame to generate an executable process, and the process frame comprises a pre-constructed stage processor and a flow processor; the system comprises a dividing unit, a judging unit and a processing unit, wherein the dividing unit is configured to divide a service flow into a plurality of stages according to a logic sequence of a service, and each stage comprises a plurality of predefined events related to the service flow; the control unit is configured to control the execution of each event in each stage by using the stage processor, and control each stage in the business flow to be sequentially executed according to the logic sequence of the business by using the flow processor; and the sending unit is configured to respond to the completion of execution of each stage in the business process and send the final page view corresponding to the business process to the user.
In some embodiments, the apparatus further comprises: the first marking unit is configured to execute each stage in the business process and mark the stage as a completed stage after the execution of any stage is completed; and the second marking unit is configured to execute each event in each stage and mark the event as a completed event after the execution of any event is completed.
In some embodiments, the control unit comprises: the first detection module is configured to detect whether each stage in the business process is marked as a completed stage by using the flow processor; if so, sending a final page view corresponding to the business process to the user; if not, the flow processor calls the phase processor to control the execution of the first phase, wherein the first phase is any phase which is being executed in the business process.
In some embodiments, the apparatus further comprises: the judging unit is configured to judge whether a second stage exists in the business process by using the flow processor after the execution of the first stage is finished, wherein the second stage is a stage arranged after the first stage in the business process; if so, redirecting to the uniform resource locator of the second stage so that the stage processor controls the execution of the second stage; and if not, sending the final page view corresponding to the business process to the user.
In some embodiments, the control unit further comprises: a second detection module configured to detect whether the first stage is marked as a completed stage using the stage processor; if yes, sending a stage completion view corresponding to the first stage to a user; if not, judging whether the first stage meets the end condition.
In some embodiments, the second detection module is further configured to: when the first phase meets the end condition, marking the first phase as a completed phase; and when the first stage does not meet the end condition, calling a pre-constructed event processing process corresponding to a first event to execute the first event, wherein the first event is any event which is executed in the first stage.
The method and the device for realizing the business process, provided by the embodiment of the application, have the advantages that the business process is filled into a preset process frame to generate an executable process, the business process is divided into a plurality of stages in which events related to the business process are defined according to the sequence of business logic, then a stage processor in the process frame is used for controlling the execution of each event in each stage, a flow processor is used for controlling the sequential execution of each stage, and finally, the final page view corresponding to the business process is returned to a user in response to the completion of the execution of each stage in the business process, so that the process frame is used for controlling the execution of the business process according to the logic sequence, the complexity of business process development is reduced, and the maintenance of the business process is facilitated.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the detailed description of non-limiting embodiments made with reference to the following drawings:
FIG. 1 illustrates an exemplary system architecture diagram in which the present application may be applied;
FIG. 2 illustrates a flow diagram of one embodiment of a method for implementing a business process in accordance with the present application;
FIG. 3 shows a flow diagram of another embodiment of a method of implementing a business process in accordance with the present application;
FIG. 4 is a schematic diagram illustrating one implementation of using a streaming processor to call a phase processor to control execution of a first phase in a business process implementation in accordance with the present application;
FIG. 5 is a block diagram illustrating one embodiment of an apparatus for implementing a business process in accordance with the present application;
fig. 6 is a schematic structural diagram of a computer system suitable for implementing the terminal device or the server according to the embodiment of the present application.
Detailed Description
The present application will be described in further detail with reference to the following drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the relevant invention and not restrictive of the invention. It should be noted that, for convenience of description, only the portions related to the related invention are shown in the drawings.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
Fig. 1 illustrates an exemplary system architecture 100 to which embodiments of a business process implementation method or business process implementation apparatus of the present application may be applied.
As shown in fig. 1, the system architecture 100 may include terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 serves as a medium for providing communication links between the terminal devices 101, 102, 103 and the server 105. Network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
The user may use the terminal devices 101, 102, 103 to interact with the server 105 via the network 104 to receive or send messages or the like. Various communication client applications, such as shopping applications, web browser applications, search applications, instant messaging tools, mailbox clients, social platform software, etc., may be installed on the terminal devices 101, 102, 103.
The terminal devices 101, 102, and 103 may be various electronic devices having display screens and supporting functions such as page display, including but not limited to smart phones, tablet computers, e-book readers, MP3 players (Moving Picture Experts Group Audio Layer III, motion Picture Experts compression standard Audio Layer 3), MP4 players (Moving Picture Experts Group Audio Layer IV, motion Picture Experts compression standard Audio Layer 4), laptop portable computers, desktop computers, and the like.
The server 105 may be a server providing various services, such as a background server providing support for pages displayed on the terminal devices 101, 102, 103. The background server can divide the service flow into different stages to be executed in sequence and feed back each returned page view to the terminal equipment.
It should be noted that the implementation method of the business process provided in the embodiment of the present application is generally executed by the server 105, and accordingly, the implementation apparatus of the business process is generally disposed in the server 105.
It should be understood that the number of terminal devices, networks, and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
With continued reference to FIG. 2, a flow 200 of one embodiment of a method for implementing a business process in accordance with the present application is shown. The method for realizing the business process comprises the following steps:
step 201, filling a business process in a preset process frame to generate an executable process.
In this embodiment, an electronic device (for example, a server shown in fig. 1) on which the implementation method of the business process operates may first preset a process framework for implementing the business process. Then, the electronic device may fill the business process into the preset process framework, so that the electronic device may generate the executable process of the business process by using the process framework. It should be noted that, the electronic device may pre-construct a stage processor and a flow processor in the flow framework, so that the electronic device may control the execution of the business flow by using the stage processor and the flow processor.
Step 202, dividing the business process into a plurality of stages according to the logic sequence of the business.
In this embodiment, the business process may be subjected to logic analysis, so that the electronic device may divide the business process into a plurality of executable stages according to the sequence of the business logic based on a preset process framework. Generally, the electronic device may set a corresponding end condition for each stage divided in the service flow, and when the execution of any stage meets the end condition, the service flow may be transferred to the execution of the next stage, thereby ensuring that the service flow may operate in an organized manner according to the sequence of each stage. Furthermore, a plurality of events related to the business process may be predefined in each stage of the business process, and the electronic device may execute a code corresponding to each event in each stage. Here, according to different requirements for implementing the business process, the electronic device may customize different end conditions for each stage in the business process, thereby improving flexibility of execution of the business process.
And step 203, controlling the execution of each event in each stage by using the stage processor, and controlling the stages in the business flow to be sequentially executed according to the logic sequence of the business by using the flow processor.
In this embodiment, based on the plurality of phases divided in step 202, the electronic device may control the execution of each event defined in each phase of the business process by using a phase processor pre-constructed in the process framework, so that the electronic device completes each phase of the business process. Furthermore, the electronic device may further utilize a flow processor pre-constructed in the flow framework to control each stage in the business flow to be sequentially executed according to the sequence of the business logic, so that the electronic device may complete the business flow. For example, the business process may be divided into stage 1, stage 2, and stage 3 according to a logical sequence, the electronic device may control the stage 1, stage 2, and stage 3 to be executed in sequence by using the streaming processor built in the process framework, and when the electronic device executes each stage, the stage processor built in the process framework may control the execution of each event defined in each stage.
And step 204, responding to the completion of the execution of each stage in the business process, and sending the final page view corresponding to the business process to the user.
In this embodiment, on the premise that the execution of the business process is determined to be completed, the electronic device may send a final page view corresponding to the business process to a user. For example, the business process may be a shopping settlement process, and when the electronic device determines that the shopping settlement process is completed, it may send a final page view corresponding to the shopping settlement process, such as "payment is successful", to the user.
The method for implementing the service flow provided by the foregoing embodiment of the present application may generate an executable flow corresponding to the service flow by filling the service flow into a preset flow frame, where the service flow may be divided into a plurality of stages in which events related to the service flow are defined according to a sequence of the service logic, then a stage processor in the flow frame is used to control execution of each event in each stage, a flow processor is used to control sequential execution of each stage according to the sequence of the logic, and finally a final page view corresponding to the service flow is returned to a user in response to completion of execution of each stage in the service flow, so that logic of the service flow is separated by using the flow frame, complexity of development of the service flow is reduced, and maintenance of the service flow is facilitated.
Continuing to refer to FIG. 3, a flow 300 of another embodiment of a method of implementing a business process according to the present application is shown. The method for implementing the service flow in the embodiment may include the following steps:
step 301, filling a business process in a preset process frame to generate an executable process.
In this embodiment, an electronic device (for example, a server shown in fig. 1) on which the implementation method of the business process operates may first preset a process framework for implementing the business process. Then, the electronic device may fill the business process into the preset process frame, so that the electronic device may generate the executable process of the business process by using the process frame. It should be noted that, the electronic device may pre-construct a stage processor and a flow processor in the flow framework, so that the electronic device may control the execution of the business flow by using the stage processor and the flow processor.
Step 302, dividing the service flow into a plurality of stages according to the logic sequence of the service.
In this embodiment, the business process may be subjected to logic analysis, so that the electronic device may divide the business process into a plurality of executable stages according to the sequence of the business logic based on a preset process framework. Generally, the electronic device may set a corresponding end condition for each stage divided in the service flow, and when the execution of any stage meets the end condition, the service flow may be transferred to the execution of the next stage, thereby ensuring that the service flow may operate in an organized manner according to the sequence of each stage. Furthermore, a plurality of events related to the business process may be predefined in each stage of the business process, and the electronic device may execute a code corresponding to each event in each stage. Here, according to different requirements for implementing the business process, the electronic device may customize different end conditions for each stage in the business process, thereby improving flexibility of execution of the business process.
In some optional implementations of this embodiment, the electronic device may execute each stage in the business process, and after any stage is completed, the completed stage may be marked as a completed stage. For example, when the electronic device determines that any stage has satisfied the end condition of the stage, the electronic device may mark the stage as a completed stage. The flow processor may control the flow between the phases in the business process according to the definition of the business process, the definition of each phase, and the completion of each phase.
In some optional implementations of this embodiment, the electronic device may execute each event in each phase of the business process, and after any event is executed, may mark the completed event as a completed event. The phase processor may update the completion of each phase according to the definition of each phase, the definition of the event, and the completion of each event.
Step 303, detecting whether each stage in the business process is marked as a completed stage by using the flow processor.
In this embodiment, the electronic device may control the stages in the business process to be sequentially executed by using the streaming processor. During the execution of the business process, the electronic device may detect the completion of each stage by using the flow processor, and may determine whether each stage in the business process is marked as a completed stage. When the electronic device determines that each stage in the business process is marked as a completed stage, it may determine that the business process is completed, and then go to step 307, so that the electronic device may send a process completion view corresponding to the business process to the user. When the electronic device determines that at least one phase in the business process is not marked as a completed phase, it may go to step 304 so that it can continue to execute the incomplete phase.
At step 304, the first phase is controlled by the streaming processor invoking the phase handler.
In this embodiment, when there is at least one stage in the business process that is not marked as a completed stage based on the determination in step 303, the electronic device may first determine an executing stage in the business process, and use the executing stage as a first stage. The electronic device may then call a phase processor using the streaming processor and control execution of the first phase using the phase processor.
Step 305, after the first stage is executed, the flow processor is used to determine whether the second stage exists in the business process.
In this embodiment, after the phase controller controls the first phase to be executed, the electronic device may determine whether a second phase exists in the business process by using the flow processor. The second stage may be a stage arranged after the first stage in the business process. That is, when it is determined that the execution of the first stage is completed, the electronic apparatus may determine whether there is a next stage after the first stage using the streaming processor. If the second phase exists in the business process, go to step 306, and if the second phase does not exist in the business process, that is, after the execution of the first phase is completed, the execution of each phase in the business process is completed, go to step 307.
At step 306, the uniform resource locator to the second phase is redirected to cause the phase processor to control execution of the second phase.
In this embodiment, based on the second phase in the business process determined in step 305, the electronic device may obtain the uniform locator of the second phase and redirect to the second phase, so that the phase processor may control the execution of the second phase. Therefore, the phases in the business process can be set in different applications, and the flow processor and the phase processor in the flow framework can support the cross-application business process, so that the code reuse rate is improved. It can be understood that, when the electronic device executes the second phase, the second phase may be an executing phase, and at this time, the electronic device may continue to determine whether a next phase exists after the second phase as the first phase, and if the next phase exists, the next phase may continue to execute step 306 as the second phase, otherwise, it may be determined that all the phases in the business process are completed.
And 307, sending the final page view corresponding to the business process to the user.
In this embodiment, after the electronic device determines that all the stages in the business process have been executed, it may be determined that the business process has been executed. At this time, the electronic device may send the final page view corresponding to the business process to the user. Optionally, after any stage of the business process is completed, the stage may be marked as a completed stage, and therefore, after each stage in the business process is completed, each stage may be marked as a completed stage, and therefore, when the electronic device detects that each stage is marked as completed, the electronic device may directly send the final page view corresponding to the business process to the user.
In some alternatives, as shown in fig. 4, the invoking of the phase processor by the streaming processor to control the execution of the first phase in step 304 may be accomplished by:
step 401, using the phase processor to detect whether the first phase is marked as a completed phase.
In this implementation, when the electronic device executes each stage in the business process, the streaming processor may detect the completion of each stage in the business process, and call the stage processor to control the execution of the first stage after detecting that the first stage is being executed, so that the stage processor may detect whether the first stage is marked as a completed stage. When the phase processor determines that the first phase is marked as a completed phase, then it may proceed to step 402; when the phase processor determines that the first phase is not marked as a completed phase, it may proceed to step 403.
Step 402, sending the phase completion view corresponding to the first phase to the user.
In this implementation manner, based on the fact that the first stage determined in step 401 is already marked as a completed stage, the electronic device may obtain a stage completion view corresponding to the first stage, and return the stage completion view to the user. It can be understood that each stage in the business process may have a corresponding stage completion view, and then the stage completion view may be returned to the user after the stage is completed; or some stages in the business process do not have corresponding stage completion views, in this case, the user does not receive the returned stage completion views.
In step 403, it is determined whether the first stage meets the end condition.
In this implementation, based on the first phase determined in step 401 not being marked as a completed phase, the electronic device may continue to determine whether the first phase has satisfied an end condition. Here, different end conditions may be set for this first stage, depending on the actual requirements. When it is determined that the first stage satisfies the end condition, then step 405 may be passed to; when it is determined that the first stage does not satisfy the end condition, then it may proceed to step 404.
Step 404, invoking a pre-constructed event processing process corresponding to the first event to execute the first event.
In this implementation manner, based on that the executed first stage determined in step 403 does not satisfy the end condition, the electronic device may determine a first event currently executed in the first stage and acquire an event handler corresponding to the first event, so that the electronic device may execute the first event by using the event handler corresponding to the first event.
In some alternative implementations, the event defined by each stage in the business process may correspond to an event handler. The event handler corresponding to any event may be an event handler configured for the electronic device in advance, or the event handler corresponding to any event may also be a default event handler in the business process. Therefore, the electronic device can execute the first event by using the event handler corresponding to the first event after acquiring the event handler. Further, the first event may further correspond to an event completion view, and after the execution of the first event is completed, the electronic device may return the event completion view corresponding to the first event to the user. It can be understood that, if the event completion view corresponding to the first event is empty, the electronic device does not return to the corresponding event completion view when the execution of the first event is completed.
At step 405, the first phase is marked as a completed phase.
In this implementation, based on the first phase determined in step 403 satisfying the end condition, the electronic device may determine that the first phase has been performed and thus the electronic device may mark the first phase as a completed phase.
With further reference to fig. 5, as an implementation of the method shown in the above-mentioned figures, the present application provides an embodiment of an apparatus for implementing a business process, where the embodiment of the apparatus corresponds to the embodiment of the method shown in fig. 2, and the apparatus may be specifically applied to various electronic devices.
As shown in fig. 5, the implementation 500 of the business process of this embodiment includes: a padding unit 501, a dividing unit 502, a control unit 503, and a transmitting unit 504. The filling unit 501 is configured to fill a business process generation executable process in a preset process framework, where the process framework includes a pre-constructed stage processor and a flow processor; the dividing unit 502 is configured to divide the service flow into a plurality of stages according to a logic sequence of the service, where each stage includes a plurality of predefined events related to the service flow; the control unit 503 is configured to control the execution of each event in each stage by using the stage processor, and control each stage in the business process to be executed in sequence according to the logic sequence of the business by using the flow processor; the sending unit 504 is configured to send a final page view corresponding to the business process to the user in response to completion of execution of each stage in the business process.
In some optional implementation manners of this implementation, the apparatus 500 for implementing a business process further includes: the first marking unit is configured to execute each stage in the business process and mark the stage as a completed stage after the execution of any stage is completed; and the second marking unit is configured to execute each event in each stage and mark the event as a completed event after the execution of any event is completed.
In some optional implementations of this implementation, the control unit 503 includes: the first detection module is configured to detect whether each stage in the business process is marked as a completed stage by using the flow processor; if so, sending a final page view corresponding to the business process to the user; if not, the flow processor calls the phase processor to control the execution of the first phase, wherein the first phase is any phase which is being executed in the business process.
In some optional implementation manners of this implementation, the apparatus 500 for implementing a business process further includes: the judging unit is configured to judge whether a second stage exists in the business process by using the flow processor after the execution of the first stage is finished, wherein the second stage is a stage arranged after the first stage in the business process; if so, redirecting to the uniform resource locator of the second stage so that the stage processor controls the execution of the second stage; and if not, sending the final page view corresponding to the business process to the user.
In some optional implementations of this implementation, the control unit 503 further includes a second detection module configured to detect, by the phase processor, whether the first phase is marked as a completed phase; if yes, sending a stage completion view corresponding to the first stage to a user; if not, judging whether the first stage meets the end condition.
In some optional implementations of this implementation, the second detection module is further configured to: when the first phase meets the end condition, marking the first phase as a completed phase; and when the first stage does not meet the end condition, calling a pre-constructed event processing process corresponding to a first event to execute the first event, wherein the first event is any event which is executed in the first stage.
Referring now to FIG. 6, a block diagram of a computer system 600 suitable for use in implementing a terminal device/server of an embodiment of the present application is shown. The terminal device/server shown in fig. 6 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present application.
As shown in fig. 6, the computer system 600 includes a Central Processing Unit (CPU)601 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)602 or a program loaded from a storage section 608 into a Random Access Memory (RAM) 603. In the RAM 603, various programs and data necessary for the operation of the system 600 are also stored. The CPU 601, ROM 602, and RAM 603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
The following components are connected to the I/O interface 605: an input portion 606 including a keyboard, a mouse, and the like; an output portion 607 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage section 608 including a hard disk and the like; and a communication section 609 including a network interface card such as a LAN card, a modem, or the like. The communication section 609 performs communication processing via a network such as the internet. The driver 610 is also connected to the I/O interface 605 as needed. A removable medium 611 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 610 as necessary, so that a computer program read out therefrom is mounted in the storage section 608 as necessary.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer-readable medium, the computer program comprising program code for performing the method illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 609, and/or installed from the removable medium 611. The computer program performs the above-described functions defined in the method of the present application when executed by a Central Processing Unit (CPU) 601.
It should be noted that the computer readable medium described herein can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present application, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In this application, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present application may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present application may be implemented by software or hardware. The described units may also be provided in a processor, and may be described as: a processor includes a padding unit, a dividing unit, a control unit, and a transmitting unit. The names of these units do not form a limitation on the units themselves in some cases, and for example, a filling unit may also be described as a unit for filling a business process generation executable process in a preset process frame.
As another aspect, the present application also provides a computer-readable medium, which may be contained in the apparatus described in the above embodiments; or may be present separately and not assembled into the device. The computer readable medium carries one or more programs which, when executed by the apparatus, cause the apparatus to: filling a business flow in a preset flow frame to generate an executable flow, wherein the flow frame comprises a pre-constructed stage processor and a flow processor; dividing a business process into a plurality of stages according to a logic sequence of the business, wherein each stage comprises a plurality of predefined events related to the business process; controlling the execution of each event in each stage by using the stage processor, and controlling each stage in the service flow to be sequentially executed according to the logic sequence of the service by using the flow processor; and responding to the completion of the execution of each stage in the business process, and sending a final page view corresponding to the business process to the user.
The above description is only a preferred embodiment of the application and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the invention herein disclosed is not limited to the particular combination of features described above, but also encompasses other arrangements formed by any combination of the above features or their equivalents without departing from the spirit of the invention. For example, the above features may be replaced with (but not limited to) features having similar functions disclosed in the present application.

Claims (14)

1. A method for realizing a business process comprises the following steps:
filling a business flow in a preset flow frame to generate an executable flow, wherein the flow frame comprises a pre-constructed stage processor and a flow processor;
dividing the business process into a plurality of stages according to the logic sequence of the business, wherein each stage comprises a plurality of predefined events related to the business process;
controlling the execution of each event in each stage by using the stage processor, and controlling each stage in the business flow to be sequentially executed according to the logic sequence of the business by using the flow processor;
and responding to the completion of the execution of each stage in the business process, and sending a final page view corresponding to the business process to a user.
2. The method of claim 1, wherein the method further comprises:
executing each stage in the business process, and marking the stage as a finished stage after the execution of any stage is finished;
executing each event in each phase, and marking any event as a completed event after the execution of the event is completed.
3. The method of claim 1, wherein said controlling, with the streaming processor, the stages in the business process to execute in sequence in a logical order of business comprises:
detecting whether each stage in the business process is marked as a finished stage by using the flow processor;
if so, sending a final page view corresponding to the business process to the user;
if not, the flow processor calls the phase processor to control the execution of a first phase, wherein the first phase is any phase being executed in the business process.
4. The method of claim 3, wherein the method further comprises:
after the execution of the first stage is finished, judging whether a second stage exists in the business process by using the flow processor, wherein the second stage is a stage arranged after the first stage in the business process;
if so, redirecting a uniform resource locator to the second stage to cause the stage processor to control execution of the second stage;
and if not, sending the final page view corresponding to the business process to the user.
5. The method of claim 3, wherein said invoking the phase handler with the streaming processor controls execution of a first phase comprising:
detecting, with the phase processor, whether the first phase is marked as a completed phase;
if so, sending a stage completion view corresponding to the first stage to the user;
if not, judging whether the first stage meets the end condition.
6. The method of claim 5, wherein the method further comprises:
when the first phase meets an end condition, marking the first phase as a completed phase;
and when the first stage does not meet an end condition, calling a pre-constructed event processing process corresponding to a first event to execute the first event, wherein the first event is any event being executed in the first stage.
7. An apparatus for implementing a business process, comprising:
the system comprises a filling unit, a processing unit and a processing unit, wherein the filling unit is configured to fill a business process in a preset process frame to generate an executable process, and the process frame comprises a pre-constructed stage processor and a flow processor;
the dividing unit is configured to divide the business process into a plurality of stages according to a logic sequence of the business, wherein each stage comprises a plurality of predefined events related to the business process;
the control unit is configured to control the execution of each event in each stage by using the stage processor, and control each stage in the business flow to be sequentially executed according to the logic sequence of the business by using the flow processor;
and the sending unit is configured to respond to the completion of the execution of each stage in the business process and send a final page view corresponding to the business process to a user.
8. The apparatus of claim 7, wherein the apparatus further comprises:
a first marking unit, configured to execute each of the stages in the business process, and mark the stage as a completed stage after the execution of any of the stages is completed;
and the second marking unit is configured to execute each event in each phase and mark any event as a completed event after the execution of the event is completed.
9. The apparatus of claim 7, wherein the control unit comprises:
a first detection module configured to detect, by using the flow processor, whether each of the stages in the business process is marked as a completed stage;
if yes, sending a final page view corresponding to the business process to the user;
if not, the flow processor calls the phase processor to control the execution of a first phase, wherein the first phase is any phase being executed in the business process.
10. The apparatus of claim 9, wherein the apparatus further comprises:
the judging unit is configured to judge whether a second stage exists in the business process by using the flow processor after the execution of the first stage is finished, wherein the second stage is a stage arranged after the first stage in the business process;
if so, redirecting a uniform resource locator to the second stage to cause the stage processor to control execution of the second stage;
and if not, sending the final page view corresponding to the business process to the user.
11. The apparatus of claim 9, wherein the control unit further comprises:
a second detection module configured to detect, with the phase processor, whether the first phase is marked as a completed phase;
if so, sending a stage completion view corresponding to the first stage to the user;
if not, judging whether the first stage meets the end condition.
12. The apparatus of claim 11, wherein the second detection module is further configured to:
when the first phase meets an end condition, marking the first phase as a completed phase;
and when the first stage does not meet an end condition, calling a pre-constructed event processing process corresponding to a first event to execute the first event, wherein the first event is any event being executed in the first stage.
13. A server, comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-6.
14. 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-6.
CN201711194042.3A 2017-11-24 2017-11-24 Method and device for realizing business process Active CN109840073B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711194042.3A CN109840073B (en) 2017-11-24 2017-11-24 Method and device for realizing business process

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711194042.3A CN109840073B (en) 2017-11-24 2017-11-24 Method and device for realizing business process

Publications (2)

Publication Number Publication Date
CN109840073A CN109840073A (en) 2019-06-04
CN109840073B true CN109840073B (en) 2022-07-05

Family

ID=66877481

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711194042.3A Active CN109840073B (en) 2017-11-24 2017-11-24 Method and device for realizing business process

Country Status (1)

Country Link
CN (1) CN109840073B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112433794A (en) * 2020-11-20 2021-03-02 金蝶云科技有限公司 Method for controlling service progress of ERP system and related equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101046861A (en) * 2006-03-28 2007-10-03 富士通株式会社 Business process analysis apparatus
CN101957943A (en) * 2010-08-10 2011-01-26 张志广 Service management control system
CN102254234A (en) * 2010-05-17 2011-11-23 中兴通讯股份有限公司 Realization method of business process and workflow engine
CN102271194A (en) * 2010-06-04 2011-12-07 中兴通讯股份有限公司 Interactive voice response service development method and system
CA2984488A1 (en) * 2015-04-28 2016-11-03 Nadia Analia Huebra Process and system for automatic generation of functional architecture documents and software design and analysis specification documents from natural language

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101046861A (en) * 2006-03-28 2007-10-03 富士通株式会社 Business process analysis apparatus
CN102254234A (en) * 2010-05-17 2011-11-23 中兴通讯股份有限公司 Realization method of business process and workflow engine
CN102271194A (en) * 2010-06-04 2011-12-07 中兴通讯股份有限公司 Interactive voice response service development method and system
CN101957943A (en) * 2010-08-10 2011-01-26 张志广 Service management control system
CA2984488A1 (en) * 2015-04-28 2016-11-03 Nadia Analia Huebra Process and system for automatic generation of functional architecture documents and software design and analysis specification documents from natural language

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
业务流程管理在内部控制体系设计中的分析研究;魏华;《企业文化》;20161231;第205-206页 *

Also Published As

Publication number Publication date
CN109840073A (en) 2019-06-04

Similar Documents

Publication Publication Date Title
CN109582317B (en) Method and apparatus for debugging hosted applications
CN113760488A (en) Method, device, equipment and computer readable medium for scheduling task
US20200007959A1 (en) Method and apparatus for publishing information, and method and apparatus for processing information
CN115495175A (en) Picture display method and device, terminal equipment and computer medium
CN110795328A (en) Interface testing method and device
CN109840073B (en) Method and device for realizing business process
CN110717992B (en) Method, apparatus, computer system and readable storage medium for scheduling model
CN111881392A (en) Page display method and device
CN111176641A (en) Flow node execution method, device, medium and electronic equipment
CN108804442B (en) Serial number generation method and device
CN113835790B (en) Paging page display method and device based on Android
CN110888583B (en) Page display method, system and device and electronic equipment
CN112925521A (en) Interface generation method and device
CN111131359B (en) Method and apparatus for generating information
CN111125503B (en) Method and apparatus for generating information
CN109299223B (en) Method and device for inquiring instruction
CN111131354B (en) Method and apparatus for generating information
CN113448578A (en) Page data processing method, processing system, electronic device and readable storage medium
CN113822745A (en) Article display method and device
CN108984426B (en) Method and apparatus for processing data
CN113378346A (en) Method and device for model simulation
CN111131355B (en) Method and apparatus for processing information
CN114202046B (en) Method, device, equipment and medium for generating two-dimension code based on SAP system
CN113220293B (en) Page display method, page display device, electronic equipment and computer readable medium
CN111125676B (en) Joint authorization method and device

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