flowable / flowable/flowable-engine

Can't update start user id for historic process instance

Aperta
#1,983 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**
Can't update start user id for historic process instance.
I checked the mybatis mapping xml for historicProcessInstance, there is no update sql for start user id. We need to update the start user id to null when the user need to be off boarding.

**Expected behavior**
The start user id can be updated.

**Code**
HistoricProcessInstanceEntityManager historicProcessInstanceEntityManager =
CommandContextUtil.getHistoricProcessInstanceEntityManager();
List processInstanceList =
historicProcessInstanceEntityManager.findHistoricProcessInstancesByQueryCriteria(historicProcessInstanceQuery);
for (HistoricProcessInstance processInstance : processInstanceList) {
HistoricProcessInstanceEntity processEntity = (HistoricProcessInstanceEntity) processInstance;
processEntity.setStartUserId(null);
historicProcessInstanceEntityManager.update(processEntity);
}

**Additional context**
Flowable version: 6.4.2
Database: postgresql 11

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.