Hello everybody,
I usually bootstrap the Zeebe client and then I create a process instance of a deployed modeled process, like this:
BrokerAddr := os.Getenv("ZEEBE_BROKER_ADDRESS")
zbClient, err := zbc.NewClient(&zbc.ClientConfig{
GatewayAddress: BrokerAddr,
UsePlaintextConnection: true,
KeepAlive: 1 * time.Second,
})
if err != nil {
panic(err)
}
request, err :=zbClient.NewCreateInstanceCommand().BPMNProcessId(triggerDataConfig.ProcessID).LatestVersion().VariablesFromObject(variables)
if err != nil {
panic(err)
}else
{
result, err := zeebeRequest.Send(context.Background())
}
I used this library: github.com/zeebe-io/zeebe/clients/go
but then when I switched to the new one github.com/camunda-cloud/zeebe/clients/go I got this error when I try to send the request zeebeRequest.Send(context.Background())
rpc error: code = Unimplemented desc = Method not found: gateway_protocol.Gateway/CreateProcessInstance
any idea?
thanks a lot