More generic way could be: through the Workflow ID, you can use the GetTasks() method and have GetState() on each task to know the status.See TeamSite::WFworkflow and TeamSite::WFtask modules for more information.