'workflow',
'label' => 'Lancer un workflow',
'class' => get_called_class(),
'path' => __FILE__,
'icon' => 'fas fa-network-wired',
'color' => '#ff9f43',
);
if(!isset($key)) return $manifest;
return isset($manifest[$key]) ? $manifest[$key] : '' ;
}
//méthode d'affichage de l'effet
public static function form($item){
$html = '';
$class = get_called_class();
//$class::manifest('icon')
ob_start();
?>
toArray();
if(isset($parameters['old'])) $parameters['old'] = $parameters['old']->toArray();
}
$effect->values['workflow-id'] = template($effect->values['workflow-id'],$parameters,true);
$toLoad = Workflow::getById($effect->values['workflow-id']);
if(!$toLoad){
$logs.=' Workflow inexistant';
return $logs;
}
if( $parameters['workflow']['type'] != $toLoad->type ){
$logs.=" Workflow d'origine d'un type différent du workflow de destination";
return $logs;
}
$logs .= ' Lancement de '.$toLoad->label;
$logs .= implode('
',$toLoad->run(null,$parameters));
return $logs;
}
}
?>