diff --git a/ProcessMaker/Console/Commands/TransitionExecutors.php b/ProcessMaker/Console/Commands/TransitionExecutors.php index 9180d1ace0..c235d528aa 100644 --- a/ProcessMaker/Console/Commands/TransitionExecutors.php +++ b/ProcessMaker/Console/Commands/TransitionExecutors.php @@ -80,6 +80,12 @@ public function handle(): int $this->info("Transitioning executor {$executors[$index]->uuid} ({$executors[$index]->language}) to the microservice..."); try { + // Check if the executor type is null, and if so, set it to Custom and save it + if ($executors[$index]->type === null) { + $executors[$index]->type = ScriptExecutorType::Custom; + $executors[$index]->save(); + } + $response = $this->scriptMicroserviceService->updateCustomExecutor($executors[$index]); Log::debug('Response', ['response' => $response]); $status = strtolower((string)($response['status'] ?? ''));