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

Allow for empty body in certain REST requests

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Fixed
    • L3 - Default
    • 7.7.0, 7.7.0-alpha2
    • 7.7.0-alpha1, 7.6.4
    • None
    • 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.

      mgm-controller-panel

        This is the controller panel for Smart Panels app

        Attachments

          Activity

            People

              thorben.lindhauer Thorben Lindhauer
              ruecker Bernd Ruecker
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Salesforce