You are here

public static function MaestroEngine::getProcessEntryById in Maestro 8.2

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

Returns the process entity record based on the processID.

Parameters

int $processID: The Maestro Process ID.

4 calls to MaestroEngine::getProcessEntryById()
MaestroEngine::deleteProcess in src/Engine/MaestroEngine.php
Removes all data elements associated with a process. This includes queue, assignment, status, entity identifiers and variables.
MaestroEngine::getAssignedTaskQueueIds in src/Engine/MaestroEngine.php
Fetch a user's assigned tasks. Maestro base functionality will determine user and role assignments. You can implement hook_maestro_post_fetch_assigned_queue_tasks(int userID, array &$entity_ids) to fetch your own custom assignments whether…
MaestroTaskConsoleController::getTasks in modules/maestro_taskconsole/src/Controller/MaestroTaskConsoleController.php
GetTasks method This method is called by the menu router for /taskconsole. The output of this method is the current user's task console.
maestro_form_alter in ./maestro.module
Implements hook_form_alter().

File

src/Engine/MaestroEngine.php, line 657

Class

MaestroEngine
Class MaestroEngine.

Namespace

Drupal\maestro\Engine

Code

public static function getProcessEntryById($processID) {
  $processRecord = \Drupal::entityTypeManager()
    ->getStorage('maestro_process')
    ->resetCache([
    $processID,
  ]);
  $processRecord = \Drupal::entityTypeManager()
    ->getStorage('maestro_process')
    ->load($processID);
  return $processRecord;
}