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

Can not fetch diagram over rest api in spring boot

    • Icon: Bug Report Bug Report
    • Resolution: Won't Fix
    • Icon: L3 - Default L3 - Default
    • None
    • 7.10.0
    • spring-boot
    • None

      i am unable to fetch the process diagram in spring-boot.

      calling /process-definition returns the definition but with diagram = null.
      calling /process-definition/key/:key/diagram returns 204.

      Steps to reproduce:

      • Clone and run camunda-bpm-examples/spring-boot-starter/example-web
      • Call endpoints (Key: Sample) with BasicAuth User: user Password: password

        This is the controller panel for Smart Panels app

            [CAM-10332] Can not fetch diagram over rest api in spring boot

            Hi arndt_s,

            This endpoint is used to return an image of the model, if one is available. The image needs to be a png, gif, etc. The example-web project doesn't provide an image for the Sample process, so the HTTP 204 code is provided, meaning that the process definition doesn't have an associated diagram image. You can also see this topic in the forum: https://forum.camunda.org/t/unable-to-get-process-diagram/4321

            Since this is not actually a bug, but an expected behaviour (see https://docs.camunda.org/manual/latest/reference/rest/process-definition/get-diagram/), I am closing this ticket.

            Best,
            Nikola

            Nikola Koevski added a comment - Hi arndt_s , This endpoint is used to return an image of the model, if one is available. The image needs to be a png, gif, etc. The example-web project doesn't provide an image for the Sample process, so the HTTP 204 code is provided, meaning that the process definition doesn't have an associated diagram image. You can also see this topic in the forum: https://forum.camunda.org/t/unable-to-get-process-diagram/4321 Since this is not actually a bug, but an expected behaviour (see https://docs.camunda.org/manual/latest/reference/rest/process-definition/get-diagram/ ), I am closing this ticket. Best, Nikola

              nikola.koevski Nikola Koevski
              arndt_s Arndt Schwenkschuster
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: