CN113592455A - Flow creation method, device, equipment and storage medium - Google Patents

Flow creation method, device, equipment and storage medium Download PDF

Info

Publication number
CN113592455A
CN113592455A CN202110883958.XA CN202110883958A CN113592455A CN 113592455 A CN113592455 A CN 113592455A CN 202110883958 A CN202110883958 A CN 202110883958A CN 113592455 A CN113592455 A CN 113592455A
Authority
CN
China
Prior art keywords
sub
work order
processed
flow
processes
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110883958.XA
Other languages
Chinese (zh)
Inventor
纪长青
葛鑫鑫
杨佑君
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group 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 China United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN202110883958.XA priority Critical patent/CN113592455A/en
Publication of CN113592455A publication Critical patent/CN113592455A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management
    • G06Q10/103Workflow collaboration or project management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0633Workflow analysis

Landscapes

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

Abstract

The method comprises the steps of obtaining a work order state of a main process to be processed, wherein the change of the work order state represents the flow circulation of the main process, further determining each sub-process corresponding to the main process to be processed, obtaining the work order state of a sub-process i in each sub-process, associating the work order state with the work order state, wherein the change of the work order state represents the flow circulation of the sub-process i, and when the main process is finished, taking the sub-process i as a new main process to be processed, and re-executing the steps until all the processes are finished. The method and the device for processing the sub-process flow map change of the complex multi-stage sub-process have the advantages that the state mode is used as a core, the process flow is mapped to the change of the state, the states are relatively independent, the complex multi-stage sub-process has good expansibility and flexibility, the sub-process is not strongly bound with the main process node, and the method and the device for processing the complex multi-stage sub-process flow can efficiently support the situation that the sub-process flow with unfixed main process node exists.

Description

Flow creation method, device, equipment and storage medium
Technical Field
The present application relates to the field of process technologies, and in particular, to a process creation method, an apparatus, a device, and a storage medium.
Background
With the continuous development of technology, information systems have been applied to a variety of fields. Taking enterprises as an example, the dependence of enterprises on information systems is increasing day by day, and especially when the scale of enterprises is gradually enlarged, in order to make the communication execution inside the enterprises more efficient, in a modern enterprise management system, the electronic operation of transactions is realized through a computer network, and the transaction processing time can be shortened, the work execution efficiency is improved, and the competitive advantage is strengthened by depending on the electronic process management.
When an existing enterprise manages a process, templates of a main process and sub-processes are configured and loaded into a process engine. And executing the main process node in the process of flow operation, if the main process node is not the last node of the main process, dynamically loading and starting the sub-processes, executing the sub-processes and judging whether the current sub-process node is the last node of the sub-processes, if so, returning to the main process to continue execution until the main process is finished.
Thus, in the prior art, the sub-processes need to be strongly bound to the nodes in the main process, and the sub-processes are triggered when the main process is executed to a certain node. Aiming at multi-level complex sub-processes or sub-processes with unfixed main process nodes and the like, the existing process management technology has poor flexibility or cannot effectively support.
Disclosure of Invention
In order to solve the problems in the prior art, the present application provides a process creation method, apparatus, device, and storage medium.
In a first aspect, an embodiment of the present application provides a flow creating method, including the following steps:
acquiring a first work order state of a main flow to be processed, wherein the change of the first work order state represents the flow circulation of the main flow to be processed;
determining each sub-process corresponding to the main process to be processed;
acquiring a second work order state of a sub-process i in each sub-process, and associating the second work order state with the first work order state, wherein the sub-process i is any one of the sub-processes, i is 1,2, … …, n, n is equal to the number of the sub-processes, and the change of the second work order state represents a process flow of the sub-process i;
and if the main process is finished, taking the sub-process i as a new main process to be processed, and re-executing the step of determining each sub-process corresponding to the main process to be processed until all the processes are finished.
In a possible implementation manner, the acquiring a first work order state of a main flow to be processed includes:
determining work order states of a plurality of processes according to a preset factory mode, wherein the plurality of processes comprise a plurality of main processes and a plurality of sub-processes;
putting the work order states of the plurality of processes into a preset factory class;
and acquiring a first work order state of the main flow to be processed from the preset factory class.
In a possible implementation manner, the first work order state includes a state code of the main flow to be processed, the state code is used to obtain a context object of the first work order state, the context object of the first work order state corresponds to the main flow to be processed, and a behavior of the context object of the first work order state changes correspondingly according to a change of the first work order state.
In a possible implementation manner, the determining each sub-process corresponding to the main process to be processed includes:
acquiring a corresponding relation between a main flow and a sub-flow which are prestored;
and determining each sub-process corresponding to the main process to be processed according to the corresponding relation.
In a possible implementation manner, if the main process is ended, taking the sub-process i as a new main process to be processed, and re-executing the step of determining each sub-process corresponding to the main process to be processed until all the processes are ended includes:
judging whether the main process is finished or not according to the corresponding relation between the pre-stored main process and the sub-processes;
and if the main process is finished, taking the sub-process i as a new main process to be processed, and re-executing the step of determining each sub-process corresponding to the main process to be processed until all the processes are finished.
In a second aspect, an embodiment of the present application provides a flow creation apparatus, where the apparatus includes:
the system comprises a first acquisition module, a second acquisition module and a processing module, wherein the first acquisition module is used for acquiring a first work order state of a main flow to be processed, and the change of the first work order state represents the flow circulation of the main flow to be processed;
the determining module is used for determining each sub-process corresponding to the main process to be processed;
a second obtaining module, configured to obtain a second work order state of a sub-process i in each sub-process, and associate the second work order state with the first work order state, where the sub-process i is any one of the sub-processes, i is 1,2, … …, n, n is equal to the number of the sub-processes, and a change in the second work order state indicates a process flow of the sub-process i;
and the determining module is further configured to, if the main process is ended, take the sub-process i as a new main process to be processed, and re-execute the step of determining each sub-process corresponding to the main process to be processed until all the processes are ended.
In a possible implementation manner, the first obtaining module is specifically configured to:
determining work order states of a plurality of processes according to a preset factory mode, wherein the plurality of processes comprise a plurality of main processes and a plurality of sub-processes;
putting the work order states of the plurality of processes into a preset factory class;
and acquiring a first work order state of the main flow to be processed from the preset factory class.
In a possible implementation manner, the first work order state includes a state code of the main flow to be processed, the state code is used to obtain a context object of the first work order state, the context object of the first work order state corresponds to the main flow to be processed, and a behavior of the context object of the first work order state changes correspondingly according to a change of the first work order state.
In a possible implementation manner, the determining module is specifically configured to:
acquiring a corresponding relation between a main flow and a sub-flow which are prestored;
and determining each sub-process corresponding to the main process to be processed according to the corresponding relation.
In a possible implementation manner, the determining module is specifically configured to:
judging whether the main process is finished or not according to the corresponding relation between the pre-stored main process and the sub-processes;
and if the main process is finished, taking the sub-process i as a new main process to be processed, and re-executing the step of determining each sub-process corresponding to the main process to be processed until all the processes are finished.
In a third aspect, an embodiment of the present application provides a flow creating apparatus, including:
a processor;
a memory; and
a computer program;
wherein the computer program is stored in the memory and configured to be executed by the processor, the computer program comprising instructions for performing the method of the first aspect.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, where a computer program is stored, and the computer program causes a server to execute the method according to the first aspect.
In a fifth aspect, the present application provides a computer program product, which includes computer instructions for executing the method of the first aspect by a processor.
According to the flow creation method, the flow creation device, the flow creation equipment and the storage medium, a first work order state of a main flow to be processed is obtained, a change of the first work order state represents a flow of the main flow to be processed, each sub-flow corresponding to the main flow to be processed is further determined, a second work order state of a sub-flow i in each sub-flow is obtained, the second work order state is associated with the first work order state, the sub-flow i is any one sub-flow in each sub-flow, the change of the second work order state represents a flow of the sub-flow i, and then when the main flow is finished, the sub-flow i is used as a new main flow to be processed, the steps are executed again until all the flows are finished. The method and the device for processing the sub-processes have the advantages that the state mode is used as a core, the process flow is mapped to the change of the state, the states are relatively independent, and the method and the device have good expansibility and flexibility for the complex multi-stage sub-processes. In addition, the embodiment of the application does not carry out strong binding of the sub-process and the main process node, and can efficiently support the condition that the sub-process flow with the unfixed main process node exists. In addition, the embodiment of the application does not depend on any third-party framework, and has the advantages of light weight and strong expansibility.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.
Fig. 1 is a schematic diagram of a flow creation system architecture according to an embodiment of the present application;
fig. 2 is a schematic flowchart of a flow creation method according to an embodiment of the present application;
fig. 3 is a schematic diagram of a dynamic sub-process implementation provided in an embodiment of the present application;
fig. 4 is a schematic flowchart of another flow creation method provided in the embodiment of the present application;
fig. 5 is a schematic structural diagram of a flow creation apparatus according to an embodiment of the present application;
fig. 6 is a schematic diagram of a basic hardware architecture of a flow creation device provided in the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms "first," "second," "third," and "fourth," if any, in the description and claims of this application and the above-described figures are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
For a workflow with complex multi-level sub-processes, in the prior art, the sub-processes need to be strongly bound with nodes in a main process, a plurality of sub-processes are nested, and the workflow is high in complexity and poor in flexibility. Moreover, for a process in which a main process node is not fixed, the existing mode in which the main process node must be bound cannot be effectively supported, for example, for a cross-level dismantling process in which province level crosses over a city and directly reaches a district or county, the district or county sub-process in the prior art binds a city sub-process node, and the local city sub-process binds a province sub-process node again cannot be effectively supported.
Therefore, the flow creation method provided by the embodiment of the application takes the state mode as a core, maps the flow to the change of the state, is relatively independent among the states, and has good expansibility and flexibility for complex multi-stage sub-flows.
Optionally, a flow creation method provided in the present application may be applied to the schematic architecture of the flow creation system shown in fig. 1, and as shown in fig. 1, the system may include at least one of a receiving device 101, a processing device 102, and a display device 103.
In a specific implementation process, the receiving device 101 may be an input/output interface or a communication interface, and may be configured to receive a work order state of a main flow, where a change in the work order state indicates a flow of the main flow.
The processing device 102 may acquire the work order status of the main process through the receiving device 101, further determine each sub-process corresponding to the main process, acquire the work order status of each sub-process, associate the work order status with the work order status of the corresponding main process, and after the main process is finished, repeat the above steps with the sub-process as a new main process until all the processes are finished. That is, the processing device 102 maps the flow to the change of the state by taking the state mode as the core, each state is relatively independent, and the processing device has good expansibility and flexibility for complex multi-stage sub-flows, and the processing device 102 does not perform strong binding of the sub-flows and the main flow node, and can efficiently support the situation that the sub-flow flows with unfixed main flow nodes exist.
The display device 103 may be used to display the work order status of the main flow, the work order status of the sub-flow, and the like.
The display device may also be a touch display screen for receiving user instructions while displaying the above-mentioned content to enable interaction with a user.
It should be understood that the processing device may be implemented by a processor reading instructions in a memory and executing the instructions, or may be implemented by a chip circuit.
The system is only an exemplary system, and when the system is implemented, the system can be set according to application requirements.
It is to be understood that the illustrated structure of the embodiments of the present application does not form a specific limitation to the architecture of the flow creation system. In other possible embodiments of the present application, the foregoing architecture may include more or less components than those shown in the drawings, or combine some components, or split some components, or arrange different components, which may be determined according to practical application scenarios, and is not limited herein. The components shown in fig. 1 may be implemented in hardware, software, or a combination of software and hardware.
In addition, the system architecture described in the embodiment of the present application is for more clearly illustrating the technical solution of the embodiment of the present application, and does not form a limitation on the technical solution provided in the embodiment of the present application, and it can be known by a person skilled in the art that the technical solution provided in the embodiment of the present application is also applicable to similar technical problems along with the evolution of the system architecture and the appearance of new service scenarios.
The technical solutions of the present application are described below with several embodiments as examples, and the same or similar concepts or processes may not be described in detail in some embodiments.
Fig. 2 is a schematic flow diagram of a flow creation method provided in an embodiment of the present application, where an execution subject of the embodiment may be a processing device in the embodiment shown in fig. 1, and as shown in fig. 2, the method may include:
s201: and acquiring a first work order state of the main flow to be processed, wherein the change of the first work order state represents the flow circulation of the main flow to be processed.
Here, the main flow to be processed may be determined according to actual situations, for example, as shown in fig. 3, this example is a flow initiated by a headquarters, and after being reviewed by the headquarters, the flow is split into a plurality of provinces and executors, after being reviewed by the headquarters, the flow is split into a lower local city and executors, after being processed by the local city, the flow is split into a prefecture and an executors, after being processed by the prefecture and the prefecture, the flow is split into the executors, and finally, the flow is ended after being processed by the executors. The main flow to be processed may be a flow initiated by the headquarters in fig. 3. In addition, fig. 3 also shows a flow of processing for returning to the sponsor after the headquarter review.
In an embodiment of the present application, the processing device defines a state set in advance. For example, the processing device may determine the work order status of a plurality of processes according to a preset plant model, wherein the plurality of processes includes a plurality of main processes and a plurality of sub-processes, and then place the work order status of the plurality of processes into a preset plant class. Therefore, the processing device can obtain the first work order state of the main flow to be processed from the preset factory class, and is simple, convenient and suitable for application.
In addition, the first work order state may include a state code of the main flow to be processed, the state code being used to obtain a context object of the first work order state, the context object of the first work order state corresponding to the main flow to be processed, and a behavior of the context object changing according to a change of the first work order state.
Here, the processing device may define the state based on a factory mode: and defining a plant class StateFactory, putting state nodes into the plant class, and also defining an OrderState interface and an entity class of each state for realizing the OrderState interface. The processing device can acquire the OrderState object by transmitting the status code to the StateFactory. For example, as shown in fig. 3, statefactory.get (10) may obtain the province distribution state object, statefactory.get (20) may obtain the city distribution state object, statefactory.get (30) may obtain the district and county distribution state object, and the like, which are not described herein with reference to fig. 3. The processing device can flexibly add, delete and modify the state in such a way, and a caller can create a target state object by calling a uniform interface.
In this embodiment, the processing device may define the flow based on the state mode, make the flow of the flow depend on the change of the state, and change the execution action of the flow, that is, the behavior of the context object when the state changes. The processing device can define the State class and the OrderState interface for all the State values, and then define the Context class to represent a class with a certain State that can change along with the State change. The processing device can conveniently add new states by using the state mode to put all the behaviors related to a certain state into a class, and the behavior of the object can be changed only by changing the state of the object.
Furthermore, the processing means may define a generic method in the OrderState interface to represent changes of state nodes, such as commit, pass, rollback, etc. These methods can be implemented or specific processing methods defined in the State classes. These treatment methods consist of two parts: changes to the context object (context object) behavior represent process flows, the processing operations on process work orders. The processing device sets the flow actions in such a way, so that the general processing actions and the processing actions in a certain specific state can be conveniently added and modified, and the complex flow is easier to maintain.
S202: and determining each sub-process corresponding to the main process to be processed.
Here, taking fig. 3 as an example, if the main flow to be processed is a flow initiated by the headquarters, the processing apparatus may determine a plurality of sub-flows split by the province and the executive shown in fig. 3 as respective sub-flows corresponding to the main flow to be processed.
S203: and acquiring a second work order state of a sub-process i in each sub-process, wherein the second work order state is associated with the first work order state, the sub-process i is any one of the sub-processes, i is 1,2, … …, n is equal to the number of the sub-processes, and the change of the second work order state represents the flow of the sub-process i.
Illustratively, the second work order state includes a state code of a sub-process i, where the state code is used to obtain a context object of the second work order state, the context object corresponds to the sub-process i, and a behavior of the context object changes correspondingly according to a change of the second work order state. For example, the main process to be processed corresponds to a context object in a groupworderstate state, the behavior of the context object changes correspondingly according to the change of the groupworderstate state, each of the sub-process work orders corresponds to a context object in a providencorderstate state, and the behavior of the context object changes correspondingly according to the change of the providencorderstate state.
S204: and if the main process is finished, taking the sub-process i as a new main process to be processed, and re-executing the step of determining each sub-process corresponding to the main process to be processed until all the processes are finished.
Here, taking fig. 3 as an example, if the main flow to be processed is a flow initiated by the headquarters, the processing apparatus may determine that a plurality of sub-flows split by the province and the executor shown in fig. 3 are each sub-flows corresponding to the main flow to be processed, and after the province processing is completed, continue splitting the sub-flows with reference to the delivery to a plurality of cities and executors until the main flow to be processed is completed.
In this way, in the above-mentioned flow, each sub-flow operates independently, the above-mentioned processing device can also associate the first work order state with the second work order state, namely GroupOrderState and ProvinceOrderState information, can meet the complex business requirements such as dynamically creating sub-flows and cross-node flow circulation, and have high flexibility, expansibility and easy maintainability.
In the embodiment of the application, a first work order state of a main flow to be processed is obtained, a change of the first work order state indicates a flow of the main flow to be processed, each sub-flow corresponding to the main flow to be processed is further determined, a second work order state of a sub-flow i in each sub-flow is obtained, the second work order state is associated with the first work order state, the sub-flow i is any one of the sub-flows, the change of the second work order state indicates a flow of the sub-flow i, and then when the main flow is finished, the sub-flow i is used as a new main flow to be processed, and the steps are executed again until all the flows are finished. The method and the device for processing the sub-process flow map change of the complex multi-stage sub-process have the advantages that the state mode is used as a core, the process flow is mapped to the change of the state, the states are relatively independent, the complex multi-stage sub-process has good expansibility and flexibility, the sub-process is not strongly bound with the main process node, and the method and the device for processing the complex multi-stage sub-process flow can efficiently support the situation that the sub-process flow with unfixed main process node exists. In addition, the embodiment of the application does not depend on any third-party framework, and has the advantages of light weight and strong expansibility.
In addition, in the embodiment of the present application, when determining each sub-process corresponding to the main process to be processed, a correspondence between a pre-stored main process and a pre-stored sub-process may be obtained, and then each sub-process corresponding to the main process to be processed is determined according to the correspondence. In addition, in the embodiment of the present invention, it may be determined whether the main process is ended according to the correspondence relationship, so that when the main process is not ended, the sub-process i is taken as a new main process to be processed, and the step of determining each sub-process corresponding to the main process to be processed is executed again until all the main processes are ended. Fig. 4 is a flowchart illustrating another flowchart creating method according to an embodiment of the present application. As shown in fig. 4, the method includes:
s401: and acquiring a first work order state of the main flow to be processed, wherein the change of the first work order state represents the flow circulation of the main flow to be processed.
In step S401, refer to the related description of step S201, which is not described herein again.
S402: and acquiring the corresponding relation between the main flow and the sub-flow which are prestored.
The correspondence may be determined according to actual conditions, for example, as shown in fig. 3, the sub-process corresponding to the flow initiated by the headquarter includes a plurality of provinces and a flow processed by the executor, and the sub-process corresponding to the flow initiated by the province includes a flow processed by a lower place city and the executor, and the like.
S403: and determining each sub-process corresponding to the main process to be processed according to the corresponding relation.
S404: and acquiring a second work order state of a sub-process i in each sub-process, wherein the second work order state is associated with the first work order state, the sub-process i is any one of the sub-processes, i is 1,2, … …, n is equal to the number of the sub-processes, and the change of the second work order state represents the flow of the sub-process i.
In step S404, refer to the related description of step S203, which is not described herein again.
S405: and judging whether the main process is finished or not according to the corresponding relation.
Here, the processing device may determine whether each main process has a corresponding sub-process according to the correspondence, and if not, determine that the main process is ended, otherwise, determine that the main process is not ended.
S406: and if the main process is finished, taking the sub-process i as a new main process to be processed, and re-executing the step of determining each sub-process corresponding to the main process to be processed until all the processes are finished.
Step S406 refers to the related description of step S204, and is not described herein again.
In the embodiment of the present application, when determining each sub-process corresponding to the main process to be processed, it is considered to obtain a corresponding relationship between a pre-stored main process and a pre-stored sub-process, and then, according to the corresponding relationship, each sub-process corresponding to the main process to be processed is determined, which is simple and convenient. In addition, the method and the device have the advantages that the state mode is used as a core, the process flow is mapped to the change of the state, the states are relatively independent, and the method and the device have good expansibility and flexibility for complex multi-level sub-processes.
Fig. 5 is a schematic structural diagram of a flow creation apparatus according to an embodiment of the present application, corresponding to the flow creation method according to the foregoing embodiment. For convenience of explanation, only portions related to the embodiments of the present application are shown. Fig. 5 is a schematic structural diagram of a flow creation apparatus according to an embodiment of the present application, where the flow creation apparatus 50 includes: a first obtaining module 501, a determining module 502 and a second obtaining module 503. The flow creation means here may be the processing means device itself described above, or a chip or an integrated circuit that realizes the functions of the processing means described above. It should be noted that the division of the first obtaining module, the determining module and the second obtaining module is only a division of logical functions, and the two may be integrated or independent physically.
The first obtaining module 501 is configured to obtain a first work order state of a main flow to be processed, where a change in the first work order state indicates a flow of the main flow to be processed.
A determining module 502, configured to determine each sub-process corresponding to the main process to be processed.
A second obtaining module 503, configured to obtain a second work order state of a sub-process i in each sub-process, and associate the second work order state with the first work order state, where the sub-process i is any one of the sub-processes, i is 1,2, … …, n is equal to the number of the sub-processes, and a change in the second work order state indicates a process flow of the sub-process i.
The determining module 502 is further configured to, if the main process is ended, take the sub-process i as a new main process to be processed, and re-execute the step of determining each sub-process corresponding to the main process to be processed until all the processes are ended.
In a possible implementation manner, the first obtaining module 501 is specifically configured to:
determining work order states of a plurality of processes according to a preset factory mode, wherein the plurality of processes comprise a plurality of main processes and a plurality of sub-processes;
putting the work order states of the plurality of processes into a preset factory class;
and acquiring a first work order state of the main flow to be processed from the preset factory class.
In a possible implementation manner, the first work order state includes a state code of the main flow to be processed, the state code is used to obtain a context object of the first work order state, the context object of the first work order state corresponds to the main flow to be processed, and a behavior of the context object of the first work order state changes correspondingly according to a change of the first work order state.
In a possible implementation manner, the determining module 502 is specifically configured to:
acquiring a corresponding relation between a main flow and a sub-flow which are prestored;
and determining each sub-process corresponding to the main process to be processed according to the corresponding relation.
In a possible implementation manner, the determining module 502 is specifically configured to:
judging whether the main process is finished or not according to the corresponding relation between the pre-stored main process and the sub-processes;
and if the main process is finished, taking the sub-process i as a new main process to be processed, and re-executing the step of determining each sub-process corresponding to the main process to be processed until all the processes are finished.
The apparatus provided in the embodiment of the present application may be configured to implement the technical solution of the method embodiment, and the implementation principle and the technical effect are similar, which are not described herein again in the embodiment of the present application.
Alternatively, fig. 6 schematically provides a possible basic hardware architecture of the flow creation device described in the present application, respectively.
Referring to fig. 6, the flow creation device includes at least one processor 601 and a communication interface 603. Further optionally, a memory 602 and a bus 604 may also be included.
In the flow creation device, the number of the processors 601 may be one or more, and fig. 6 only illustrates one of the processors 601. Alternatively, the processor 601 may be a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), or a Digital Signal Processor (DSP). If the flow creation device has multiple processors 601, the types of the multiple processors 601 may be different, or may be the same. Alternatively, the plurality of processors 601 of the flow creation device may also be integrated into a multi-core processor.
Memory 602 stores computer instructions and data; the memory 602 may store computer instructions and data required to implement the above-described flow creation methods provided herein, e.g., the memory 602 stores instructions for implementing the steps of the above-described flow creation methods. The memory 602 may be any one or any combination of the following storage media: nonvolatile memory (e.g., Read Only Memory (ROM), Solid State Disk (SSD), hard disk (HDD), optical disk), volatile memory.
The communication interface 603 may provide information input/output for the at least one processor. Any one or any combination of the following devices may also be included: a network interface (e.g., an ethernet interface), a wireless network card, etc. having a network access function.
Optionally, the communication interface 603 can also be used for data communication between the process creation device and other computing devices or terminals.
Further alternatively, fig. 6 shows the bus 604 as a thick line. The bus 604 may connect the processor 601 with the memory 602 and the communication interface 603. Thus, via bus 604, processor 601 may access memory 602 and may also interact with other computing devices or terminals using communication interface 603.
In the present application, the flow creation device executes computer instructions in the memory 602, so that the flow creation device implements the flow creation method provided in the present application, or the flow creation device deploys the flow creation apparatus.
From the viewpoint of logical functional division, illustratively, as shown in fig. 6, a first obtaining module 501, a determining module 502 and a second obtaining module 503 may be included in the memory 602. The inclusion herein merely refers to that the instructions stored in the memory may, when executed, implement the functions of the first obtaining module, the determining module and the second obtaining module, respectively, and is not limited to a physical structure.
The flow creation means may be implemented by software as shown in fig. 6, or may be implemented by hardware as a hardware module or a circuit unit.
The present application provides a computer-readable storage medium, the computer program product comprising computer instructions that instruct a computing device to perform the above-described flow creation method provided herein.
An embodiment of the present application provides a computer program product, which includes computer instructions, where the computer instructions are executed by a processor to perform the above-mentioned process creation method provided in the present application.
The present application provides a chip comprising at least one processor and a communication interface providing information input and/or output for the at least one processor. Further, the chip may also include at least one memory for storing computer instructions. The at least one processor is used for calling and executing the computer instructions to execute the above flow creation method provided by the present application.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.

Claims (10)

1. A process creation method, comprising:
acquiring a first work order state of a main flow to be processed, wherein the change of the first work order state represents the flow circulation of the main flow to be processed;
determining each sub-process corresponding to the main process to be processed;
acquiring a second work order state of a sub-process i in each sub-process, and associating the second work order state with the first work order state, wherein the sub-process i is any one of the sub-processes, i is 1,2, … …, n, n is equal to the number of the sub-processes, and the change of the second work order state represents a process flow of the sub-process i;
and if the main process is finished, taking the sub-process i as a new main process to be processed, and re-executing the step of determining each sub-process corresponding to the main process to be processed until all the processes are finished.
2. The method of claim 1, wherein said obtaining a first work order status of a main process to be processed comprises:
determining work order states of a plurality of processes according to a preset factory mode, wherein the plurality of processes comprise a plurality of main processes and a plurality of sub-processes;
putting the work order states of the plurality of processes into a preset factory class;
and acquiring a first work order state of the main flow to be processed from the preset factory class.
3. The method according to claim 1, wherein the first work order state comprises a state code of the main process to be processed, the state code is used to obtain a context object of the first work order state, the context object of the first work order state corresponds to the main process to be processed, and a behavior of the context object of the first work order state changes correspondingly according to a change of the first work order state.
4. The method according to any one of claims 1 to 3, wherein the determining each sub-process corresponding to the main process to be processed comprises:
acquiring a corresponding relation between a main flow and a sub-flow which are prestored;
and determining each sub-process corresponding to the main process to be processed according to the corresponding relation.
5. The method according to any one of claims 1 to 3, wherein, if the main process is finished, regarding the sub-process i as a new main process to be processed, and re-executing the step of determining each sub-process corresponding to the main process to be processed until all the processes are finished, comprises:
judging whether the main process is finished or not according to the corresponding relation between the pre-stored main process and the sub-processes;
and if the main process is finished, taking the sub-process i as a new main process to be processed, and re-executing the step of determining each sub-process corresponding to the main process to be processed until all the processes are finished.
6. A flow creation apparatus, comprising:
the system comprises a first acquisition module, a second acquisition module and a processing module, wherein the first acquisition module is used for acquiring a first work order state of a main flow to be processed, and the change of the first work order state represents the flow circulation of the main flow to be processed;
the determining module is used for determining each sub-process corresponding to the main process to be processed;
a second obtaining module, configured to obtain a second work order state of a sub-process i in each sub-process, and associate the second work order state with the first work order state, where the sub-process i is any one of the sub-processes, i is 1,2, … …, n, n is equal to the number of the sub-processes, and a change in the second work order state indicates a process flow of the sub-process i;
and the determining module is further configured to, if the main process is ended, take the sub-process i as a new main process to be processed, and re-execute the step of determining each sub-process corresponding to the main process to be processed until all the processes are ended.
7. The apparatus of claim 6, wherein the first obtaining module is specifically configured to:
determining work order states of a plurality of processes according to a preset factory mode, wherein the plurality of processes comprise a plurality of main processes and a plurality of sub-processes;
putting the work order states of the plurality of processes into a preset factory class;
and acquiring a first work order state of the main flow to be processed from the preset factory class.
8. A flow creation apparatus, comprising:
a processor;
a memory; and
a computer program;
wherein the computer program is stored in the memory and configured to be executed by the processor, the computer program comprising instructions for performing the method of any of claims 1-5.
9. A computer-readable storage medium, characterized in that it stores a computer program that causes a server to execute the method of any one of claims 1-5.
10. A computer program product comprising computer instructions for executing the method of any one of claims 1 to 5 by a processor.
CN202110883958.XA 2021-08-03 2021-08-03 Flow creation method, device, equipment and storage medium Pending CN113592455A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110883958.XA CN113592455A (en) 2021-08-03 2021-08-03 Flow creation method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110883958.XA CN113592455A (en) 2021-08-03 2021-08-03 Flow creation method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113592455A true CN113592455A (en) 2021-11-02

Family

ID=78254396

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110883958.XA Pending CN113592455A (en) 2021-08-03 2021-08-03 Flow creation method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113592455A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103246945A (en) * 2012-02-07 2013-08-14 阿里巴巴集团控股有限公司 Business-based flow processing method and system
CN106548261A (en) * 2015-09-21 2017-03-29 阿里巴巴集团控股有限公司 A kind of Business Process Control method, device and electronic equipment
CN107146074A (en) * 2017-05-27 2017-09-08 深圳市名通科技股份有限公司 Work order task cooperation processing method, device and computer-readable recording medium
CN108241671A (en) * 2016-12-26 2018-07-03 北京京东尚科信息技术有限公司 Method and device for business processing
CN109104297A (en) * 2018-07-09 2018-12-28 中国银行股份有限公司 A kind of processing method and processing device of operation flow

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103246945A (en) * 2012-02-07 2013-08-14 阿里巴巴集团控股有限公司 Business-based flow processing method and system
CN106548261A (en) * 2015-09-21 2017-03-29 阿里巴巴集团控股有限公司 A kind of Business Process Control method, device and electronic equipment
CN108241671A (en) * 2016-12-26 2018-07-03 北京京东尚科信息技术有限公司 Method and device for business processing
CN107146074A (en) * 2017-05-27 2017-09-08 深圳市名通科技股份有限公司 Work order task cooperation processing method, device and computer-readable recording medium
CN109104297A (en) * 2018-07-09 2018-12-28 中国银行股份有限公司 A kind of processing method and processing device of operation flow

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
中公教育优就业研究院: "《Python高效开发指南》", 31 May 2020, 陕西科学技术出版社, pages: 199 - 200 *
黄永忠等: "《面向对象方法与技术基础》", 31 May 2006, 国防工业出版社, pages: 314 - 315 *

Similar Documents

Publication Publication Date Title
CN111221726A (en) Test data generation method and device, storage medium and intelligent equipment
CN110008018B (en) Batch task processing method, device and equipment
CN111899008B (en) Resource transfer method, device, equipment and system
CN110163572B (en) Chain code function processing method, device and equipment
CN111756779B (en) Data serialization processing method, device and computer system
CN108830705B (en) Method, device and equipment for summarizing transaction data
CN110852559A (en) Resource allocation method and device, storage medium and electronic device
CN110750530A (en) Service system and data checking method thereof
CN111445299A (en) Invoice issuing method and equipment
CN114881616A (en) Business process execution method and device, electronic equipment and storage medium
CN113312259B (en) Interface testing method and device
CN113360043A (en) Service processing method and device
CN112258244A (en) Method, device, equipment and storage medium for determining task of target object
CN111539730A (en) Data processing method and device based on block chain and electronic equipment
CN116911763A (en) Flow approval method, device, terminal equipment and storage medium
CN111191180A (en) Method and device for constructing micro-service system in invoice field and storage medium
CN113592455A (en) Flow creation method, device, equipment and storage medium
CN112860412A (en) Service data processing method and device, electronic equipment and storage medium
CN111209283A (en) Data processing method and device
CN113450062A (en) Project information processing method, system, electronic device and storage medium
CN113448960A (en) Method and device for importing form file
CN109636324B (en) Electronic service contract processing method and device
CN106557359B (en) Task scheduling method and system
CN113205421A (en) Accounting method and device for financial products
CN114968223A (en) Pipeline arranging method, device, 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