How get the activity id of task by java api?


#1

The Task object have not provided the method of get the task activity id.

How can i get it ? It is so important to me.


#2

Look https://docs.camunda.org/javadoc/camunda-bpm-platform/7.9/org/camunda/bpm/engine/task/Task.html#getId()


#3

What API are you using?
When you say “task activity id” what do you mean exactly - what do you need this id for?


#4

Thank you but this is not actully what i need.

I just want to know the task belong to which activity.
And I want to get the activity id by use java api


#5

My apologies. My english not so good.

I just want to know the task of from camunda is belong to which activity.
And I want to get the activityId by use java api.


#6

@Niall
@scepbjoern

Tanks you all.
I already get the java api
Here is the name of the api

getTaskDefinitionKey