flowable / flowable/flowable-engine

Bug migrating process instance in 6.7.2

Aperta
#3,239 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Java
Stelle
9.5k
Fork
2.9k
Merge medio
7h 8m
PR unite (30g)
2

Descrizione

**Describe the bug**
Hi!
I’m using flowable 6.7.2 and looks like there’s a problem migrating process instance from one callActivity to another in this version.
Let’s say, I have a simple model like this one:
![image](https://user-images.githubusercontent.com/21105369/158412337-cb54e4b3-d661-4229-b79c-9d5dc83373da.png)

After starting the process it goes to “call activity 1”. Inside both callActivities there’s just a single user task. So the main process will stop on “call activity 1” and wait for a user task completion.
Now let’s try to migrate process instance from “call activity 1” to “call activity 2” (same model version).

**Expected behavior**
active token will be moved from “call activity 1” to “call activity 2”, subprocess corresponding to “call activity 1” will be deleted and a new subprocess corresponding to “call activity 2” will be started.
Real behavior: no errors, but process instance has no changes after migration.

**Code**
Here’s the code I’m using for migration:

```java
String pid = "4505147";
String definitionId = "test_migration_bug:4:4505206";
ProcessInstanceMigrationBuilder migrationBuilder = processMigrationService.createProcessInstanceMigrationBuilder();
migrationBuilder.migrateToProcessDefinition(definitionId);
ActivityMigrationMapping currentMapping = ActivityMigrationMapping.createMappingFor("Activity_1ik53m0", "Activity_0jpkzf3");
migrationBuilder.addActivityMigrationMapping(currentMapping);
migrationBuilder.migrate(pid);
```

BPMN model:
```xml



Flow_1x3nwgx



Flow_1atp8ps
Flow_0ti4wed



Flow_1x3nwgx
Flow_0lspzco
Flow_0j97xr8


${true}


${false}



Flow_0lspzco
Flow_1atp8ps


Flow_0j97xr8
Flow_0ti4wed











































```

**Additional context**
Flowable 6.7.2, PostgreSQL 13.0, Spring Boot.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.