mirror of https://github.com/MISP/MISP
24 lines
868 B
PHP
24 lines
868 B
PHP
<?php
|
|
include_once APP . 'Model/WorkflowModules/WorkflowBaseModule.php';
|
|
|
|
class Module_blueprint_logic_module extends WorkflowBaseLogicModule
|
|
{
|
|
public $disabled = true;
|
|
public $id = 'blueprint-logic-module';
|
|
public $name = 'Blueprint logic module';
|
|
public $description = 'Lorem ipsum dolor, sit amet consectetur adipisicing elit.';
|
|
public $icon = 'shapes';
|
|
public $inputs = 1;
|
|
public $outputs = 2;
|
|
public $params = [];
|
|
|
|
public function exec(array $node, WorkflowRoamingData $roamingData, array &$errors = []): bool
|
|
{
|
|
parent::exec($node, $roamingData, $errors);
|
|
$params = $this->getParamsWithValues($node);
|
|
$data = $roamingData->getData();
|
|
// Returning true will make the execution flow take the first output of this module. Otherwise, the second output will be used.
|
|
return true;
|
|
}
|
|
}
|