Class RoutingAuditHelper
java.lang.Object
org.nuxeo.ecm.platform.routing.core.audit.RoutingAuditHelper
Helper method related to Routing Audit.
- Since:
- 7.4
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic long
Return the elapsed time since a task had started.static long
computeDurationSinceWfStarted
(String workflowInstanceId) Return the elapsed time since a workflow had started.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.
-
Field Details
-
TIME_SINCE_WF_STARTED
- See Also:
-
TIME_SINCE_TASK_STARTED
- See Also:
-
TASK_ACTOR
- See Also:
-
WORKFLOW_INITATIOR
- See Also:
-
WORKFLOW_VARIABLES
- See Also:
-
-
Constructor Details
-
RoutingAuditHelper
public RoutingAuditHelper()
-
-
Method Details
-
computeElapsedTime
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
Return the elapsed time since a workflow had started.- Parameters:
workflowInstanceId
- the workflowInstanceId- Returns:
- elapsed time in ms
- Since:
- 7.4
-
computeDurationSinceTaskStarted
Return the elapsed time since a task had started.- Parameters:
taskId
- the taskId- Returns:
- elapsed time in ms
- Since:
- 7.4
-