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

Business Key is missing in both runtime and history task query response

    • Icon: Feature Request Feature Request
    • Resolution: Won't Do
    • Icon: L3 - Default L3 - Default
    • None
    • 7.11.3
    • engine, tasklist

      BusinessKey is missing in both runtime task query response(rest api) and history task query response(rest api) .

      When i want to associate businesskey to the tasks, i have to make additional rest api call to get businesskey for the processinstance id of the tasks.

      It causes huge performance impact for just querying for one businesskey.

      If businesskey is added for task list response(GET, POST) rest api would be more efficient.

      https://docs.camunda.org/manual/7.11/reference/rest/task/post-query/
      https://docs.camunda.org/manual/7.11/reference/rest/history/task/get-task-query/
      https://docs.camunda.org/manual/7.11/reference/rest/task/get-query/

        This is the controller panel for Smart Panels app

            [CAM-10804] Business Key is missing in both runtime and history task query response

            Nikola Koevski added a comment - - edited

            Hi aravindhrs,

            Thank you for the FR. I will forward it for consideration. This ticket is also a duplicate of CAM-3030.

            Best,
            Nikola

            Nikola Koevski added a comment - - edited Hi aravindhrs , Thank you for the FR. I will forward it for consideration. This ticket is also a duplicate of CAM-3030 . Best, Nikola

            Hi Aravindh,

            Thanks for proposing this feature. As the business key is not stored in the task table, a join to the execution table is required to provide it along with the tasks. We would prefer to not make a join with every task query, as that could impact the performance for every user. In addition, the Java API in most places only contains attributes stored within one table. That's why we will not add the business key out of the box to the Task interface for now. If you need a single endpoint that returns a task with its business key, I recommend you build a custom REST endpoint and/or SQL query.

            Cheers,
            Thorben

            Thorben Lindhauer added a comment - Hi Aravindh, Thanks for proposing this feature. As the business key is not stored in the task table, a join to the execution table is required to provide it along with the tasks. We would prefer to not make a join with every task query, as that could impact the performance for every user. In addition, the Java API in most places only contains attributes stored within one table. That's why we will not add the business key out of the box to the Task interface for now. If you need a single endpoint that returns a task with its business key, I recommend you build a custom REST endpoint and/or SQL query. Cheers, Thorben

              thorben.lindhauer Thorben Lindhauer
              aravindhrs Aravindh Ravi
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: