public static function MaestroEngine::endProcess in Maestro 8.2
Same name and namespace in other branches
- 3.x src/Engine/MaestroEngine.php \Drupal\maestro\Engine\MaestroEngine::endProcess()
This static method will load the maestro_process entity identified by the processID param and will flag it as complete.
Parameters
int $processID: The Maestro Process ID.
1 call to MaestroEngine::endProcess()
- MaestroEndTask::execute in src/
Plugin/ EngineTasks/ MaestroEndTask.php - Part of the ExecutableInterface Execution of the End task will complete the process and return true so the engine completes the task. .
File
- src/
Engine/ MaestroEngine.php, line 534
Class
- MaestroEngine
- Class MaestroEngine.
Namespace
Drupal\maestro\EngineCode
public static function endProcess($processID) {
$processRecord = \Drupal::entityTypeManager()
->getStorage('maestro_process')
->load($processID);
$processRecord
->set('complete', PROCESS_STATUS_COMPLETED);
$processRecord
->set('completed', time());
$processRecord
->save();
}