Transitions via Engine API


I need to get de value of transitions that was in the conditions of the gateways via Engine Api. After doing a search i found the methods getOutgoingTransitions() and getIncommingTransitions() in Engine API. Can someone help me to use this methods?



API: retrieve name of a gateway default transition


I have designed a workflow with an exclusive gateway with one conditional transition and the mandatory default one. In the designer the 'name' attribute is populated.

When I retrieve the transitions from the API, for the conditional transition, the name defined in the designer is the condition name (gateway.transition.condition.name). But for the default transition, no condition is defined so I cannot figure out how to retrieve the name defined in the designer.

Is there a way to retrieve the name of the default transition ?

Thanks in advance