How to get task name in nodeJS external task client?

Hi,

I am using the camunda external task client for NodeJS : Camunda External Task Client for NodeJS

My subscription to an external task looks like this :
app.get(‘camundaClient’).subscribe('/topic/toSubscribeTo, async ({ task, taskService }) => {
try {
// do stuff
}

Now, using the ‘task’ and ‘taskService’ parameters, I am able to get:

  1. Process ID
  2. Task ID
  3. Topic subscribed to

Is it possible to get the task name? (That we have specified in the modeller)

P.S. This is my first post in the forums, I’m new - so please excuse me if I’ve posted this in the wrong category.

Thanks!

1 Like