Hi,
You can pass 'objects' to workflows when you start them. If you store the document as an object (eg BOR object SOFM), then you can pass it to the workflow.
This can be done by either when starting the workflow directly, or (better) when raising an event to trigger the workflow.
good luck!
Paul