An task has a id that is unique within a node container, but if we want make a reference to a task in special, in a global way, we need the taskid and processid, but in human task client api (TaskClient.java), when we call the method:
public void start(long taskId,
I think that the task isnt identified uniquely because if we have two process, both with a valid human task with id=2, for example, how can the jBPM differentiate?
My main goal here is understand how is possible identify uniquely a task only with the taskid value.
Sorry for the english.
the id of the task is unique (https://github.com/droolsjbpm/jbpm/blob/master/jbpm-human-task/src/main/java/org/jbpm/task/Task.java), you cannot have two tasks with the same task id.
Maybe you are confusing it with the node id?
Maybe i'm confusing, for me, the taskid is the number associate with an task in a process definition (the value that we set in properties in the eclipse editor).
If my vision about taskid is correct, when we insert a process definition to the knowledge base, a special logic to verify if there are id conflict wasnt necessary ?