Uploaded image for project: 'camunda BPM'
  1. camunda BPM
  2. CAM-7593

Allow for empty body in certain REST requests

    Details

    • Type: Feature Request
    • Status: Closed
    • Priority: L3 - Default
    • Resolution: Fixed
    • Affects Version/s: 7.7.0-alpha1, 7.6.4
    • Fix Version/s: 7.7.0, 7.7.0-alpha2
    • Component/s: None
    • Labels:
      None

      Description

      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.

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            thorben.lindhauer Thorben Lindhauer
            Reporter:
            ruecker Bernd Rücker
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development