-
Feature Request
-
Resolution: Fixed
-
L3 - Default
-
7.7.0-alpha1, 7.6.4
-
None
-
None
I want to start a new process instance without providing variables.
I do a POST at process-definition/key/interactive-lab-collector/start without body. This yields in an exception:
java.lang.NullPointerException: null at org.camunda.bpm.engine.rest.sub.repository.impl.ProcessDefinitionResourceImpl.startProcessInstanceAtActivities(ProcessDefinitionResourceImpl.java:140) ~[camunda-engine-rest-core-7.7.0-alpha1.jar:7.7.0-alpha1] at org.camunda.bpm.engine.rest.sub.repository.impl.ProcessDefinitionResourceImpl.startProcessInstance(ProcessDefinitionResourceImpl.java:106) ~[camunda-engine-rest-core-7.7.0-alpha1.jar:7.7.0-alpha1]
So you have to provide a body with an empty JSON object:
{}
I stumble over that very regularly. It would be nicer for the user to allow that empty body as non-experienced people might not guess what the problem exactly is.