Hi,
1. create Workflow using Tcode SWDD and in WF Start Events use (Business Object / Class ) and EventsTo trigger Workflow.
2.Use FM SAP_WAPI_CREATE_EVENT to raise (Event of Business Object /class ) using Z program.
3. By using the above FM we can Pass data from program to Workflow using Event Container.
Thanks,
Phani