You are here

public function MaestroNonInteractiveExampleTask::execute in Maestro 3.x

Same name and namespace in other branches
  1. 8.2 modules/examples/maestro_noninteractive_task_plugin_example/src/Plugin/EngineTasks/MaestroNonInteractiveExampleTask.php \Drupal\maestro_noninteractive_task_plugin_example\Plugin\EngineTasks\MaestroNonInteractiveExampleTask::execute()

Part of the ExecutableInterface Execution of the Example task returns TRUE and does nothing else. .

Overrides ExecutableInterface::execute

File

modules/examples/maestro_noninteractive_task_plugin_example/src/Plugin/EngineTasks/MaestroNonInteractiveExampleTask.php, line 102

Class

MaestroNonInteractiveExampleTask
Maestro Non Interactive Example Task Plugin.

Namespace

Drupal\maestro_noninteractive_task_plugin_example\Plugin\EngineTasks

Code

public function execute() {

  /*
   * You can refer to other Maestro task types, however, in this execute method you must do any of the heavy
   * lifting required by the task to complete.
   *
   * Returning TRUE tells the engine you've completed execution properly and the task is complete.
   * Return a FALSE to not tell the engine to archive and flag the task as complete.
   */
  return TRUE;
}