blainelang
8/29/2013 - 8:05 PM

Using the maestro API to work with tasks Sample PHP code to interact with the Drupal maestro module (workflow engine) https://drupal.org/pro

Using the maestro API to work with tasks Sample PHP code to interact with the Drupal maestro module (workflow engine) https://drupal.org/project/maestro

$task = MaestroTask::createTaskObject($queue_id);
$task_data = $task->prepareTask();
$notification_type = $task_data['optional_parm']['notification_type'];


// If you need to complete a task, you can use the engine()->completeTask() method
$maestro->engine()->completeTask($queue_id, $status);