chg: [workflow:executeWorkflowForTrigger] Log execution outcome

pull/8530/head
Sami Mokaddem 2022-07-27 12:03:45 +02:00
parent 098696aadb
commit 9e8a481b32
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
1 changed files with 3 additions and 0 deletions

View File

@ -459,6 +459,9 @@ class Workflow extends AppModel
$message = __('Error while executing blocking workflow. %s', PHP_EOL . implode(', ', $blockingErrors));
$this->logExecutionError($workflow, $message);
}
$message = __('Finished executing workflow for trigger `%s` (%s). Outcome: %s', $trigger_id, $workflow['Workflow']['id'], $blockingPathExecutionSuccess ? 'success' : 'failure');
$this->Log->createLogEntry('SYSTEM', 'execute_workflow', 'Workflow', $workflow['Workflow']['id'], $message);
$this->__logToFile($workflow, $message);
return $blockingPathExecutionSuccess;
}