public function handle(ChangeConnectorConfig $command)
 {
     $processingConfig = ProcessingConfig::initializeFromConfigLocation($command->configLocation());
     $processingConfig->changeConnector($command->connectorId(), $command->connectorConfig(), $this->configWriter);
     $this->publishChangesOf($processingConfig);
 }
 public function handle(AddConnectorToConfig $command)
 {
     $processingConfig = ProcessingConfig::initializeFromConfigLocation($command->configLocation());
     $processingConfig->addConnector($command->connectorId(), $command->connectorName(), $command->allowedMessage(), $command->allowedTypes(), $this->configWriter, $command->additionalData());
     $this->publishChangesOf($processingConfig);
 }
 /**
  * @param DisableWorkflowProcessorMessageQueue $command
  */
 public function handle(DisableWorkflowProcessorMessageQueue $command)
 {
     $processingConfig = ProcessingConfig::initializeFromConfigLocation($command->configLocation());
     $processingConfig->disableWorkflowProcessorMessageQueue($this->configWriter);
     $this->publishChangesOf($processingConfig);
 }
 /**
  * @param ConfigureJavascriptTicker $command
  */
 public function handle(ConfigureJavascriptTicker $command)
 {
     $processingConfig = ProcessingConfig::initializeFromConfigLocation($command->configLocation());
     $processingConfig->configureJavascriptTicker(['enabled' => $command->enabled(), 'interval' => $command->interval()], $this->configWriter);
     $this->publishChangesOf($processingConfig);
 }
 public function handle(RemoveProcessConfig $command)
 {
     $processingConfig = ProcessingConfig::initializeFromConfigLocation($command->configLocation());
 }
 /**
  * @param ChangeNodeName $command
  */
 public function handle(ChangeNodeName $command)
 {
     $processingConfig = ProcessingConfig::initializeFromConfigLocation($command->configLocation());
     $processingConfig->changeNodeName($command->newNodeName(), $this->configWriter);
     $this->publishChangesOf($processingConfig);
 }
 /**
  * @param AddNewProcessToConfig $command
  */
 public function handle(AddNewProcessToConfig $command)
 {
     $processingConfig = ProcessingConfig::initializeFromConfigLocation($command->configLocation());
     $processingConfig->addProcess($command->processName(), $command->processType(), $command->startMessage(), $command->tasks(), $this->configWriter);
     $this->publishChangesOf($processingConfig);
 }
 /**
  * @param ChangeProcessConfig $command
  */
 public function handle(ChangeProcessConfig $command)
 {
     $processingConfig = ProcessingConfig::initializeFromConfigLocation($command->configLocation());
     $processingConfig->replaceProcessTriggeredBy($command->startMessage(), $command->processConfig(), $this->configWriter);
     $this->publishChangesOf($processingConfig);
 }