flowable / flowable/flowable-engine

Documentation says it is possible to POST a zip file to cmmn-repository/deployments endpoint but the CMMN REST API does not allow that.

Open
#2,758 0 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**
Reading the [documentation](https://flowable.com/open-source/docs/cmmn/ch08-REST/#create-a-new-deployment) for the creation of a new deployments using the CMMN REST API, it is said that a you can deploy multiple resources by compressing them in a zip file.

**Expected behavior**
Response Code 201 (New deployment has been created)

**Actual behavior**
Response Code 400
`
{
"message": "Bad request",
"exception": "File must be of type .cmmn.xml, .cmmn"
}
`

**Code**
`
$ curl --request POST 'http://localhost:8080/cmmn-api/cmmn-repository/deployments' --form 'file=@"/tmp/my-case-resources.bar"'
`

**Additional context**
I'm using the version 6.6.0 of the following spring boot starters:

- flowable-spring-boot-starter-rest
- flowable-spring-boot-starter-actuator
- flowable-spring-configurator

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.