Added SelectTicket flow and GenerateTicket subflow

Signed-off-by: Stanislav Seletskiy <leostas9@gmail.com>