flowable / flowable/flowable-engine

Bug migrating process instance in 6.7.2

Abierto
#3,239 0 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Java
Estrellas
9.5k
Forks
2.9k
Merge medio
7 h 8 min
PR fusionados (30 d)
2

Descripción

**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.

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Línea de trabajo

Reproduce the migration using ProcessInstanceMigrationBuilder, ActivityMigrationMapping, the shown processMigrationService call, and the BPMN model. Start by checking the migration behavior for the two call activities in Flowable 6.7.2 with PostgreSQL 13.0. Done means the token moves to call activity 2, the first subprocess is deleted, and the second subprocess starts.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
java, postgresql, spring-boot
Área
backend
Tipo de issue
Error
Dificultad
4/5
Tiempo estimado
3-5 días
Estado de actividad
Estancado
Claridad
Bastante claro
Aptitud para principiantes
38/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.