CN107423404B - Flow instance data synchronous processing method and device - Google Patents

Flow instance data synchronous processing method and device Download PDF

Info

Publication number
CN107423404B
CN107423404B CN201710624828.8A CN201710624828A CN107423404B CN 107423404 B CN107423404 B CN 107423404B CN 201710624828 A CN201710624828 A CN 201710624828A CN 107423404 B CN107423404 B CN 107423404B
Authority
CN
China
Prior art keywords
change
information
data
process instance
instance data
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
CN201710624828.8A
Other languages
Chinese (zh)
Other versions
CN107423404A (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.)
Neusoft Corp
Original Assignee
Neusoft Corp
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 Neusoft Corp filed Critical Neusoft Corp
Priority to CN201710624828.8A priority Critical patent/CN107423404B/en
Publication of CN107423404A publication Critical patent/CN107423404A/en
Application granted granted Critical
Publication of CN107423404B publication Critical patent/CN107423404B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • G06F16/2365Ensuring data consistency and integrity
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • G06F16/2358Change logging, detection, and notification
    • 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

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

Abstract

The invention provides a method and a device for synchronously processing flow example data, wherein the method comprises the steps of acquiring change information and source information corresponding to actual change data generating the change information when a flow log corresponding to the flow example data generates a change; and synchronizing the change information and the corresponding source information to at least one local storage server of the workflow engine so as to perform synchronous processing on the flow instance data. The invention can effectively improve the performance of the workflow engine and reduce the response time of the system.

Description

Flow instance data synchronous processing method and device
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a method and an apparatus for processing process instance data synchronously.
Background
With the rapid development of enterprise informatization, Business Process Management (BPM) plays an important role in the informatization Process.
According to the working mechanism of the BPM related system, the business process management generally comprises processes such as process definition, process template generation and process execution. The flow execution mainly generates a flow example according to the definition of the flow template. In some application scenarios, after a user submits a work item, multiple update operations may be performed on the process instance data, and under the condition that a high-performance server and a high-performance storage device are not deployed, the update of the process instance data by the user is usually changed synchronously based on a server on a general Personal Computer (PC) side or a local storage server, but the synchronization of the process instance data often affects the performance or timeliness of a workflow engine when the local storage server is in a cluster mode.
Disclosure of Invention
The present invention is directed to solving, at least to some extent, one of the technical problems in the related art.
Therefore, an object of the present invention is to provide a method for processing data synchronization in a process instance, which reduces the consumption of computing resources required for synchronization by synchronizing source information corresponding to changed information and actually changed data, thereby effectively improving the performance of a workflow engine and reducing the response time of a system.
The invention also aims to provide a flow example data synchronous processing device.
It is another object of the invention to propose a non-transitory computer-readable storage medium.
It is a further object of the invention to propose a computer program product.
To achieve the above object, a method for processing data synchronously in a process instance provided by an embodiment of a first aspect of the present invention includes: when a process log corresponding to process instance data is changed, acquiring change information and source information corresponding to actual change data generating the change information; and synchronizing the change information and the corresponding source information to at least one local storage server of a workflow engine so as to perform synchronous processing on the process instance data.
In an embodiment of the present invention, the synchronizing the change information and the corresponding source information to a local storage server of at least one of the workflow engines includes:
and generating a change log according to the change information and the corresponding source information, and synchronizing the change log to at least one local storage server of the workflow engine.
In one embodiment of the present invention, further comprising:
and acquiring the actual changed data generating the changed information, and storing the actual changed data in a background server.
In one embodiment of the present invention, further comprising:
generating a corresponding relation between the actual change data generating the change information and source information;
and storing the corresponding relation in the background server.
In an embodiment of the present invention, the change log further includes three basic object information of process instance data generating a change, where the three basic objects are: a process instance, a node instance, and a work item.
In an embodiment of the present invention, the obtaining source information corresponding to the change information and the actual change data generating the change information includes:
and acquiring change information of the changed process instance data in the process log and source information corresponding to the actual change data of the changed information.
In one embodiment of the present invention, further comprising:
receiving an operation instruction of a user on the changed process instance data, wherein the operation instruction comprises: source information;
and reading corresponding actual change data from the background server based on the source information and the corresponding relation.
In an embodiment of the present invention, before the process log corresponding to the process instance data is changed, the method further includes:
receiving a workflow interface calling operation, and generating process instance data according to the interface calling operation, wherein the process instance data at least comprises: the three basic object information;
and generating the corresponding process log according to the process instance data.
In the method for synchronously processing process instance data provided in the embodiment of the first aspect of the present invention, when a process log corresponding to process instance data is changed, source information corresponding to change information and actual change data that generates the change information is acquired, and the change information and the corresponding source information are synchronized to at least one local storage server of a workflow engine, so as to perform synchronous processing on the process instance data.
In order to achieve the above object, a flow example data synchronization processing apparatus according to an embodiment of the second aspect of the present invention includes: the change acquisition module is used for acquiring change information and source information corresponding to actual change data generating the change information when a process log corresponding to process instance data is changed; and the synchronization processing module is used for synchronizing the change information and the corresponding source information to at least one local storage server of a workflow engine so as to perform synchronization processing on the process instance data.
In an embodiment of the present invention, the synchronization processing module is specifically configured to:
and generating a change log according to the change information and the corresponding source information, and synchronizing the change log to at least one local storage server of the workflow engine.
In one embodiment of the present invention, further comprising:
and the actual change data acquisition module is used for acquiring the actual change data generating the change information and storing the actual change data in a background server.
In one embodiment of the present invention, further comprising:
a corresponding relation generating module, configured to generate a corresponding relation between the actual change data and the source information, where the change information is generated;
and the corresponding relation storage module is used for storing the corresponding relation in the background server.
In an embodiment of the present invention, the change log further includes three basic object information of process instance data generating a change, where the three basic objects are: a process instance, a node instance, and a work item.
In an embodiment of the present invention, the change acquiring module is specifically configured to:
and acquiring change information of the changed process instance data in the process log and source information corresponding to the actual change data of the changed information.
In one embodiment of the present invention, further comprising:
an instruction receiving module, configured to receive an operation instruction of a user on changed flow instance data, where the operation instruction includes: source information;
and the actual change data reading module is used for reading corresponding actual change data from the background server based on the source information and the corresponding relation.
In one embodiment of the present invention, further comprising:
a calling operation receiving module, configured to receive a workflow interface calling operation, and generate process instance data according to the interface calling operation, where the process instance data at least includes: the three basic object information;
and the flow log generation module is used for generating the corresponding flow log according to the flow instance data.
The process instance data synchronization processing apparatus provided in the embodiment of the second aspect of the present invention obtains the source information corresponding to the change information and the actual change data that generates the change information when the process log corresponding to the process instance data is changed, and synchronizes the change information and the corresponding source information to the at least one local storage server of the workflow engine, so as to perform synchronization processing on the process instance data.
In order to achieve the above object, a flow example data synchronization processing apparatus according to a third aspect of the present invention includes: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to: when a process log corresponding to process instance data is changed, acquiring change information and source information corresponding to actual change data generating the change information; and synchronizing the change information and the corresponding source information to at least one local storage server of a workflow engine so as to perform synchronous processing on the process instance data.
The process instance data synchronization processing apparatus provided in the third aspect of the present invention obtains the source information corresponding to the change information and the actual change data that generates the change information when the process log corresponding to the process instance data is changed, and synchronizes the change information and the corresponding source information to the at least one local storage server of the workflow engine to perform synchronization processing on the process instance data.
To achieve the above object, a non-transitory computer-readable storage medium according to a fourth aspect of the present invention is a non-transitory computer-readable storage medium, when instructions in the storage medium are executed by a processor of a mobile terminal, the instructions enabling the mobile terminal to execute a method for processing process instance data synchronously, the method including: when a process log corresponding to process instance data is changed, acquiring change information and source information corresponding to actual change data generating the change information; and synchronizing the change information and the corresponding source information to at least one local storage server of a workflow engine so as to perform synchronous processing on the process instance data.
The non-transitory computer-readable storage medium according to the fourth aspect of the present invention obtains the source information corresponding to the change information and the actual change data that generates the change information when the process log corresponding to the process instance data is changed, and synchronizes the change information and the corresponding source information to the local storage server of at least one of the workflow engines to perform synchronization processing on the process instance data.
To achieve the above object, a computer program product according to a fifth embodiment of the present invention executes a method for processing flow instance data synchronously when instructions in the computer program product are executed by a processor, the method including: when a process log corresponding to process instance data is changed, acquiring change information and source information corresponding to actual change data generating the change information; and synchronizing the change information and the corresponding source information to at least one local storage server of a workflow engine so as to perform synchronous processing on the process instance data.
The computer program product according to the fifth aspect of the present invention obtains the source information corresponding to the change information and the actual change data that generates the change information when the process log corresponding to the process instance data is changed, and synchronizes the change information and the corresponding source information to at least one local storage server of the workflow engine to perform synchronization processing on the process instance data.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
The foregoing and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
fig. 1 is a schematic flow chart of a data synchronization processing method according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart diagram illustrating a data synchronization processing method according to another embodiment of the present invention;
FIG. 3 is a schematic diagram of the operating architecture of a BPM related system;
FIG. 4 is a flowchart illustrating a data synchronization processing method according to another embodiment of the present invention;
FIG. 5 is a diagram illustrating a change log according to an embodiment of the present invention;
FIG. 6 is a flowchart illustrating a data synchronization processing method according to another embodiment of the present invention;
FIG. 7 is a diagram illustrating three basic objects included in example process data according to an embodiment of the present invention;
FIG. 8a is a diagram illustrating an attribute list of a node instance in the related art;
FIG. 8b is a diagram illustrating an attribute list of a node instance in an embodiment of the present invention;
FIG. 9 is a block diagram of an exemplary data synchronization apparatus according to an embodiment of the present invention;
fig. 10 is a schematic structural diagram of a data synchronization processing apparatus according to another embodiment of the present invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the accompanying drawings are illustrative only for the purpose of explaining the present invention, and are not to be construed as limiting the present invention. On the contrary, the embodiments of the invention include all changes, modifications and equivalents coming within the spirit and terms of the claims appended hereto.
Fig. 1 is a schematic flow chart of a data synchronization processing method according to an embodiment of the present invention.
Embodiments of the invention may be applied in a management system product that employs workflows to perform automatic circulation or automatic execution of business processes, such as BPM-related systems.
The present embodiment is exemplified in a case where the flow instance data synchronization processing method is configured as a flow instance data synchronization processing apparatus. The process example data synchronization processing apparatus in this embodiment may be set in a background server of a BPM-related system, or may also be set in a mobile device, which is not limited in this embodiment of the present invention.
It should be noted that the execution subject in the embodiment of the present invention may be, for example, a Central Processing Unit (CPU) of a BPM-related system in hardware, and may be, for example, a service related to data synchronization of a process instance in the BPM-related system in software, which is not limited to this.
Referring to fig. 1, the method includes:
s11: when the process log corresponding to the process instance data is changed, the change information and the source information corresponding to the actual change data generating the change information are obtained.
Optionally, the process instance data at least includes: three basic object information.
Among these, three basic objects are: a process instance, a node instance, and a work item.
The work item may be, for example, a financial audit.
The change information may specifically be change information of basic object information that is currently changed in the process instance data.
The change information is, for example, the type of change operation, or the start or end time of the "financial audit" of the work item.
The source information may be, for example, the source server identification or IP address of the actual change data that generated the change information.
The actual change data may be, for example, detailed business workflow change data at a change node at the beginning or end of a "financial audit" of a work item.
Optionally, before S11, referring to fig. 2, further comprising:
s21: receiving a workflow interface calling operation, and generating process instance data according to the interface calling operation, wherein the process instance data at least comprises: three basic object information.
S22: and generating a corresponding flow log according to the flow instance data.
Generally, the execution process of the process mainly generates process instance data according to the definition of the process template.
For example, a user may call a workflow interface through a user interface, at this time, a user call operation on the workflow interface is received, a preset flow template corresponding to the workflow interface call operation is analyzed, and flow instance data is generated according to the flow template.
It can be understood that, according to the working mechanism of the BPM-related system, the process instance data is generated, and at the same time, the process log corresponding to the process instance data is correspondingly generated. In some application scenarios, after a user submits a work item, multiple update operations may be performed on the process instance data.
Referring to fig. 3, fig. 3 is a schematic diagram of the operating architecture of the BPM-related system. The BPM related system is in a cluster working mode. The method comprises the following steps: in the related art, when a process log corresponding to process instance data is changed, a data synchronization scheme is adopted to synchronize the data, that is, all data (for example, including process instance data, actual change data, change information and the like) generating change information is synchronized into the plurality of local storage servers 34, in this way, because the process instance data is a type of dynamic data, a data gauge generated by performing a large amount of frequent read-write update operations on the process instance data is huge.
In the embodiment of the invention, when the process log corresponding to the process instance data is changed, the change information and the source information corresponding to the actual change data generating the change information are acquired, and the process instance data is synchronized based on the change information and the corresponding source information, so that the consumption of computing resources required by synchronization is reduced.
S12: and synchronizing the change information and the corresponding source information to at least one local storage server of the workflow engine so as to perform synchronous processing on the flow instance data.
Referring to fig. 3, in the embodiment of the present invention, when the process log corresponding to the process instance data is changed, and when the process log corresponding to the process instance data is changed, only the change information and the corresponding source information are synchronized to the plurality of local storage servers 34, so that the performance of the workflow engine can be effectively improved, and the system response time can be reduced.
Optionally, in some embodiments, referring to fig. 4, S12 may include:
s41: and generating a change log according to the change information and the corresponding source information, and synchronizing the change log to at least one local storage server of the workflow engine.
Optionally, the change log further includes three basic object information of the process instance data generating the change, where the three basic objects are: a process instance, a node instance, and a work item.
In the embodiment of the invention, the change log is generated according to the change information and the corresponding source information, and the change information and the corresponding source information are synchronized based on the layer of the change log, so that the synchronous data volume is reduced on a large scale, and the consumption of computing resources required by synchronization is reduced. And because the scale of the change log is small, the synchronization timeliness can be guaranteed, the synchronization effect is further improved, and the data maintenance of the change log in the later period is facilitated.
Referring to fig. 5, fig. 5 is a schematic diagram of a change log according to an embodiment of the present invention.
In the embodiment, when the process log corresponding to the process instance data is changed, the source information corresponding to the change information and the actual change data generating the change information is acquired, and the change information and the corresponding source information are synchronized to the at least one local storage server of the workflow engine to perform synchronous processing on the process instance data.
Fig. 6 is a flowchart illustrating a data synchronization processing method according to another embodiment of the present invention.
Referring to fig. 6, the method includes:
s61: when the process log corresponding to the process instance data is changed, the change information and the source information corresponding to the actual change data generating the change information are obtained.
Optionally, the process instance data at least includes: three basic object information.
Among these, three basic objects are: a process instance, a node instance, and a work item.
The work item may be, for example, a financial audit.
The change information may specifically be change information of basic object information that is currently changed in the process instance data.
The change information is, for example, the type of change operation, or the start or end time of the "financial audit" of the work item.
The source information may be, for example, the source server identification or IP address of the actual change data that generated the change information.
The actual change data may be, for example, detailed business workflow change data at a change node at the beginning or end of a "financial audit" of a work item.
S62: and synchronizing the change information and the corresponding source information to at least one local storage server of the workflow engine so as to perform synchronous processing on the flow instance data.
Referring to fig. 3, in the embodiment of the present invention, when the process log corresponding to the process instance data is changed, and when the process log corresponding to the process instance data is changed, only the change information and the corresponding source information are synchronized to the plurality of local storage servers 34, so that the performance of the workflow engine can be effectively improved, and the system response time can be reduced.
S63: and acquiring actual changed data generating the changed information, and storing the actual changed data in a background server.
Referring to fig. 7, fig. 7 is a schematic diagram of three basic objects included in the process example data in the embodiment of the present invention. In the embodiment of the present invention, the change information of the data other than the three pieces of basic object information in the process instance data, which may be, for example, process instance variables, process events, other objects, and the like, may be stored in the background server as a part of the actual change data.
In the embodiment of the invention, because the data except the three pieces of basic object information is not all used in enterprise statistics query, but only after specific process instance data is queried, if detailed information of the process instance needs to be queried, the data is used, so that the data scale is reduced from the level of the process instance data, and the operating efficiency of the system can be effectively improved.
Or, the attribute information of each basic object may be reduced, and a node instance is used for example, see fig. 8a and 8b, where fig. 8a is an attribute list schematic diagram of a node instance in the related art, and fig. 8b is an attribute list schematic diagram of a node instance in the embodiment of the present invention, because part of the attribute information of a basic object is not all used in the enterprise statistics query, but only after specific process instance data is queried, if detailed process instance information is to be queried, the information is used, and therefore, the change information of part of the attribute information of a basic object may be stored in a background server as part of actual change data, so that the data size is reduced from the attribute level of the basic object, and the operation efficiency of the system is further effectively improved.
In the embodiment of the invention, the change information and the corresponding source information are synchronized to at least one local storage server of the workflow engine, the actual change data generating the change information is stored in the background server, and the reading from the background server is triggered when the actual change data needs to be inquired or accessed, so that the performance of the workflow engine is improved, the response time of the system is reduced, the integrity of the data information is ensured, and the use experience of a user is improved.
S64: a correspondence between actual changed data and source information is generated that yields the changed information.
S65: and storing the corresponding relation in a background server.
Wherein the corresponding changed data can be located from the correspondence based on the source information.
In the embodiment of the invention, the corresponding relation between the actual changed data generating the changed information and the source information is generated and stored in the background server, so that the reading efficiency of the actual changed data can be effectively improved, and the synchronization effect is improved.
S66: receiving an operation instruction of a user on the changed flow instance data, wherein the operation instruction comprises the following steps: source information.
S67: and reading corresponding actual change data from the background server based on the source information and the corresponding relation.
In embodiments of the present invention, after the process instance data is synchronized, a user may perform an operation, such as a query or read operation, on the process instance data that generated the change.
Optionally, the operation instruction may also include an identifier of the actual changed data.
In the embodiment of the invention, a user may perform multiple operations on the process instance data which is changed, when performing the first operation after the process instance data is synchronized, the corresponding actual change data read from the background server based on the source information and the corresponding relationship may be stored in the local storage server, when performing the next operation on the process instance data, whether the actual change data is read or not may be firstly inquired from the local storage server according to the identifier of the actual change data, if the actual change data is read, the actual change data does not need to be read from the background server, and if the actual change data is not read, the corresponding actual change data may be read from the background server based on the source information and the corresponding relationship, so that the performance of the workflow engine is further effectively improved, and the response time of the system is reduced.
In the embodiment, when the process log corresponding to the process instance data is changed, the source information corresponding to the change information and the actual change data generating the change information is acquired, and the change information and the corresponding source information are synchronized to the at least one local storage server of the workflow engine to perform synchronous processing on the process instance data. Because the data except the three basic object information is not all used in enterprise statistics query, but only after specific process instance data is queried, if detailed information of the process instance needs to be queried, the data is used, the data scale is reduced from the level of the process instance data, and the operating efficiency of the system can be effectively improved. The actual change data generating the change information is stored in the background server, and when the actual change data needs to be inquired or accessed, the actual change data is triggered to be read from the background server, so that the integrity of the data information is guaranteed, and the use experience of a user is improved. By generating the corresponding relation between the actual changed data generating the changed information and the source information and storing the corresponding relation in the background server, the reading efficiency of the actual changed data can be effectively improved, and the synchronization effect is improved.
Fig. 9 is a schematic structural diagram of a data synchronization processing apparatus according to an embodiment of the present invention.
Referring to fig. 9, the apparatus 900 includes: a change acquisition module 901 and a synchronization processing module 902, wherein,
the change obtaining module 901 is configured to obtain, when a process log corresponding to process instance data is changed, change information and source information corresponding to actual change data that generates the change information.
A synchronization processing module 902, configured to synchronize the change information and the corresponding source information to a local storage server of at least one of the workflow engines, so as to perform synchronization processing on the flow instance data.
Optionally, in some embodiments, the synchronization processing module 902 is specifically configured to:
and generating a change log according to the change information and the corresponding source information, and synchronizing the change log to at least one local storage server of the workflow engine.
Optionally, in some embodiments, referring to fig. 10, the apparatus 900 further comprises:
and an actual change data acquiring module 903, configured to acquire actual change data that generates change information, and store the actual change data in a background server.
A correspondence generating module 904, configured to generate a correspondence between the actual change data and the source information, which is used to generate the change information.
A correspondence relation storage module 905, configured to store a correspondence relation in the background server.
Optionally, the change log further includes three basic object information of the process instance data generating the change, where the three basic objects are: a process instance, a node instance, and a work item.
Optionally, in some embodiments, the change acquiring module 901 is specifically configured to:
and acquiring change information of the process instance data generating the change and source information corresponding to the actual change data generating the change information in the process log.
Optionally, in some embodiments, referring to fig. 10, the apparatus 900 further comprises:
an instruction receiving module 906, configured to receive an operation instruction of the user on the changed flow instance data, where the operation instruction includes: source information.
And an actual change data reading module 907, configured to read corresponding actual change data from the background server based on the source information and the correspondence relationship.
A calling operation receiving module 908, configured to receive a workflow interface calling operation, and generate flow instance data according to the interface calling operation, where the flow instance data at least includes: three basic object information.
A flow log generation module 909, configured to generate a corresponding flow log according to the flow instance data.
It should be noted that the explanation of the embodiment of the data synchronization processing method of the flow example in the foregoing embodiments of fig. 1 to fig. 8 is also applicable to the data synchronization processing apparatus 900 of the flow example of the embodiment, and the implementation principle thereof is similar, and is not described herein again.
In the embodiment, when the process log corresponding to the process instance data is changed, the source information corresponding to the change information and the actual change data generating the change information is acquired, and the change information and the corresponding source information are synchronized to the at least one local storage server of the workflow engine to perform synchronous processing on the process instance data.
In order to implement the foregoing embodiments, the present invention also proposes a non-transitory computer-readable storage medium, wherein instructions in the storage medium, when executed by a processor of a terminal, enable the terminal to execute a process instance data synchronization processing method, the method comprising:
when a process log corresponding to process instance data is changed, acquiring change information and source information corresponding to actual change data generating the change information;
and synchronizing the change information and the corresponding source information to at least one local storage server of the workflow engine so as to perform synchronous processing on the flow instance data.
In the non-transitory computer-readable storage medium in this embodiment, when the process log corresponding to the process instance data is changed, the change information and the source information corresponding to the actual change data that generates the change information are acquired, and the change information and the corresponding source information are synchronized to at least one local storage server of the workflow engine, so as to perform synchronization processing on the process instance data.
In order to implement the foregoing embodiments, the present invention further provides a computer program product, wherein when instructions in the computer program product are executed by a processor, a method for processing flow instance data synchronously is executed, and the method includes:
when a process log corresponding to process instance data is changed, acquiring change information and source information corresponding to actual change data generating the change information;
and synchronizing the change information and the corresponding source information to at least one local storage server of the workflow engine so as to perform synchronous processing on the flow instance data.
The computer program product in this embodiment acquires, when a process log corresponding to process instance data is changed, source information corresponding to change information and actual change data that generates the change information, and synchronizes the change information and the corresponding source information to at least one local storage server of a workflow engine to perform synchronization processing on the process instance data.
It should be noted that the terms "first," "second," and the like in the description of the present invention are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. In addition, in the description of the present invention, "a plurality" means two or more unless otherwise specified.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and alternate implementations are included within the scope of the preferred embodiment of the present invention in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present invention.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present invention may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present invention.

Claims (9)

1. A process instance data synchronization processing method is characterized by comprising the following steps:
when a process log corresponding to process instance data is changed, acquiring change information and source information corresponding to actual change data generating the change information;
synchronizing the change information and the corresponding source information to at least one local storage server of a workflow engine so as to perform synchronous processing on the process instance data;
further comprising:
acquiring the actual change data generating the change information, and storing the actual change data in a background server;
generating a corresponding relation between the actual change data generating the change information and source information;
and storing the corresponding relation in the background server.
2. The process instance data synchronization processing method of claim 1, wherein the synchronizing the change information and the corresponding source information to a local storage server of at least one of the workflow engines comprises:
and generating a change log according to the change information and the corresponding source information, and synchronizing the change log to at least one local storage server of the workflow engine.
3. The process instance data synchronous processing method of claim 2, wherein the change log further comprises three basic object information of the process instance data generating the change, and the three basic objects are: a process instance, a node instance, and a work item.
4. The process instance data synchronization processing method of claim 3, wherein the obtaining of the source information corresponding to the change information and the actual change data that generated the change information comprises:
and acquiring change information of the changed process instance data in the process log and source information corresponding to the actual change data of the changed information.
5. The process instance data synchronization processing method of claim 1, further comprising:
receiving an operation instruction of a user on the changed process instance data, wherein the operation instruction comprises: source information;
and reading corresponding actual change data from the background server based on the source information and the corresponding relation.
6. The process instance data synchronization processing method of claim 3, wherein before the process log corresponding to the process instance data is changed, further comprising:
receiving a workflow interface calling operation, and generating process instance data according to the interface calling operation, wherein the process instance data at least comprises: the three basic object information;
and generating the corresponding process log according to the process instance data.
7. A process instance data synchronization processing apparatus, comprising:
the change acquisition module is used for acquiring change information and source information corresponding to actual change data generating the change information when a process log corresponding to process instance data is changed;
the synchronous processing module is used for synchronizing the change information and the corresponding source information to at least one local storage server of a workflow engine so as to perform synchronous processing on the process instance data;
further comprising:
acquiring the actual change data generating the change information, and storing the actual change data in a background server;
generating a corresponding relation between the actual change data generating the change information and source information;
and storing the corresponding relation in the background server.
8. A non-transitory computer-readable storage medium on which a computer program is stored, the program, when executed by a processor, implementing the process instance data synchronization processing method according to any one of claims 1 to 6.
9. A computer device comprising a housing, a processor, a memory, a circuit board, and a power circuit, wherein the circuit board is disposed inside a space enclosed by the housing, the processor and the memory being disposed on the circuit board; the power supply circuit is used for supplying power to each circuit or device of the computer equipment; the memory is used for storing executable program codes; the processor executes a program corresponding to the executable program code by reading the executable program code stored in the memory, for performing:
when a process log corresponding to process instance data is changed, acquiring change information and source information corresponding to actual change data generating the change information;
synchronizing the change information and the corresponding source information to at least one local storage server of a workflow engine so as to perform synchronous processing on the process instance data;
further comprising:
acquiring the actual change data generating the change information, and storing the actual change data in a background server;
generating a corresponding relation between the actual change data generating the change information and source information;
and storing the corresponding relation in the background server.
CN201710624828.8A 2017-07-27 2017-07-27 Flow instance data synchronous processing method and device Active CN107423404B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710624828.8A CN107423404B (en) 2017-07-27 2017-07-27 Flow instance data synchronous processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710624828.8A CN107423404B (en) 2017-07-27 2017-07-27 Flow instance data synchronous processing method and device

Publications (2)

Publication Number Publication Date
CN107423404A CN107423404A (en) 2017-12-01
CN107423404B true CN107423404B (en) 2020-06-26

Family

ID=60430383

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710624828.8A Active CN107423404B (en) 2017-07-27 2017-07-27 Flow instance data synchronous processing method and device

Country Status (1)

Country Link
CN (1) CN107423404B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108898448A (en) * 2018-07-25 2018-11-27 北京木瓜移动科技股份有限公司 A kind of ad data synchronous method and device
CN109656585A (en) * 2018-09-27 2019-04-19 深圳壹账通智能科技有限公司 Upgrade method, device, equipment and the storage medium of flow instance
CN110276902A (en) * 2019-05-25 2019-09-24 深圳市中燃科技有限公司 A kind of combustion gas payment of quick identification polymorphic type and terminal and its recognition methods
CN111143091B (en) * 2019-12-30 2023-05-09 贵州近邻宝科技有限公司 Logistics distribution terminal flow information synchronization system and device
CN111651522B (en) * 2020-05-27 2023-05-19 泰康保险集团股份有限公司 Data synchronization method and device
CN113064766A (en) * 2021-05-07 2021-07-02 数字广东网络建设有限公司 Data backup method, device, equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106021381A (en) * 2016-05-11 2016-10-12 北京搜狐新媒体信息技术有限公司 Data access/storage method and device for cloud storage service system
CN106055654A (en) * 2016-06-01 2016-10-26 东软集团股份有限公司 Heterogeneous data integration method and device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106021381A (en) * 2016-05-11 2016-10-12 北京搜狐新媒体信息技术有限公司 Data access/storage method and device for cloud storage service system
CN106055654A (en) * 2016-06-01 2016-10-26 东软集团股份有限公司 Heterogeneous data integration method and device

Also Published As

Publication number Publication date
CN107423404A (en) 2017-12-01

Similar Documents

Publication Publication Date Title
CN107423404B (en) Flow instance data synchronous processing method and device
CN107958010B (en) Method and system for online data migration
JP2019523462A (en) Multitask scheduling method, system, application server, and computer-readable storage medium
CN106874281B (en) Method and device for realizing database read-write separation
CN105205154B (en) Data migration method and device
US10467192B2 (en) Method and apparatus for updating data table in keyvalue database
CN106648994B (en) Method, equipment and system for backing up operation log
US11526475B2 (en) Code generator platform for data transformation
CN110019239B (en) Storage method and device of reported data, electronic equipment and storage medium
CN104317957A (en) Open platform and system for processing reports and report processing method
WO2018177350A1 (en) Method and apparatus for providing serial number, electronic device and readable storage medium
US20140337392A1 (en) Flexible partitioning of data
CN113468111A (en) Log monitoring management system and method for container cloud
CN107040576A (en) Information-pushing method and device, communication system
CN113094430B (en) Data processing method, device, equipment and storage medium
CN105610917B (en) Method and system for realizing synchronous data repair in system
CN106846024B (en) Redis-based coupon issuing method, system and computer-readable storage medium
CN115587118A (en) Task data dimension table association processing method and device and electronic equipment
CN113138973A (en) Data management system and working method
JP7366664B2 (en) Offline briefcase sync
CN107391528B (en) Front-end component dependent information searching method and equipment
US8539492B1 (en) Managing data dependencies among multiple jobs using separate tables that store job results and dependency satisfaction
US10129328B2 (en) Centralized management of webservice resources in an enterprise
CN112199443A (en) Data synchronization method and device, computer equipment and storage medium
CN113590643B (en) Data synchronization method, device, equipment and storage medium based on dual-track database

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant