There is some method for to catch a BluePrint Transition?

There is some method for to catch a BluePrint Transition?

Hi People

I've been trying to detect when a user clicks a transition on a details page.

I am using this code in clientscript, but I just realized that it only serves to know the transitions that exist in the page details, but does not indicate which one was clicked to advance in the flow.

var transObj = ZDK.Page.getBlueprintTransitions();
var Transicion = transObj[0].getName();

If the page has only one transition, it will obviously detect it, but if there is more than one, it only shows the name of the first transition.

I ask you if you can give me a hand to achieve this goal.

Thanks in advance
Pablo