Setting Exclusive Gateway Outgoing Sequence Expression as a function

Thanks a lot and please, can you check this one also?