code: def get_workflow_status_of(brain_or_object, state_var="review_state"):
      
      workflow = get_tool("portal_workflow")
      obj = get_object(brain_or_object)
      return workflow.getInfoFor(ob=obj, name=state_var)
docs: Get the current workflow status of the given brain or context.
  
      :param brain_or_object: A single catalog brain or content object
      :type brain_or_object: ATContentType/DexterityContentType/CatalogBrain
      :param state_var: The name of the state variable
      :type state_var: string
      :returns: Status
      :rtype: str