# US 2016/0253209 A1 · Apparatus and method for serializing process instance access to information stored redundantly in at least two datastores

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2016/0253209 A1
- Document ID: US20160253209A1
- Status: Published application
- Kind: A1
- Application number: 15/149,818
- Filed: 2016-05-09
- Published: 2016-09-01
- Earliest claimed: 2005-07-11
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Frank Leymann; Dieter Roller
- Web page: https://patentgrep.com/patent/US20160253209A1

## CPC

- G06F 9/4881: {Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues}
- G06F 9/52: Program synchronisation; Mutual exclusion, e.g. by means of semaphores
- G06F 9/526: {Mutual exclusion algorithms}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Method and system for serializing access to datasets, suitable for use in a workflow management system which executes multiple business processes, wherein a single process instance is enabled to invoke web services which may update datasets of different storages holding redundant information. Business Process Execution Language for Web Services allows defining business processes that make use of web services and business processes that externalize their functionality as web services. As the business process has no knowledge about data that is accessed by invoked web services, concurrent process instances may update the same pieces of information within a database. Unless access to the data is carried out as a transaction, parallel execution of the process instances may cause data inconsistencies, which may be avoided by serializing the execution of process instances based on correlation information associated with messages consumed by the process instances.

## Claims

### Claim 1

An apparatus comprising a processor to:
identify at least two process instances of a plurality of process instances in a workflow management system that are to execute a conflicting access to redundant information held in at least two different datastores; and
serialize the at least two process instances by halting a first process instance of the at least two process instances until completion of a second process instance of the at least two process instances, wherein the at least two process instances are to be serialized based on one or more of a variable and a message.

### Claim 2 (depends on 1)

The apparatus of claim 1, wherein the conflicting access is to include a write by the first process instance and a write by the second process instance that are to cause an inconsistent change of the redundant information in the least two different datastores.

### Claim 3 (depends on 1)

The apparatus of claim 1, wherein the execution of the first process instance is to be halted until execution of the second process instance has completed to cause a consistent change of the redundant information in the at least two different datastores.

### Claim 4 (depends on 1)

The apparatus of claim 1, wherein each concurrently executing process instance of the plurality of process instances are to be serialized when a value of the variable is the same for each concurrently executing process instance.

### Claim 5 (depends on 1)

The apparatus of claim 1, wherein each concurrently executing process instance of the plurality of process instances are to be serialized when a value of a variable part is the same for each concurrently executing process instance.

### Claim 6 (depends on 1)

The apparatus of claim 1, wherein each concurrently executing process instance of the plurality of process instances are to be serialized when a value of the message is the same for each concurrently executing process instance.

### Claim 7 (depends on 1)

The apparatus of claim 1, wherein each concurrently executing process instance of the plurality of process instances are to be serialized when a value of a message part is the same for each concurrently executing process instance.

### Claim 8 (depends on 1)

The apparatus of claim 1, wherein the message is to include a web message.

### Claim 9 (depends on 1)

The apparatus of claim 1, wherein a set of variables that are joint in a logical expression are to be processed.

### Claim 10 (depends on 9)

The apparatus of claim 9, wherein the at least two process instances are to be serialized based on a conditional comparison of the set of variables.

### Claim 11 (depends on 1)

The apparatus of claim 1, wherein only a part of one or more of the first process instance and the second process instance are to be serialized.

### Claim 12

A computer program product comprising:
a computer readable storage medium; and
computer usable code stored on the computer readable storage medium, where, when executed by a processor, the computer usable code causes a computer to:
identify at least two process instances of the plurality of process instances in a workflow management system that are to execute a conflicting access to redundant information held in at least two different datastores; and
serialize the at least two process instances by halting a first process instance of the at least two process instances until completion of a second process instance of the at least two process instances, wherein the at least two process instances are to be serialized based on one or more of a variable and a message.

### Claim 13 (depends on 12)

The computer program product of claim 12, wherein the conflicting access is to include a write by the first process instance and a write by the second process instance that are to cause an inconsistent change of the redundant information in the at least two different datastores.

### Claim 14 (depends on 12)

The computer program product of claim 12, wherein execution of the first process instance is to be halted until execution of the second process instance has completed to cause a consistent change of the redundant information in the at least two different datastores.

### Claim 15 (depends on 12)

The computer program product of claim 12, wherein each concurrently executing process instance of the plurality of process instances are to be serialized when one or more of a value of the variable is the same for each concurrently executing process instance and a value of a variable part is the same for each concurrently executing process instance.

### Claim 16 (depends on 12)

The computer program product of claim 12, wherein each concurrently executing process instance of the plurality of process instances are to be serialized when one or more of a value of the message is the same for each concurrently executing process instance and a value of a message part is the same for each concurrently executing process instance.

### Claim 17 (depends on 12)

The computer program product of claim 12, wherein a set of variable that are joint in a logical expression are to be processed.

### Claim 18 (depends on 12)

The computer program product of claim 12, wherein only a part of one or more of the first process instance and the second process instance are to be serialized.

### Claim 19

A method comprising:
identifying at least two process instances of a plurality of process instances in a workflow management system that are executing a conflicting access to redundant information held in at least two different datastores; and
serializing the at least two process instances by halting a first process instance of the at least two process instances until completion of a second process instance of the at least two process instances, wherein the at least two process instances are serialized based on one or more of a variable and a message.

### Claim 20 (depends on 19)

The method of claim 19, further including one or more of:
serializing each concurrently executing process instance of the plurality of process instances when one or more of a value of the variable is the same for each concurrently executing process instance and a value of a variable part is the same for each concurrently executing process instance; and
serializing each concurrently executing process instance of the plurality of process instances when one or more of a value of the message is the same for each concurrently executing process instance and a value of a message part is the same for each concurrently executing process instance.
