pub fn workflow() -> Result<JsValue, JsValue>
Returns the registered workflow object stored in the workflow global.