Skip to content

Commit

Permalink
small improvement for MID-4965
Browse files Browse the repository at this point in the history
  • Loading branch information
katkav committed Sep 23, 2019
1 parent 516261d commit b239798
Showing 1 changed file with 5 additions and 4 deletions.
Expand Up @@ -1877,11 +1877,12 @@ private void auditTaskOperation(PrismReferenceValue taskRef, AuditEventStage sta
String requestIdentifier = ModelImplUtils.generateRequestIdentifier();
auditRecord.setRequestIdentifier(requestIdentifier);
auditRecord.setTarget(taskRef);
auditRecord.setOutcome(parentResult.getStatus());
ObjectDelta<TaskType> delta = prismContext.deltaFactory().object().createDeleteDelta(TaskType.class, taskRef.getOid());
ObjectDeltaOperation<TaskType> odo = new ObjectDeltaOperation<>(delta, parentResult);
auditRecord.getDeltas().add(odo);
if (AuditEventStage.EXECUTION == stage) {
ObjectDelta<TaskType> delta = prismContext.deltaFactory().object().createDeleteDelta(TaskType.class, taskRef.getOid());
ObjectDeltaOperation<TaskType> odo = new ObjectDeltaOperation<>(delta, parentResult);
auditRecord.getDeltas().add(odo);
auditRecord.setOutcome(parentResult.getStatus());

}
auditHelper.audit(auditRecord, null, operationTask, parentResult);
}
Expand Down

0 comments on commit b239798

Please sign in to comment.