From d0c40d156916a3d25d0a790a153b777ff2535f2c Mon Sep 17 00:00:00 2001 From: Gustavo Silva Date: Thu, 3 Sep 2026 10:54:09 -0400 Subject: [PATCH] Fix custom type in script_executors table --- ProcessMaker/Console/Commands/TransitionExecutors.php | 6 ++++++ 1 file changed, 6 insertions(+) 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'] ?? ''));