Closed maximilianbehr closed 2 weeks ago
I was looking for the same..
It is not possible in Zeebe GRPC API
@maximilianbehr
I use this info to restrict access for now..
from pyzeebe import ZeebeWorker
worker = ZeebeWorker()
@worker.task(task_type="my-task")
def handle_task(job):
process_instance_key = job.process_instance_key
process_definition_key = job.process_definition_key
bpmn_process_id = job.bpmn_process_id
element_id = job.element_id
print(f"Process instance key: {process_instance_key}")
print(f"Process definition key: {process_definition_key}")
print(f"BPMN process id: {bpmn_process_id}")
print(f"Task element id: {element_id}")
Is it possible to restrict a worker to a specific process and version?