Thank you for the reply.
@barmac
I explained what I want to achieve in this reply
I pretty much achieved what I’m looking for but only when adding connections from the palette, all I need is an event that triggers with the creation of a task through the contextpad (I don’t intend to cancel it just need the ids both sides of the new connection).
@philippfromme
If there is a context pad entry for appending a shape it has already been checked 1 whether that shape can be connected.
So there is no way to add an event that triggers when a task is created through the contextpad? (I don’t want to cancel the creation by the way, I just need the Id of the element whose contextpad was used to add the new task and the id of the new task that has been created that’s all), so I would just update my Map variable “tasksLevelMap”.