Currently, none of the examples in Apex illustrate the use of output logic for selecting the next state from a state in a policy.
Such an example should be written and packaged in Apex.