holunda-io / camunda-bpm-data

Beautiful process data handling for Camunda 7 Platform.
https://www.holunda.io/camunda-bpm-data/snapshot/
Apache License 2.0
31 stars 6 forks source link

Missing variable reader for external tasks #309

Open FlorianCassayre opened 1 year ago

FlorianCassayre commented 1 year ago

Scenario

Current Behaviour

ExternalTask externalTask = ...;
VariableReader reader = reader(externalTask.getAllVariablesTyped());
var value = reader.get(MY_VARIABLE);

Wanted Behaviour

VariableReader reader = reader(externalTask); // No call to getAllVariablesTyped

Possible Workarounds

See Current Behaviour. It's not convenient to call getAllVariablesTyped on the external task, this should be abstracted by the library. Reading variables from external tasks is a common use case (see the ExternalTaskHandler interface).

zambrovski commented 1 year ago

Must be implemented in a new additional module, since it depends on external-client which is not part of the c7 engine.