Hi David,
I believe you were looking for the workflow examples under the wrong section, the API example can be found under the
Document API section. The examples show how to move and publish documents through workflow. Also, according to the
API Reference, the GetFinishedStep(Int) should give you the last step of the workflow.
Please let me know if you have additional questions.
Best Regards,
Sandro