camunda / camunda-bpm-platform

Flexible framework for workflow and decision automation with BPMN and DMN. Integration with Quarkus, Spring, Spring Boot, CDI.
https://camunda.com/
Apache License 2.0
4.1k stars 1.55k forks source link

When querying for open tasks, I want to have the option to fetch variables attached to the open tasks along with results #4487

Open prakashpalanisamy opened 2 months ago

prakashpalanisamy commented 2 months ago

User Story

As a developer, I need the ability to query for the list of tasks with the option to retrieve Task Local Variables and Task Variables as part of response by passing appropriate flags.

Functional Requirements

There can be appropriate flags added to the get-taskList post-taskList APIs' requests to enable the response to include the Task Variables as part of the response. This will save multiple API call to achieve the same outcome. The default behaviour can be set to NOT retrieve the variables as part of the response to not impact load/performance.

API Endpoints in Scope:

Links

### Pull Requests
prakashpalanisamy commented 2 months ago

I'm willing to pick this up for implementation as well. @yanavasileva , Im tagging you so that you can take a look at the proposed Issue and provide your inputs. Thanks!!

yanavasileva commented 2 months ago

Looks good. To be more explicit, you can add the exact REST endpoints in the ticket's description.

prakashpalanisamy commented 2 months ago

Looks good. To be more explicit, you can add the exact REST endpoints in the ticket's description.

Hi @yanavasileva.. Thank you for your quick response :) I have updated the Issue description to include the API endpoint in scope. Please review.

I need few inputs from you on the below items:

  1. I'm planning to introduce request parameters like withTaskVariablesInReturn and withTaskLocalVariablesInReturn
    • does the above both params make sense? or do you recommend to keep only LocalVariable in scope?
    • only on the parameters set to true explicitly on request, the users will be able to get response with variables
    • withTaskVariablesInReturn will take precedence over withTaskLocalVariablesInReturn, as the former covers the local variables as well.

Thank you!!

yanavasileva commented 2 months ago
  • does the above both params make sense?

Yes, both make sense.

  • only on the parameters set to true explicitly on request, the users will be able to get response with variables
  • withTaskVariablesInReturn will take precedence over withTaskLocalVariablesInReturn, as the former covers the local variables as well.

Sounds good.