holunda-io / camunda-bpm-taskpool

Library for pooling user tasks and process related business objects.
https://www.holunda.io/camunda-bpm-taskpool/
Apache License 2.0
68 stars 26 forks source link

Variables not contained in TaskCompletedEngineEvent #754

Closed jangalinski closed 1 year ago

jangalinski commented 1 year ago

Setup:

camunda 7.18.4, poylflow 3.8.1

We send a "CompleteCommand" to an axon CommandHandler. This command contains data that should end up in the process. We use the polyflow taskpool-job-handler and have the camunda.bpm.eventing.task=false property disabled.

Problem

What we see: In a process with many user tasks that are all completed via taskService.complateTask(cmd.id, cmd.variables()) one (the first) task is completed, but the TaskCompletedEngineEvent does not contain the passed variables. In the cockpit (and follow-up TaskCreatedEngineEvents) the variables. exist.

Note: This is a user task that receives (large) bytes arrays containing base64 images.

Theory: Is it possible, that the async taskpool-job tries to read the process-variables while they are still "locked" by the camunda transaction?

jangalinski commented 1 year ago

Not a bug, it's a feature request: #755