You are here

public static function MaestroEngine::getTemplateTaskByQueueID in Maestro 3.x

Same name and namespace in other branches
  1. 8.2 src/Engine/MaestroEngine.php \Drupal\maestro\Engine\MaestroEngine::getTemplateTaskByQueueID()

Returns the template task based on the task stored in the queue.

Parameters

int $queueID: Maestro Queue ID.

14 calls to MaestroEngine::getTemplateTaskByQueueID()
MaestroContentTypeCompleteTask::buildForm in src/Form/MaestroContentTypeCompleteTask.php
Form constructor.
MaestroContentTypeCompleteTask::submitForm in src/Form/MaestroContentTypeCompleteTask.php
Form submission handler.
MaestroEngine::completeTask in src/Engine/MaestroEngine.php
CompleteTask Completes the queue record by setting the status bit to true/1.
MaestroInteractiveFormBase::submitForm in src/Form/MaestroInteractiveFormBase.php
Form submission handler.
MaestroInteractiveTask::handleExecuteSubmit in src/Plugin/EngineTasks/MaestroInteractiveTask.php
Interactive tasks, or tasks that signal themselves as requiring human interaction will have the resulting form submissions sent to their own handler for processing to determine if the task should be completed or not or to carry out any task processing…

... See full list

File

src/Engine/MaestroEngine.php, line 160

Class

MaestroEngine
Class MaestroEngine.

Namespace

Drupal\maestro\Engine

Code

public static function getTemplateTaskByQueueID($queueID) {
  return MaestroEngine::getTemplateTaskByID(MaestroEngine::getTemplateIdFromProcessId(MaestroEngine::getProcessIdFromQueueId($queueID)), MaestroEngine::getTaskIdFromQueueId($queueID));
}