To set the flow result, double-click on the End activity, or right click and select "Set variable as return value" on an activity.
If you set a flow result, the Codolex will generate the flow code with the corresponding result:
procedure FlowWithoutResult;
function FlowWithResult: TCustomerEntity;