code: def update_reflexrules_workflow_state(portal):
      
      wf_tool = getToolByName(portal, 'portal_workflow')
      logger.info("Updating Reflex Rules' 'inactive_state's...")
      wf = wf_tool.getWorkflowById("bika_inactive_workflow")
      uc = api.get_tool('portal_catalog')
      r_rules = uc(portal_type='ReflexRule')
      for rr in r_rules:
          obj = rr.getObject()
          wf.updateRoleMappingsFor(obj)
          obj.reindexObject()
      logger.info("Reflex Rules' 'inactive_state's were updated.")
docs: Updates Reflex Rules' inactive_state, otherwise they don't have it by
      default.
      :param portal: Portal object
      :return: None