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 ?