/**
  * @return DashboardWidget
  */
 public function widgetAction()
 {
     $lastLoggedProcesses = $this->processLogFinder->getLastLoggedProcesses(0, 3);
     if (empty($lastLoggedProcesses)) {
         return false;
     }
     ProcessLogFormatter::formatProcessLogs($lastLoggedProcesses, $this->systemConfig, $this->translator);
     return DashboardWidget::initialize($this->widgetConfig->get('template', 'prooph/link/monitor/process-view/partial/process-list'), $this->widgetConfig->get('title', $this->translator->translate('Workflow Monitor')), $this->widgetConfig->get('cols', 12), ['processes' => $lastLoggedProcesses], $this->widgetConfig->get('group_title'));
 }
 /**
  * @return DashboardWidget
  */
 public function widgetAction()
 {
     if (!$this->systemConfig->isConfigured()) {
         return false;
     }
     if (!$this->systemConfig->isWritable()) {
         return false;
     }
     if (count($this->systemConfig->getConnectors()) === 0) {
         return false;
     }
     return DashboardWidget::initialize($this->widgetConfig->get('template', 'prooph.link.process-manager/dashboard/widget'), $this->widgetConfig->get('title', 'Process Manager'), $this->widgetConfig->get('cols', 4), ['processingConfig' => $this->systemConfig], $this->widgetConfig->get('group_title'));
 }
 /**
  * @return DashboardWidget
  */
 public function widgetAction()
 {
     if (!$this->systemConfig->isConfigured()) {
         return false;
     }
     $connectors = [];
     foreach ($this->systemConfig->getConnectors() as $connectorId => $connector) {
         if (strpos($connectorId, 'filegateway:::') !== false) {
             $connectors[$connectorId] = $connector;
         }
     }
     return DashboardWidget::initialize($this->widgetConfig->get('template', 'prooph.link.file-connector/dashboard/widget'), $this->widgetConfig->get('title', 'File Connector'), $this->widgetConfig->get('cols', 4), ['processingConfig' => $this->systemConfig, 'fileConnectors' => $connectors], $this->widgetConfig->get('group_title'));
 }
 /**
  * @return DashboardWidget
  */
 public function widgetAction()
 {
     $params = [];
     $params['processingConfig'] = $this->systemConfig;
     $params['config_dir_is_writable'] = is_writable($this->systemConfig->getConfigLocation()->toString());
     if ($this->systemConfig->isConfigured()) {
         $params['config_is_writable'] = is_writable($this->systemConfig->getConfigLocation()->toString() . DIRECTORY_SEPARATOR . ProcessingConfig::configFileName());
     } else {
         $params['config_is_writable'] = true;
     }
     $params['config_dir'] = $this->systemConfig->getConfigLocation()->toString();
     $params['config_file_name'] = ProcessingConfig::configFileName();
     return DashboardWidget::initialize($this->widgetConfig->get('template', 'prooph/link/system-config/dashboard/widget'), $this->widgetConfig->get('title', 'System Configuration'), $this->widgetConfig->get('cols', 4), $params, $this->widgetConfig->get('group_title'));
 }