CN108009799B - Method and device for persistence of workflow, storage medium and electronic equipment - Google Patents

Method and device for persistence of workflow, storage medium and electronic equipment Download PDF

Info

Publication number
CN108009799B
CN108009799B CN201711395327.3A CN201711395327A CN108009799B CN 108009799 B CN108009799 B CN 108009799B CN 201711395327 A CN201711395327 A CN 201711395327A CN 108009799 B CN108009799 B CN 108009799B
Authority
CN
China
Prior art keywords
node
new
changed
workflow
preset flow
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
CN201711395327.3A
Other languages
Chinese (zh)
Other versions
CN108009799A (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.)
Taikang Insurance Group Co Ltd
Original Assignee
Taikang Insurance 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 Taikang Insurance Group Co Ltd filed Critical Taikang Insurance Group Co Ltd
Priority to CN201711395327.3A priority Critical patent/CN108009799B/en
Publication of CN108009799A publication Critical patent/CN108009799A/en
Application granted granted Critical
Publication of CN108009799B publication Critical patent/CN108009799B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • G06Q50/00Systems or methods specially adapted for specific business sectors, e.g. utilities or tourism
    • G06Q50/10Services
    • G06Q50/26Government or public services

Abstract

The present disclosure relates to the field of computer technologies, and in particular, to a method and an apparatus for persisting a workflow, a storage medium, and an electronic device. The method can comprise the following steps: responding to a change request of a user on a node to be changed, and acquiring a preset flow and the position of the node to be changed in the preset flow; generating a new node, and generating a new working process according to the new node and the position of the node to be changed in the preset process; and persisting the new workflow. The method and the device realize the dynamic configuration of the preset flow, so that the new work flow is more consistent with the actual business flow, and in addition, the new work flow and the preset flow are ensured not to be broken, so that all nodes in the preset flow and the new work flow can find real processing personnel, further the responsibility can be clearly processed, and data guarantee is provided for future quality control, responsibility division and reward and punishment systems.

Description

Method and device for persistence of workflow, storage medium and electronic equipment
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method and an apparatus for persisting a workflow, a storage medium, and an electronic device.
Background
With the coming of the aging age, various aging communities appear. Since the endowment community is different from a common residential housing, the endowment community has more and more strict requirements on the management of rooms than the common residential housing. Based on this, it is important to track the living information progress of the elderly at any time to ensure the continuity, safety and high efficiency of living information circulation, and perform responsibility division and quality monitoring on the processed living information after the fact.
At present, the commonly used mode of tracking the progress condition of the residential information of the old people at any time comprises the following steps: and configuring nodes in a pre-planned standard operation flow to generate a set of work flows, wherein each node is served by treatment personnel with different roles and posts for the old.
However, in the above method, since the workflow is configured in a fixed manner, once the business is changed or does not conform to the actual business, the business in progress is terminated, i.e., the workflow cannot be automatically changed according to the business requirements, and the extensibility is short. In addition, even if the workflow is dynamically configured according to the business requirements, the original workflow record is broken in the process of dynamically configuring the workflow, so that the workflow after dynamic configuration is interrupted.
It is to be noted that the information disclosed in the above background section is only for enhancement of understanding of the background of the present disclosure, and thus may include information that does not constitute prior art known to those of ordinary skill in the art.
Disclosure of Invention
The present disclosure aims to provide a method and an apparatus for persistent workflow, a storage medium, and an electronic device, so as to overcome the problem that the workflow cannot be changed according to business requirements and the workflow is interrupted after the workflow is dynamically configured.
According to one aspect of the present disclosure, there is provided a method of workflow persistence, comprising:
responding to a change request of a user on a node to be changed, and acquiring a preset flow and the position of the node to be changed in the preset flow;
generating a new node, and generating a new working process according to the new node and the position of the node to be changed in the preset process;
and persisting the new workflow.
In an exemplary embodiment of the disclosure, the new node is at least one of a newly added node, a split node, and a transfer node of the node to be changed.
In an exemplary embodiment of the disclosure, when the new node is at least one of a newly added node and a split node of the node to be changed, the generating a new node includes:
an entity defining the new node;
and setting the component information and the characteristic information of the new node to generate the new node.
In an exemplary embodiment of the disclosure, when the new node is a transfer node of the node to be changed, the generating a new node includes:
acquiring the entity definition of the node to be changed from the preset flow, and cloning the entity definition to define the entity of the new node;
and setting the component information and the characteristic information of the new node to generate the new node.
In an exemplary embodiment of the present disclosure, the generating a new workflow according to the new node and the position of the node to be changed in the preset flow includes:
and copying all nodes behind the node to be changed in the preset flow to the new node according to the position of the node to be changed in the preset flow so as to generate a new working flow.
In an exemplary embodiment of the present disclosure, the persisting the new workflow includes:
and storing the new workflow in a database in a persistent mode.
In an exemplary embodiment of the disclosure, after persisting the new workflow, the method further comprises:
and after the node to be changed is finished, acquiring and executing the new workflow from the database.
According to an aspect of the present disclosure, there is provided an apparatus for workflow persistence, comprising:
the acquisition module is used for responding to a change request of a user on a node to be changed, and acquiring a preset flow and the position of the node to be changed in the preset flow;
the generating module is used for generating a new node and generating a new working process according to the new node and the position of the node to be changed in the preset process;
and the persistence module is used for persisting the new workflow.
According to an aspect of the present disclosure, there is provided a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements a method of workflow persistence as described in any one of the above.
According to an aspect of the present disclosure, there is provided an electronic device including:
a processor; and
a memory for storing executable instructions of the processor;
wherein the processor is configured to perform the method of workflow persistence of any of the above via execution of the executable instructions.
The disclosure provides a workflow persistence method and device, a storage medium and an electronic device. Responding to a change request of a user on a node to be changed, and acquiring a preset flow and the position of the node to be changed in the preset flow; generating a new node, and generating a new working process according to the new node and the position of the node to be changed in the preset process; and persisting the new workflow. On one hand, a new working process is generated by generating a new node and generating a new working process according to the new node and the position of the node to be changed in the preset process, so that the dynamic configuration of the preset process is realized, the expandability is good, the new working process is more consistent with the actual service process, and the problem that the working process cannot be changed according to the service requirement is solved; on the other hand, the new work flow is persisted, namely, after the preset flow is dynamically configured, the new work flow and the preset flow are ensured not to be broken, so that all nodes in the preset flow and the new work flow can find real processing personnel, further, the responsibility can be clearly processed, and data guarantee is provided for future quality control, responsibility division and reward and punishment systems.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The above and other features and advantages of the present disclosure will become more apparent by describing in detail exemplary embodiments thereof with reference to the attached drawings. It is to be understood that the drawings in the following description are merely exemplary of the disclosure, and that other drawings may be derived from those drawings by one of ordinary skill in the art without the exercise of inventive faculty. In the drawings:
FIG. 1 is a flow chart of a method of workflow persistence of the present disclosure;
FIG. 2 is a schematic diagram of a preset flow provided in an exemplary embodiment of the present disclosure;
FIG. 3 is a schematic illustration of a new workflow provided in an exemplary embodiment of the present disclosure;
FIG. 4 is a schematic illustration of a new workflow provided in another exemplary embodiment of the present disclosure;
FIG. 5 is a block diagram of an apparatus for workflow persistence according to the present disclosure;
FIG. 6 is a block diagram view of an electronic device in an exemplary embodiment of the present disclosure;
FIG. 7 is a schematic diagram illustrating a program product in an exemplary embodiment of the disclosure.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art. The same reference numerals denote the same or similar parts in the drawings, and thus, a repetitive description thereof will be omitted.
Furthermore, the described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of the disclosure. One skilled in the relevant art will recognize, however, that the embodiments of the disclosure can be practiced without one or more of the specific details, or with other methods, components, materials, devices, steps, and so forth. In other instances, well-known structures, methods, devices, implementations, materials, or operations are not shown or described in detail to avoid obscuring aspects of the disclosure.
The block diagrams shown in the figures are functional entities only and do not necessarily correspond to physically separate entities. That is, these functional entities may be implemented in the form of software, or in one or more software-hardened modules, or in different networks and/or processor devices and/or microcontroller devices.
FIG. 1 illustrates a flow diagram of a method of workflow persistence that may include:
step S110, responding to a change request of a user on a node to be changed, and acquiring a preset flow and the position of the node to be changed in the preset flow;
step S120, generating a new node, and generating a new work flow according to the new node and the position of the node to be changed in the preset flow;
and step S130, the new workflow is persisted.
According to the method for persisting the workflow in the exemplary embodiment, on one hand, a new workflow is generated by generating a new node and generating a new workflow according to the new node and the position of the node to be changed in the preset workflow, so that the dynamic configuration of the preset workflow is realized, the expandability is good, the new workflow is more consistent with the actual business workflow, and the problem that the workflow cannot be changed according to business requirements is solved; on the other hand, the new work flow is persisted, namely, after the preset flow is dynamically configured, the new work flow and the preset flow are ensured not to be broken, so that all nodes in the preset flow and the new work flow can find real processing personnel, further, the responsibility can be clearly processed, and data guarantee is provided for future quality control, responsibility division and reward and punishment systems.
The method of workflow persistence in the present exemplary embodiment will be further explained with reference to fig. 1.
Step S110, responding to a change request of a user at a node to be changed, and acquiring a preset flow and a position of the node to be changed in the preset flow.
In the exemplary embodiment, a preset flow may be set for each functional department according to actual requirements of different functional departments. Wherein, the preset process may include: a plurality of nodes, each of which represents a task, each of which includes an entity of the node (i.e., a task corresponding to the node, such as an inspection task, a maintenance task, etc.), component information of the node (i.e., identification information and code of the node), and feature information of the node (i.e., specific content of the task corresponding to the node, for example, when the task corresponding to the node is an inspection task, specific content of the node is specific content and executive of the inspection task, completion time limit of the inspection task, etc.); and each flow line represents the flow direction between two nodes connected with the two ends of the flow line.
The change request of the user at the node to be changed may include: the node switching method comprises at least one of a new node request of a user at a node to be changed, a split node request of the user at the node to be changed and a transfer node request of the user at the node to be changed. The request of the user for adding a new node to the node to be changed may refer to a request for adding a new node after the node to be changed (i.e., adding a new task after a task corresponding to the node to be changed); the user request for the splitting node of the node to be changed can refer to a request for splitting the node to be changed into a plurality of new nodes; the request of the user at the transfer node of the node to be changed may refer to a request for transferring the node to be changed (i.e. transferring a task corresponding to the node to be changed).
The position of the node to be changed in the preset flow can be obtained through the component information (i.e. the identification information and the code of the node) of the node to be changed.
In step S120, a new node is generated, and a new workflow is generated according to the new node and the position of the node to be changed in the preset workflow.
In this exemplary embodiment, the new node may be at least one of a newly added node, a split node, and a transfer node of the node to be changed. When the change request of the user at the node to be changed is a new node request of the user at the node to be changed, the new node is the new node of the node to be changed; when the change request of the user at the node to be changed is the split node request of the user at the node to be changed, the new node is the split node of the node to be changed; when the change request of the user at the node to be changed is the transfer node request of the user at the node to be changed, the new node is the transfer node of the node to be changed.
Optionally, when the new node is at least one of a new node and a split node of the node to be changed, the generating a new node may include: an entity defining the new node; and setting the component information and the characteristic information of the new node to generate the new node.
In the exemplary embodiment, the entity of the new node may be defined according to the task corresponding to the new node, for example, when the task corresponding to the new node is a maintenance task, the entity of the new node is a maintenance task. The component information of the new node may refer to identification information and a number of the new node, and may be set by a user according to a specific situation. The feature information of the new node may refer to specific content of a task corresponding to the new node, and may be set by a user according to the task corresponding to the new node, for example, when the task corresponding to the new node is a maintenance task, the feature information of the new node may include specific content of maintenance (such as a maintenance water pipe), an executor of the maintenance task, a completion time limit of the maintenance task, and the like.
Optionally, when the new node is the transfer node of the node to be changed, the generating a new node may include: acquiring the entity definition of the node to be changed from the preset flow, and cloning the entity definition to define the entity of the new node; and setting the component information and the characteristic information of the new node to generate the new node.
In this exemplary embodiment, since the new node is a transfer node of the node to be changed, that is, a task corresponding to the node to be changed is transferred to other executive staff, so that the task is not changed, and based on this, the entity of the new node does not need to be redefined, and only the entity definition of the node to be changed needs to be obtained, and the obtained entity definition of the node to be changed is cloned to obtain the entity of the new node. The setting of the component information and the feature information of the new node has been explained in the above process, and therefore, the details are not described here.
Optionally, the generating a new workflow according to the new node and the position of the node to be changed in the preset workflow may include: and copying all nodes behind the node to be changed in the preset flow to the new node according to the position of the node to be changed in the preset flow so as to generate a new working flow.
In the exemplary embodiment, all nodes behind the node to be changed may be obtained in the preset flow according to the position of the node to be changed in the preset flow, and all nodes behind the node to be changed are copied to the new node, so as to generate a new workflow.
Therefore, a new work flow is generated by generating a new node and according to the new node and the position of the node to be changed in the preset flow, dynamic configuration of the preset flow is realized, expandability is good, the new work flow is more consistent with the actual service flow, and the problem that the work flow cannot be changed according to service requirements is solved.
In step S130, the new workflow is persisted.
In the exemplary embodiment, the new workflow may be persisted to a database to complete the persistence of the new workflow. The new work flow is persisted, namely, after the preset flow is dynamically configured, the new work flow and the preset flow are ensured not to be broken, so that all nodes in the preset flow and the new work flow can find real processing personnel, further, the responsibility can be clearly processed, and data guarantee is provided for future quality control, responsibility division and reward and punishment systems.
Optionally, after the new workflow is persisted, the method may further include obtaining and executing the new workflow from the database after the node to be changed is completed.
In this exemplary embodiment, a preset process may be executed to the node to be changed, and after the node to be changed is executed, a new workflow is obtained in the database, and the new workflow is executed, that is, tasks corresponding to all nodes in the new workflow are executed.
The above-described process will be described below by way of example.
For example, FIG. 2 illustrates a preset flow in an exemplary embodiment of the disclosure, wherein 201-220 represent different nodes in the preset flow, respectively. Referring to the preset flow in FIG. 2, the flow of aunt plum 83 years old transacting into the endowment community will be described. As can be seen from FIG. 2, before aunt plum is handled, the room is subjected to security inspection, engineering inspection and sanitation.
When the manager of the engineering department participating in the safety check and the engineering check requests for a false on the check day, the safety check and the engineering check task need to be transferred to the supervisor of the engineering department, and at this time, the nodes 207 and 208 need to be transferred, that is, the transfer node of the node 207 and the transfer node of the node 208 are generated, and the nodes after the nodes 207 and 208 are copied to the transfer node of the node 207 and the transfer node of the node 208, respectively, so as to generate a new workflow. The new workflow is as shown in fig. 3, wherein node 301 is a transfer node of node 207, and node 302 is a transfer node of node 208. Nodes 209 to 214 and nodes 217 to 220 in FIG. 3 are copied nodes from FIG. 2.
For another example, referring to the preset flow in FIG. 2, the flow of aunt plum 83 years old transacting into the resident senior community will be described. As can be seen from FIG. 2, before aunt plum is handled, the room is subjected to security inspection, engineering inspection and sanitation.
When the room is subjected to safety inspection and engineering inspection, the problems of water leakage and short circuit of an alarm system in the room are found, a maintenance task needs to be distributed to a heating and ventilation main pipe and a weak current main pipe, namely, the node 212 needs to be split, namely two split nodes of the node 212 are generated, and all nodes behind the node 212 are copied to the two split nodes so as to generate a new work flow. The new workflow is as shown in fig. 4, where node 401 and node 402 are two split nodes of node 212. Nodes 213, 214, and 217-220 in FIG. 4 are copied from FIG. 2.
It should be noted that although the various steps of the methods of the present disclosure are depicted in the drawings in a particular order, this does not require or imply that these steps must be performed in this particular order, or that all of the depicted steps must be performed, to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step execution, and/or one step broken down into multiple step executions, etc.
FIG. 5 shows a block diagram of an apparatus for workflow persistence, which apparatus 500 for workflow persistence may comprise: an obtaining module 501, a generating module 502, and a persistence module 503, wherein:
an obtaining module 501, configured to respond to a change request of a user at a node to be changed, and obtain a preset flow and a position of the node to be changed in the preset flow;
a generating module 502, configured to generate a new node, and generate a new workflow according to the new node and the position of the node to be changed in the preset workflow;
a persistence module 503, which may be configured to persist the new workflow.
The specific details of the device module for persisting the workflow have been described in detail in the corresponding method for persisting the workflow, and therefore are not described herein again.
It should be noted that although in the above detailed description several modules or units of the apparatus for performing are mentioned, such a division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit, according to embodiments of the present disclosure. Conversely, the features and functions of one module or unit described above may be further divided into embodiments by a plurality of modules or units.
In an exemplary embodiment of the present disclosure, an electronic device capable of implementing the above method is also provided.
As will be appreciated by one skilled in the art, aspects of the present invention may be embodied as a system, method or program product. Thus, various aspects of the invention may be embodied in the form of: an entirely hardware embodiment, an entirely software embodiment (including firmware, microcode, etc.) or an embodiment combining hardware and software aspects that may all generally be referred to herein as a "circuit," module "or" system.
An electronic device 600 according to this embodiment of the invention is described below with reference to fig. 6. The electronic device 600 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 invention.
As shown in fig. 6, the electronic device 600 is embodied in the form of a general purpose computing device. The components of the electronic device 600 may include, but are not limited to: the at least one processing unit 610, the at least one memory unit 620, a bus 630 connecting different system components (including the memory unit 620 and the processing unit 610), and a display unit 640.
Wherein the storage unit stores program code that is executable by the processing unit 610 to cause the processing unit 610 to perform steps according to various exemplary embodiments of the present invention as described in the above section "exemplary methods" of the present specification. For example, the processing unit 610 may execute step S110 shown in fig. 1, and respond to a change request of a user at a node to be changed, to obtain a preset flow and a position of the node to be changed in the preset flow; step S120, generating a new node, and generating a new work flow according to the new node and the position of the node to be changed in the preset flow; and step S130, the new workflow is persisted.
The storage unit 620 may include readable media in the form of volatile memory units, such as a random access memory unit (RAM)6201 and/or a cache memory unit 6202, and may further include a read-only memory unit (ROM) 6203.
The memory unit 620 may also include a program/utility 6204 having a set (at least one) of program modules 6205, such program modules 6205 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment.
Bus 630 may be one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
The electronic device 600 may also communicate with one or more external devices 670 (e.g., keyboard, pointing device, bluetooth device, etc.), with one or more devices that enable a user to interact with the electronic device 600, and/or with any devices (e.g., router, modem, etc.) that enable the electronic device 600 to communicate with one or more other computing devices. Such communication may occur via an input/output (I/O) interface 650. Also, the electronic device 600 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network such as the Internet) via the network adapter 660. As shown, the network adapter 660 communicates with the other modules of the electronic device 600 over the bus 630. It should be appreciated that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the electronic device 600, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which may be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the embodiments of the present disclosure.
In an exemplary embodiment of the present disclosure, there is also provided a computer-readable storage medium having stored thereon a program product capable of implementing the above-described method of the present specification. In some possible embodiments, aspects of the invention may also be implemented in the form of a program product comprising program code means for causing a terminal device to carry out the steps according to various exemplary embodiments of the invention described in the above section "exemplary methods" of the present description, when said program product is run on the terminal device.
Referring to fig. 7, a program product 700 for implementing the above method according to an embodiment of the present invention is described, which may employ a portable compact disc read only memory (CD-ROM) and include program code, and may be run on a terminal device, such as a personal computer. However, the program product of the present invention is not limited in this regard and, in the present document, a 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.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A 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 (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, 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.
A computer readable signal medium may include a propagated data signal with readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A readable signal medium may also be any readable medium that is not a 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 readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, 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 computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., through the internet using an internet service provider).
Furthermore, the above-described figures are merely schematic illustrations of processes involved in methods according to exemplary embodiments of the invention, and are not intended to be limiting. It will be readily understood that the processes shown in the above figures are not intended to indicate or limit the chronological order of the processes. In addition, it is also readily understood that these processes may be performed synchronously or asynchronously, e.g., in multiple modules.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is to be limited only by the terms of the appended claims.

Claims (8)

1. A method of workflow persistence, comprising:
responding to a change request of a user on a node to be changed, acquiring a preset flow and a position of the node to be changed in the preset flow, wherein the preset flow comprises a plurality of nodes, each node comprises an entity of the node, component information of the node and feature information of the node, and the acquiring of the position of the node to be changed in the preset flow specifically comprises: acquiring the position according to the component information of the node to be changed, wherein the entity is a task corresponding to the node, and the component information comprises the code of the node;
generating a new node, and generating a new workflow according to the new node and the position of the node to be changed in the preset workflow, where the new node is at least one of a new node, a split node, and a transfer node of the node to be changed, and the generating a new workflow according to the position of the new node and the position of the node to be changed in the preset workflow specifically includes:
when the preset flow is a flow transacting into a living and elderly-care community, copying all nodes behind the node to be changed in the preset flow to the new node according to the position of the node to be changed in the preset flow so as to generate a new work flow, specifically comprising:
when an inspection task needs to be transferred, the node to be changed is an inspection node, a transfer node of the inspection node is generated according to the code of the inspection node in the process of transacting the living-in-the-old community, and the nodes behind the inspection node are copied to the transfer node to generate a new working process; or
When safety maintenance and engineering maintenance are needed, the node to be changed is a maintenance node, two split nodes of the maintenance node are generated according to codes of the maintenance node in the process of transacting the old-living community, and after all nodes behind the maintenance node are copied to the two split nodes, the new working process is generated, wherein the two split nodes comprise a safety maintenance node and an engineering maintenance node;
and persisting the new workflow.
2. The method of claim 1, wherein generating a new node when the new node is at least one of a newly added node and a split node of the node to be changed comprises:
an entity defining the new node;
and setting the component information and the characteristic information of the new node to generate the new node.
3. The method of claim 1, wherein when the new node is a transfer node of the node to be changed, the generating a new node comprises:
acquiring the entity definition of the node to be changed from the preset flow, and cloning the entity definition to define the entity of the new node;
and setting the component information and the characteristic information of the new node to generate the new node.
4. The method of claim 1, wherein the persisting the new workflow comprises:
and storing the new workflow in a database in a persistent mode.
5. The method of claim 4, wherein after persisting the new workflow, the method further comprises:
and after the node to be changed is finished, acquiring and executing the new workflow from the database.
6. An apparatus for workflow persistence, comprising:
the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for responding to a change request of a user on a node to be changed and acquiring a preset flow and the position of the node to be changed in the preset flow, the preset flow of a functional department is set according to actual requirements of different functional departments, the preset flow comprises a plurality of nodes, each node comprises an entity of the node, component information of the node and characteristic information of the node, and the entity is a task corresponding to the node and the component information comprises a code of the node;
the acquisition module is further configured to: acquiring the position according to the component information of the node to be changed;
the generating module is used for generating a new node and generating a new work flow according to the new node and the position of the node to be changed in the preset flow, wherein the new node is at least one of a newly added node, a split node and a transfer node of the node to be changed;
the generation module is further to: when the preset flow is a flow transacting into a living and elderly-care community, copying all nodes behind the node to be changed in the preset flow to the new node according to the position of the node to be changed in the preset flow so as to generate a new work flow, specifically comprising:
when an inspection task needs to be transferred, the node to be changed is an inspection node, a transfer node of the inspection node is generated according to the code of the inspection node in the process of transacting the living-in-the-old community, and the nodes behind the inspection node are copied to the transfer node to generate a new working process; or
When safety maintenance and engineering maintenance are needed, the node to be changed is a maintenance node, two split nodes of the maintenance node are generated according to codes of the maintenance node in the process of transacting the old-living community, and after all nodes behind the maintenance node are copied to the two split nodes, the new working process is generated, wherein the two split nodes comprise a safety maintenance node and an engineering maintenance node;
and the persistence module is used for persisting the new workflow.
7. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the method of workflow persistence of any one of claims 1 to 5.
8. An electronic device, comprising:
a processor; and
a memory for storing executable instructions of the processor;
wherein the processor is configured to perform the method of workflow persistence of any one of claims 1-5 via execution of the executable instructions.
CN201711395327.3A 2017-12-21 2017-12-21 Method and device for persistence of workflow, storage medium and electronic equipment Active CN108009799B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711395327.3A CN108009799B (en) 2017-12-21 2017-12-21 Method and device for persistence of workflow, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711395327.3A CN108009799B (en) 2017-12-21 2017-12-21 Method and device for persistence of workflow, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN108009799A CN108009799A (en) 2018-05-08
CN108009799B true CN108009799B (en) 2021-12-31

Family

ID=62060424

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711395327.3A Active CN108009799B (en) 2017-12-21 2017-12-21 Method and device for persistence of workflow, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN108009799B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111144688A (en) * 2019-11-22 2020-05-12 泰康保险集团股份有限公司 Check-in transaction processing method and device
CN111199382A (en) * 2019-12-02 2020-05-26 泰康保险集团股份有限公司 Room changing transaction processing method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6880013B2 (en) * 2000-12-29 2005-04-12 International Business Machines Corporation Permanent TCP connections across system reboots
CN103425751A (en) * 2013-07-24 2013-12-04 浙江大学 Linkage increment updating method of vector space data based on dependency
CN106600226A (en) * 2016-12-13 2017-04-26 泰康保险集团股份有限公司 Method and device used for optimizing flow management system
CN106910045A (en) * 2017-03-02 2017-06-30 重庆砖家宝网络科技发展有限公司 Design of Workflow method and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6880013B2 (en) * 2000-12-29 2005-04-12 International Business Machines Corporation Permanent TCP connections across system reboots
CN103425751A (en) * 2013-07-24 2013-12-04 浙江大学 Linkage increment updating method of vector space data based on dependency
CN106600226A (en) * 2016-12-13 2017-04-26 泰康保险集团股份有限公司 Method and device used for optimizing flow management system
CN106910045A (en) * 2017-03-02 2017-06-30 重庆砖家宝网络科技发展有限公司 Design of Workflow method and system

Also Published As

Publication number Publication date
CN108009799A (en) 2018-05-08

Similar Documents

Publication Publication Date Title
US10817265B2 (en) Chatbot development and deployment platform
CN108961033B (en) Multi-service system interaction method and device, storage medium and electronic terminal
US10891560B2 (en) Supervised learning system training using chatbot interaction
WO2015167587A1 (en) Determining application deployment recommendations
CN110806958A (en) Monitoring method, monitoring device, storage medium and electronic equipment
CN111178849A (en) Linear process engine implementation method, device, equipment and storage medium
CN108009799B (en) Method and device for persistence of workflow, storage medium and electronic equipment
CN107817962B (en) Remote control method, device, control server and storage medium
CN110555150A (en) Data monitoring method, device, equipment and storage medium
CN113922995A (en) Cloud desktop sharing method and device, storage medium and electronic equipment
CN106790171B (en) Session control method, device, computer readable storage medium and equipment
US20090138510A1 (en) Method and apparatus for associating help desk ticket with affected data processing system
CN109582528B (en) State monitoring method and device, electronic equipment and computer readable storage medium
CN112860504A (en) Monitoring method and device, computer storage medium and electronic equipment
US10657117B2 (en) Critical situation contribution and effectiveness tracker
CN109739724B (en) Data monitoring method, system, electronic device and storage medium
CN111145063A (en) Business system guiding method and device
CN114091909A (en) Collaborative development method, system, device and electronic equipment
CN111159237B (en) System data distribution method and device, storage medium and electronic equipment
CN111949862B (en) Method and device for managing business task flow and electronic equipment
CN110958243A (en) Network vulnerability submitting method and device, storage medium and electronic equipment
CN111091899B (en) Authority allocation method and device, electronic equipment and computer readable storage medium
CN111680867B (en) Resource allocation method and device and electronic equipment
CN110727898B (en) OTA website event assisted processing method, system, equipment and storage medium
CN109857396B (en) Component construction method and device, storage medium and electronic equipment

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