I configure my service task to with an execution listener that is triggered at the start of the service task. In my execution listener, is it possible to obtain information on the service task’s job worker, like what is the name of the job worker that will be executed?
Yes, if your goal is to get the job type defined in the Service Task (the zeebe:taskDefinitionin BPMN), this is possible from an execution listener, you can access it from the task definition.
However, if you want to get information about the worker instance that will execute the job, this is not possible in the listener. Execution listeners run before the job is created and assigned to any worker, so the actual worker does not exist yet.
For worker-related information, you can only access it inside the Job Worker when the job is picked up.
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.