Class SubflowCallStack

java.lang.Object
com.axelor.workflow.exec.SubflowCallStack

public final class SubflowCallStack extends Object
Runtime guard against call recursion, for definitions loaded outside the save-time cycle check. Runs are synchronous on one thread, so a thread-local stack is exact. Keyed on (model, jsonModel, name).
  • Method Details

    • key

      public static String key(String model, String jsonModel, String name)
      The key of a named workflow; an empty segment stands for a null jsonModel.
    • inlineKey

      public static String inlineKey(String workflowXmlId, String nodeId)
      The key of an embedded body: its node in its definition, kept out of the named-workflow key space.
    • push

      public static boolean push(String key)
      Push key; false when it is already running, which is a cycle.
    • pop

      public static void pop(String key)
      Remove key from the stack; clears the thread-local when the stack becomes empty.