Verified Commit eb5531e2 authored by dockx thibault's avatar dockx thibault
Browse files

:sparkles: Feat(Orchestrator) - Adding first concept of supann awareness

First concept of supann awareness within notifications.
Showing with 13 additions and 0 deletions
+13 -0
...@@ -72,7 +72,20 @@ class Notifications implements EndpointInterface ...@@ -72,7 +72,20 @@ class Notifications implements EndpointInterface
$auditAttributes = $this->retrieveAuditedAttributes($task); $auditAttributes = $this->retrieveAuditedAttributes($task);
$monitoredAttrs = $notificationsMainTask[0]['fdtasksnotificationsattributes']; $monitoredAttrs = $notificationsMainTask[0]['fdtasksnotificationsattributes'];
// Management of Supann Status
$monitoredSupannResource['resource'] = $notificationsMainTask[0]['fdTasksNotificationsResource'];
$monitoredSupannResource['state'] = $notificationsMainTask[0]['fdTasksNotificationsState'];
$monitoredSupannResource['subState'] = $notificationsMainTask[0]['fdTasksNotificationsSubState'];
$this->gateway->unsetCountKeys($monitoredAttrs); $this->gateway->unsetCountKeys($monitoredAttrs);
$this->gateway->unsetCountKeys($monitoredSupannResource);
// Condition if supannResource is set
if ($monitoredSupannResource['resource'] !== 'None') {
// Verify if there was a modification of supannRessourceEtatDate in audit.
$matchingSupann = array_intersect($auditAttributes, ['supannRessourceEtatDate']);
}
// Verify if there is a match between audited attributes and monitored attributes from main task. // Verify if there is a match between audited attributes and monitored attributes from main task.
$matchingAttrs = array_intersect($auditAttributes, $monitoredAttrs); $matchingAttrs = array_intersect($auditAttributes, $monitoredAttrs);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment