code: protected function getToolStates()
      {
          $toolStates = $this->getRunnerService()->getToolsStates($this->getServiceContext());
          array_walk($toolStates, function (&$toolState) {
              $toolState = json_decode($toolState);
          });
          return $toolStates;
      }
docs: Get the current tools states
  
  @throws \oat\oatbox\service\exception\InvalidServiceManagerException
  @throws \common_Exception
  @throws \common_ext_ExtensionException
  
  @return array the tools states