Listen to when a Zeebe user task instance is created

My application implements a Worker of job type io.camunda.zeebe:userTask. In the handler I push the user task data to the browser, which is automatically re-rendered to show the form of this new user task. This has been discussed quite extensively.

Now, I read everywhere that Zeebe user tasks are replacing Job worker-based user tasks. Consequently, I cannot have a worker push the data to the browser.

What is the Camunda architects’ strategy for achieving this with Zeebe user tasks? What comes to mind is to implement a custom Exporter that listens to the create event, which is emitted when the engine successfully creates a task instance.

I would like your thoughts before implementing it. Not least, since custom Exporters are unavailable in SaaS, this significantly impacts the solution.

Any other ways of solving this?

Anyone from Camunda?

Hey @kristoffer.jalen - the solution will be task listeners - specifically, user task listeners. You would “subscribe” to an event with code quite similar to a job worker, and that would be invoked when that particular event is reached (for instance, at the “start” of that task). This is currently planned for 8.7; you can follow the epic here: [EPIC] Zeebe Task Listeners · Issue #21974 · camunda/camunda · GitHub

3 Likes

@nathan.loding Excellent, thanks.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.