Hello Everybody,
Could you help me, please, to know if it’s possible to send a message by Zeebe Java client (in handler section):
final JobWorker jobWorker = client.newWorker().jobType(JOB_TYPE).handler(new WorkerJobHandler()).open();
public class WorkerJobHandler implements JobHandler {
@Override
public void handle(JobClient client, ActivatedJob job) {
... sendMessage(); ...
} }
or by Spring Zeebe client:
@ZeebeWorker(type = "myJobWorkerType")
public void myJobWorkerType(final JobClient client, final ActivatedJob job) {
... sendMessage(); ...
}
It’s only Interface JobClient with short list of methods available.
But I need Interface ZeebeClient with method newPublishMessageCommand() witch I can use in Zeebe Java client, but not in Handler and not in Spring Zeebe client.
Maybe I don’t know something and it’s possible to send a message to Zeebe by Spring Zeebe client ?