public static function MaestroEngine::getTaskIdFromQueueId in Maestro 8.2
Same name and namespace in other branches
- 3.x src/Engine/MaestroEngine.php \Drupal\maestro\Engine\MaestroEngine::getTaskIdFromQueueId()
Get the template's machine name from the queue ID.
Parameters
int $queueID: The Maestro Queue ID.
Return value
string Returns the task machine name or FALSE on error.
6 calls to MaestroEngine::getTaskIdFromQueueId()
- MaestroAndTask::execute in src/
Plugin/ EngineTasks/ MaestroAndTask.php - Part of the ExecutableInterface Execution of the AND task returns TRUE when all pointers are complete and FALSE when still waiting.. .
- MaestroEngine::getTemplateTaskByQueueID in src/
Engine/ MaestroEngine.php - Returns the template task based on the task stored in the queue.
- MaestroEngine::setProcessVariable in src/
Engine/ MaestroEngine.php - Set a process variable's value. Does a post-variable-set call to re-create any production assignments that may rely on this variable's value.
- MaestroIfTask::execute in src/
Plugin/ EngineTasks/ MaestroIfTask.php - Part of the ExecutableInterface Execution of the Batch Function task will use the handler for this task as the executable function. .
- MaestroSetProcessVariableTask::execute in src/
Plugin/ EngineTasks/ MaestroSetProcessVariableTask.php - Part of the ExecutableInterface Execution of the set process variable task. We will read the data in the template for what we should do with the process variable .
File
- src/
Engine/ MaestroEngine.php, line 291
Class
- MaestroEngine
- Class MaestroEngine.
Namespace
Drupal\maestro\EngineCode
public static function getTaskIdFromQueueId($queueID) {
$queueRecord = \Drupal::entityTypeManager()
->getStorage('maestro_queue')
->load($queueID);
if ($queueRecord) {
return $queueRecord->task_id
->getString();
}
return FALSE;
}