public function MaestroEndTask::execute in Maestro 8.2
Same name and namespace in other branches
- 3.x src/Plugin/EngineTasks/MaestroEndTask.php \Drupal\maestro\Plugin\EngineTasks\MaestroEndTask::execute()
Part of the ExecutableInterface Execution of the End task will complete the process and return true so the engine completes the task. .
Overrides ExecutableInterface::execute
File
- src/
Plugin/ EngineTasks/ MaestroEndTask.php, line 82
Class
- MaestroEndTask
- Maestro End Task Plugin.
Namespace
Drupal\maestro\Plugin\EngineTasksCode
public function execute() {
if ($this->processID > 0) {
MaestroEngine::endProcess($this->processID);
return TRUE;
}
else {
return FALSE;
}
}