public class RoutingScriptingFunctions extends Object
Modifier and Type | Field and Description |
---|---|
static String |
BINDING_KEY |
protected OperationContext |
ctx |
protected GraphNode.EscalationRule |
rule |
Constructor and Description |
---|
RoutingScriptingFunctions(OperationContext ctx) |
RoutingScriptingFunctions(OperationContext ctx,
GraphNode.EscalationRule rule) |
Modifier and Type | Method and Description |
---|---|
boolean |
ruleAlreadyExecuted()
Returns 'true' if the current rule has been executed
|
long |
timeSinceDueDateIsOver()
Returns the time difference in milliseconds between the current time and the task due date
|
long |
timeSinceRuleHasBeenFalse()
Returns -1 if the current rule hasn't been executed or the execution date was not set on this rule; Returns the
time difference in milliseconds between the current time and the last time the rule was executed ( equivalent to
the rule being evaluated to 'true').
|
long |
timeSinceTaskWasStarted()
Returns the time difference in milliseconds between the current time and the time the current node was started
|
long |
timeSinceWorkflowWasStarted()
Returns the time difference in milliseconds between the current time and the time the current workflow was
started
|
public static final String BINDING_KEY
protected GraphNode.EscalationRule rule
protected OperationContext ctx
public RoutingScriptingFunctions(OperationContext ctx)
public RoutingScriptingFunctions(OperationContext ctx, GraphNode.EscalationRule rule)
public long timeSinceWorkflowWasStarted()
public long timeSinceTaskWasStarted()
public long timeSinceDueDateIsOver()
public long timeSinceRuleHasBeenFalse()
public boolean ruleAlreadyExecuted()
Copyright © 2018 Nuxeo. All rights reserved.