Package org.bonitasoft.engine.work.audit
Class WorkExecutionAuditor
java.lang.Object
org.bonitasoft.engine.work.audit.WorkExecutionAuditor
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Constructor Summary
ConstructorsConstructorDescriptionWorkExecutionAuditor(EngineClock engineClock, AuditListener auditListener, WorkExecutionAuditor.RegistrationDurationElapsedCheckConfig registrationDurationElapsedCheckConfig, WorkExecutionAuditor.ExecutionCountCheckConfig executionCountCheckConfig) -
Method Summary
Modifier and TypeMethodDescriptionvoidNotify the listener in case of abnormal execution.voidnotifySuccess(WorkDescriptor work) Only notify if execution has been detected as abnormalvoidsetActivated(boolean activated)
-
Constructor Details
-
WorkExecutionAuditor
public WorkExecutionAuditor(EngineClock engineClock, AuditListener auditListener, WorkExecutionAuditor.RegistrationDurationElapsedCheckConfig registrationDurationElapsedCheckConfig, WorkExecutionAuditor.ExecutionCountCheckConfig executionCountCheckConfig)
-
-
Method Details
-
setActivated
@Value("${bonita.tenant.work.audit.activated:true}") public void setActivated(boolean activated) -
detectAbnormalExecutionAndNotify
Notify the listener in case of abnormal execution. Cases considered as 'abnormal execution'- large number of executions after a duration threshold since registration has elapsed
- large duration since the work has been registered
- Parameters:
work- the work descriptor to inspect
-
notifySuccess
Only notify if execution has been detected as abnormal
-