flowable / flowable/flowable-engine

flowable rest api start loan request thrown NPE

Open
#3,298 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
9.5k
Forks
2.9k
Avg merge
7h 8m
Merged PRs (30d)
2

Description

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.