Class RoutingScriptingFunctions
java.lang.Object
org.nuxeo.ecm.platform.routing.core.api.scripting.RoutingScriptingFunctions
- Since:
- 5.9.3
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
protected OperationContext
protected GraphNode.EscalationRule
-
Constructor Summary
ConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns 'true' if the current rule has been executedlong
Returns the time difference in milliseconds between the current time and the task due datelong
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
Returns the time difference in milliseconds between the current time and the time the current node was startedlong
Returns the time difference in milliseconds between the current time and the time the current workflow was started
-
Field Details
-
BINDING_KEY
- See Also:
-
rule
-
ctx
-
-
Constructor Details
-
RoutingScriptingFunctions
-
RoutingScriptingFunctions
-
-
Method Details
-
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
-