flowable / flowable/flowable-engine

flowable rest api start loan request thrown NPE

Aperta
#3,298 2 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**
An NPE occurs when a process is initiated through the REST API.

**Expected behavior**
I followed the tutorial in the link below and started the process using Postman.
https://www.flowable.com/open-source/docs/bpmn/ch10-JPA#advanced-example-using-spring-beans-and-jpa

**Code**
rest api :
`POST` `/runtime/process-instances`

body:
```json
{
"name": "Xiazunyang-LoanRequest-2022/04/28-1",
"processDefinitionKey": "LoanRequestProcess",
"startFormVariables": [
{
"name": "customerName",
"type": "string",
"value": "Xiazunyang"
},
{
"name": "amount",
"type": "long",
"value": 1200
}
]
}
```

the exceptions:
![img](https://github.com/xiazunyang/CoilTest/blob/master/JPAEntityMappings.java.png?raw=true)

The code for the NPE to occur:
![img](https://github.com/xiazunyang/CoilTest/blob/master/Context.getCommandContext().png?raw=true)

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

Inizia riproducendo il POST a /runtime/process-instances con il payload LoanRequestProcess dell’issue e segui il tutorial collegato su Spring Beans e JPA. Esamina il punto della NPE mostrato in Context.getCommandContext() e l’esempio JPAEntityMappings.java; il lavoro è completato quando il processo avviato tramite REST termina senza la NPE segnalata.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
java, spring
Ambito
api, backend
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Da chiarire
Idoneità per principianti
25/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.