Class RoutingScriptingFunctions
- java.lang.Object
-
- org.nuxeo.ecm.platform.routing.core.api.scripting.RoutingScriptingFunctions
-
public class RoutingScriptingFunctions extends Object
- Since:
- 5.9.3
-
-
Field Summary
Fields Modifier and Type Field Description static String
BINDING_KEY
protected OperationContext
ctx
protected GraphNode.EscalationRule
rule
-
Constructor Summary
Constructors Constructor Description RoutingScriptingFunctions(OperationContext ctx)
RoutingScriptingFunctions(OperationContext ctx, GraphNode.EscalationRule rule)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
ruleAlreadyExecuted()
Returns 'true' if the current rule has been executedlong
timeSinceDueDateIsOver()
Returns the time difference in milliseconds between the current time and the task due datelong
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 startedlong
timeSinceWorkflowWasStarted()
Returns the time difference in milliseconds between the current time and the time the current workflow was started
-
-
-
Field Detail
-
BINDING_KEY
public static final String BINDING_KEY
- See Also:
- Constant Field Values
-
rule
protected GraphNode.EscalationRule rule
-
ctx
protected OperationContext ctx
-
-
Constructor Detail
-
RoutingScriptingFunctions
public RoutingScriptingFunctions(OperationContext ctx)
-
RoutingScriptingFunctions
public RoutingScriptingFunctions(OperationContext ctx, GraphNode.EscalationRule rule)
-
-
Method Detail
-
timeSinceWorkflowWasStarted
public long timeSinceWorkflowWasStarted()
Returns the time difference in milliseconds between the current time and the time the current workflow was started
-
timeSinceTaskWasStarted
public long timeSinceTaskWasStarted()
Returns the time difference in milliseconds between the current time and the time the current node was started
-
timeSinceDueDateIsOver
public long timeSinceDueDateIsOver()
Returns the time difference in milliseconds between the current time and the task due date
-
timeSinceRuleHasBeenFalse
public 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').
-
ruleAlreadyExecuted
public boolean ruleAlreadyExecuted()
Returns 'true' if the current rule has been executed
-
-