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 Summary
Fields Modifier and Type Field Description static String
TASK_ACTOR
static String
TIME_SINCE_TASK_STARTED
static String
TIME_SINCE_WF_STARTED
static String
WORKFLOW_INITATIOR
static String
WORKFLOW_VARIABLES
-
Constructor Summary
Constructors Constructor Description RoutingAuditHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static long
computeDurationSinceTaskStarted(String taskId)
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 Detail
-
TIME_SINCE_WF_STARTED
public static final String TIME_SINCE_WF_STARTED
- See Also:
- Constant Field Values
-
TIME_SINCE_TASK_STARTED
public static final String TIME_SINCE_TASK_STARTED
- See Also:
- Constant Field Values
-
TASK_ACTOR
public static final String TASK_ACTOR
- See Also:
- Constant Field Values
-
WORKFLOW_INITATIOR
public static final String WORKFLOW_INITATIOR
- See Also:
- Constant Field Values
-
WORKFLOW_VARIABLES
public static final String WORKFLOW_VARIABLES
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
RoutingAuditHelper
public RoutingAuditHelper()
-
-
Method Detail
-
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
-
-