Skip to content

Instantly share code, notes, and snippets.

@blainelang
Created August 29, 2013 20:05
Show Gist options
  • Save blainelang/6382777 to your computer and use it in GitHub Desktop.
Save blainelang/6382777 to your computer and use it in GitHub Desktop.
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);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment