Read taskDeninitionKey in tasklist

Hi all,

In my cam-script I want to have access to the taskDeninitionKey field in the task object.
I see it is available on the camTaskActionCtrl controller but I cannot find a way yo programatically access it.

Any thoughts?

Hi nvanbelle,

please specify the problem and your intention in more detail. A step-by-step list and screenshots to reproduce the issue would be helpful as well.

Best,

Fabian

Hi @FabianHinsenkamp,

In my custom external tasklist forms, I want to pass the taskDefinitionKey to one of my angular components so that I can make input-fields required depending on the task.

I can see that the variable I’m interested in is stored in controller ‘camTaskActionCtrl’ but I cannot reach it from my form (or at least I think I’m unable to). Is there some other way I can get the taskDeninitionKey in a form?

Hi @nvanbelle,

you should check the available API calls to fetch task related data. If you only need the to taskDeninitionKey
for a single task this call might be a good choice:

https://docs.camunda.org/manual/7.5/reference/rest/task/get/

Thank you, but I was really hoping to get this information directly from a controller or variableManager.