How to get multiple Variables from process with the topic subscription builder?

Hi, I would like to implement a process with an external task. For this I need the global variables.
This ist the current state:

Topic subscription subscription = client.subscribe(...).variables("?").handler((externalTask, externalTaskService) -> { Map<String, Objekt> InputVar = externalTask.getAllVariables(); externalTaskService.complete(externalTask); }).includeExtensionProperties(true).open()

If I just write a variable name in variables() this works. How do I write the names in the string so that I get all of them?
I also tried with the Extension properties but externalTask.getExtensionProperties() only returned an empty map.

Thx for any help!

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.