Class RoutingAuditHelper

java.lang.Object
org.nuxeo.ecm.platform.routing.core.audit.RoutingAuditHelper

public final class RoutingAuditHelper extends Object
Helper method related to Routing Audit.
Since:
7.4
  • Field Details

  • Constructor Details

    • RoutingAuditHelper

      public RoutingAuditHelper()
  • Method Details

    • computeElapsedTime

      public static long computeElapsedTime(DocumentRoutingConstants.Events event, String elementId)
      Query the audit for an entry of the Routing category matching the given event and returns the time elapsed since it is recorded.
      Since:
      7.4
    • computeDurationSinceWfStarted

      public static long computeDurationSinceWfStarted(String workflowInstanceId)
      Return the elapsed time since a workflow had started.
      Parameters:
      workflowInstanceId - the workflowInstanceId
      Returns:
      elapsed time in ms
      Since:
      7.4
    • computeDurationSinceTaskStarted

      public static long computeDurationSinceTaskStarted(String taskId)
      Return the elapsed time since a task had started.
      Parameters:
      taskId - the taskId
      Returns:
      elapsed time in ms
      Since:
      7.4