In my worker I can get the zeebe process id and instance id etc.
However, let’s say the process got started via a call activity inside another process. Is there a way I can know in the worker from which process it originates?
Hi @sebakerckhof,
thank you for raising this up.
No. The job worker receives activated jobs. A job contains some information about the process and the process instance of the related service task.
But it doesn’t contain a property to determine if the process instance was created by a call activity.
In our mindset, a job worker should not have too much knowledge about the process where the service task is located.
However, a job worker can retrieve additional data by:
- defining custom headers on the service task
- defining input variable mappings on the service task or a higher scope
- pass variable in the process instance
Does this help you?
Best regards,
Philipp