public final class RoutingAuditHelper extends Object
Modifier and Type | Field and 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 and Description |
---|
RoutingAuditHelper() |
Modifier and Type | Method and 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.
|
public static final String TIME_SINCE_WF_STARTED
public static final String TIME_SINCE_TASK_STARTED
public static final String TASK_ACTOR
public static final String WORKFLOW_INITATIOR
public static final String WORKFLOW_VARIABLES
public RoutingAuditHelper()
public static long computeElapsedTime(DocumentRoutingConstants.Events event, String elementId)
event
- elementId
- public static long computeDurationSinceWfStarted(String workflowInstanceId)
workflowInstanceId
- the workflowInstanceIdpublic static long computeDurationSinceTaskStarted(String taskId)
taskId
- the taskIdCopyright © 2016 Nuxeo SA. All rights reserved.