mirror of https://github.com/MISP/MISP
24 lines
800 B
PHP
24 lines
800 B
PHP
<?php
|
|
include_once APP . 'Model/WorkflowModules/WorkflowBaseModule.php';
|
|
|
|
class Module_blueprint_action_module extends WorkflowBaseActionModule
|
|
{
|
|
public $blocking = false;
|
|
public $disabled = true;
|
|
public $id = 'blueprint-action-module';
|
|
public $name = 'Blueprint action module';
|
|
public $description = 'Lorem ipsum dolor, sit amet consectetur adipisicing elit.';
|
|
public $icon = 'shapes';
|
|
public $inputs = 1;
|
|
public $outputs = 1;
|
|
public $params = [];
|
|
|
|
public function exec(array $node, WorkflowRoamingData $roamingData, array &$errors = []): bool
|
|
{
|
|
parent::exec($node, $roamingData, $errors);
|
|
// If $this->blocking == true, returning `false` will stop the execution.
|
|
$errors[] = __('Execution stopped');
|
|
return false;
|
|
}
|
|
}
|