Method for implementing transaction-dependent listener of workflow system

A listener and workflow technology, applied in the computer field, can solve problems such as complexity, workflow transaction integrity, and consistency cannot be guaranteed

Inactive Publication Date: 2018-12-21
INSPUR COMMON SOFTWARE
View PDF5 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] Today, the workflow system is not only a process control system, but also a data integration system. The traditional workflow engine uses local transactions and distributed transactions to ensure data consistency, but in the microservice architecture, the data is private to the service. Yes, it needs to be accessed throug

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method for implementing transaction-dependent listener of workflow system
  • Method for implementing transaction-dependent listener of workflow system
  • Method for implementing transaction-dependent listener of workflow system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0021] The content of the present invention is described in more detail below:

[0022] The workflow engine defines a set of transaction-dependent listener interfaces and registration methods, and the process listener implements the above interfaces and implements its own business logic.

[0023] Set the execution timing of the listener transaction state during process modeling.

[0024] When the process engine runs and resolves to the listener, it checks whether it is a transaction-dependent listener, and if it is delayed execution.

[0025] A listener interface that depends on transactions. mainly includes:

[0026] The listener executes the dependent transaction timing, and the listener executes context parameters.

[0027] The listener executes a transaction timing including before transaction commit, after transaction commit and transaction rollback; listener execution context parameters include process instance ID, listener ID, system context dictionary and custom con...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

A method for implementing transaction dependent listener of a workflow system belongs to the computer field. The method according to the invention comprises the follow steps: A set of transaction-dependent listener interfaces is defined in the workflow system, Registers a transaction-dependent listener to implement a transaction-dependent interface, Set the listener transaction state execution time when the process is modeled, When the process engine parses the process model, it checks whether the listener is a transaction dependent listener, if so, it does not execute immediately, takes a snapshot of the current execution state, triggers a response listener when the transaction state changes, delays execution, and the transaction listener performs posting processing using an external event table. This approach ensures the conciseness of process engine execution and data consistency in the micro-services architecture.

Description

technical field [0001] The invention relates to computer technology, in particular to a method for implementing a listener of a workflow system dependent transaction. Background technique [0002] Today, the workflow system is not only a process control system, but also a data integration system. The traditional workflow engine uses local transactions and distributed transactions to ensure data consistency, but in the microservice architecture, the data is private to the service. Yes, it needs to be accessed through the API provided by the service, so the distributed transaction is no longer applicable to the microservice architecture, and the transaction processing of the workflow is much more complicated than the transaction processing in the database, so that the integrity and consistency of the workflow transaction cannot be guaranteed . Contents of the invention [0003] In order to solve the above technical problems, the present invention proposes a workflow system-...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F9/46
CPCG06F9/466
Inventor 王家照高伟王召冠
Owner INSPUR COMMON SOFTWARE
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products