Class WorkExecutionAuditor

java.lang.Object
org.bonitasoft.engine.work.audit.WorkExecutionAuditor

@Component public class WorkExecutionAuditor extends Object
  • Constructor Details

  • Method Details

    • setActivated

      @Value("${bonita.tenant.work.audit.activated:true}") public void setActivated(boolean activated)
    • detectAbnormalExecutionAndNotify

      public void detectAbnormalExecutionAndNotify(WorkDescriptor work)
      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
      NOTE: the listener receives the 'abnormal execution' status only once to avoid flooding it.
      Parameters:
      work - the work descriptor to inspect
    • notifySuccess

      public void notifySuccess(WorkDescriptor work)
      Only notify if execution has been detected as abnormal