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

Long polling is not working in Spring boot if you use webapp and rest dependency

XMLWordPrintable

    • Icon: Bug Report Bug Report
    • Resolution: Duplicate
    • Icon: L3 - Default L3 - Default
    • None
    • None
    • engine, spring-boot
    • None

      What are the steps to reproduce your problem?
      1. Setup spring boot project (you can use the one in the attachments) using

      • camunda-bpm-spring-boot-starter-webapp
      • camunda-engine-rest

      2. Run the project
      3. Execute the following query:

      /POST http://localhost:8080/rest/engine/default/external-task/fetchAndLock
      {
      	"asyncResponseTimeout": 10000,
      	"workerId": "worker",
      	"maxTasks": 1,
      	"usePriority": true,
      	"topics": [{
      		"topicName": "topic",
      		"lockDuration": 50000
      	}]
      }
      

      What is the problem?
      The asyncResponseTimeout is not taken into account and the response [] is returned immediately

      Note:
      The problem is that the projects uses camunda-bpm-spring-boot-starter-webapp which contains dependency to camunda-engine-rest which does not support long polling and it is also mapped to the same endpoint.

        This is the controller panel for Smart Panels app

              Unassigned Unassigned
              yana.vasileva Yana Vasileva
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: