imxo
imxo

Reputation: 11

camunda - how to get task name using Zeebe API

I have a process in camunda, it has a Zeebe API, as I understand it, the backend communicates with camunda through it. I need, that by userId and Instance Id, I would give the name on which task this user is currently on. "- at this stage the user is now. I looked at how Ui is formed - there is a giant xml that is very inconvenient to parse, and this is not obtained through the Zeebe API, I think there is a more normal way.

enter image description here

I tried to make a query like

        return zeebeClient
                .newCreateInstanceCommand()
                .bpmnProcessId(startSimpleParameters.processName)
                .version(version)
                .variables(variables)
                .requestTimeout(timeout)
                .send()
                .await()

and expect to be able to get the current task the user is on and its name from the schema.

Upvotes: 0

Views: 236

Answers (0)

Related Questions