code: def getObjectWorkflowStates(self):
          
          workflow = getToolByName(self, 'portal_workflow')
          states = {}
          for w in workflow.getWorkflowsFor(self):
              state = api.get_workflow_status_of(self, w.state_var)
              states[w.state_var] = state
          return states
docs: This method is used to populate catalog values
          Returns a dictionary with the workflow id as key and workflow state as
          value.
          :return: {'review_state':'active',...}