/**
  * @see interface_admin_systemtask::executeTask()
  * @return string
  */
 public function executeTask()
 {
     if (!class_module_system_module::getModuleByName("workflows")->rightRight1()) {
         return $this->getLang("commons_error_permissions");
     }
     $objWorkflowController = new class_workflows_controller();
     $objWorkflowController->scheduleWorkflows();
     $objWorkflowController->runWorkflows();
     return "";
 }
 /**
  * Triggers the workflow engine
  *
  * @xml
  * @return string
  */
 protected function actionTrigger()
 {
     class_carrier::getInstance()->getObjSession()->setBitBlockDbUpdate(true);
     if ($this->getParam("authkey") == class_module_system_setting::getConfigValue("_workflows_trigger_authkey_")) {
         $objWorkflowController = new class_workflows_controller();
         $objWorkflowController->scheduleWorkflows();
         $objWorkflowController->runWorkflows();
         return "<message>Execution successful</message>";
     }
     class_response_object::getInstance()->setStrStatusCode(class_http_statuscodes::SC_UNAUTHORIZED);
     return "<message><error>Not authorized</error></message>";
 }