REST API to create new project in BPMS 6

Solution Verified - Updated -

Issue

  • We are using below REST API to create a project, but it fails with exception:
curl -i -X POST -H "Content-Type:application/json"  http://User:Password@localhost:8080/business-central/rest/repositories/repository1/projects/  --data '{"name":"DemoApplication","description":"Demo application"}'
WARN  [org.kie.remote.services.rest.exception.DescriptiveExceptionHandler] (http-localhost/127.0.0.1:8080-6) Exception thrown when processing request [/repositories/repository1/projects/]; responding with status -1: java.lang.IllegalMonitorStateException
    at org.uberfire.commons.lock.impl.ThreadLockServiceImpl.unlock(ThreadLockServiceImpl.java:44) [uberfire-commons-0.3.3-redhat-4.jar:0.3.3-redhat-4]
. . .
  • How can we provide group id, artifact id and version of the project at time of creation?

Environment

  • Red Hat JBoss BRMS
    • 6.0.x
  • Red Hat JBoss BPM Suite
    • 6.0.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In