Class RoutingScriptingFunctions

java.lang.Object
org.nuxeo.ecm.platform.routing.core.api.scripting.RoutingScriptingFunctions

public class RoutingScriptingFunctions extends Object
Since:
5.9.3
  • Field Details

  • Constructor Details

  • 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