try ((ExecutionImpl) execution).getTransition();
Thank you so much once again.
Is the cast still necessary in 4.4 or has the interface been changed?
I am afraid so. There is no method which could get activity or transition directly in Execution interface .
Should we add these methods into api ?