Created
August 29, 2013 20:05
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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