camunda-bpm-platform icon indicating copy to clipboard operation
camunda-bpm-platform copied to clipboard

BadUserRequestException when filtering process instances for batch operation using a date variable in a query

Open mboskamp opened this issue 4 months ago • 0 comments

Environment (Required on creation)

Reproduced with

  • Camunda 7.22.0
  • Camunda Run
  • H2

Description (Required on creation; please attach any relevant screenshots, stacktraces, log files, etc. to the ticket)

When starting a batch operation to set variables, we can filter process instances by query. When filtering the process instances by a variable of type Date, the query returns a result, but there is an error when the batch is executed.

Steps to reproduce (Required on creation)

  • Take any process definition and set a date variable to an instance
  • Go to Batch Operations in Cockpit and select Set Variable
  • Select the query option to filter for process instances
  • Set variable: variableName = 2024-10-17T13:55:00.000+0200 filter (depending on the date you set in the variable)
  • Specify a variable to set with the Batch and execute the Batch.

Observed Behavior (Required on creation)

  • There is an error when executing the dialog

Browser console log:

{
  "type" : "BadUserRequestException",
  "message" : "processInstanceIds is empty",
  "code" : 0
}

Error displayed in Cockpit: image

Expected behavior (Required on creation)

  • There is no error and the variable is set via Batch to all process instances found by the query.

Root Cause (Required on prioritization)

TBD

Solution Ideas

Hints

Links

Breakdown

### Pull Requests

Dev2QA handover

  • [ ] Does this ticket need a QA test and the testing goals are not clear from the description? Add a Dev2QA handover comment

mboskamp avatar Oct 17 '24 11:10 mboskamp