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.13k stars 1.56k forks source link

History Task Query: Task Variables only support "eq" #2525

Open ThorbenLindhauer opened 3 years ago

ThorbenLindhauer commented 3 years ago

This issue was imported from JIRA:

Field Value
JIRA Link CAM-12876
Reporter 56NgJE
What is this name? This pseudonym name was generated based on the user name in JIRA to protect the personal data of our JIRA users. You can use this identifier to search for issues by the same reporter.
Has restricted visibility comments true

Engine Version:7.11

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

When I list history tasks by detected param taskVariables, and the engine return Invalid variable comparator specified: neq

 

POST /engine-rest/history/task

{
    "processInstanceId": "dc12c9dd-38ef-11eb-8b69-0a58ac00082f",
    "taskVariables": <
        {
            "name": "name",
            "value": "NingYu",
            "operator": "neq"
        }
    >
}

{
    "type": "InvalidRequestException",
    "message": "Invalid variable comparator specified: neq"
}

Expected behavior:

Links:

ThorbenLindhauer commented 3 years ago

This comment was imported from JIRA and written by user @marstamm


Hi 56NgJE,

Thank you for creating this ticket. We can confirm the bug and will now decide how we continue with it.

Cheers, Martin

ThorbenLindhauer commented 3 years ago

This comment was imported from JIRA and written by user @ThorbenLindhauer


Hi Tony,

Thanks for raising this ticket. The scope of this bug fix will be that we will update the documentation to be correct with the current behavior. We will try to correct this with the 7.15 release, but cannot make a promise.

Being able to filter for tasks that have a variable value not equal to a parameter would be a new feature in the product. Feel free to raise a separate feature request for this. If you like, we would also appreciate a contribution in the form of a pull request.

Cheers, Thorben