Can we hook worker to events?

Hi,
Is there a way we can hook generic hooks to zeebe events? say I want to execute a piece of code for each start process event. This was available in Camunda 7.

Thank you in advance.

Hi @camundabpmlearner,

this feature is not available yet in Camunda 8.

But what about adding a service task or a message send event with a good name that explains what you do in this task?

Even if the task doesn’t fit into the original business process, a technical task with a good name that explains the use maybe a good addition.

Hope this helps, Ingo

Hi @Ingo_Richtsmeier,
Thank you for the response :slight_smile:
I’m currently doing same by keeping at beginning and ending. But I’m using them to track start time and end time of process. Since this is a first worker, this will take little more time than start time of process, which isn’t accurate. Hence looking for this feature.
May I know when can we expect this feature?

Hi @camundabpmlearner,

It’s not decided yet.

Do the milliseconds really count? If you want to get the complete runtime of the process instance, take a look at Optimize: Define reports | Camunda 8 Docs

Hope this helps, Ingo

Hi @Ingo_Richtsmeier ,
Thank you for response :slight_smile:
I need instance information as a api(Like in camunda 7 we have native api to get instance details and we can query them). I think the report link you shared is part of operate.

Is there any api specific to this(as part of golang client) ?