Class ActionChain

java.lang.Object
com.axelor.meta.headless.ActionChain

public final class ActionChain extends Object
An action chain as its actions' definitions write it out — read, never run: groups flattened with their conditions, validations and conditions with their checks, records and attributes with their fields, Java steps and navigation by name.

 ActionChain chain = ActionChain.of(button.onClick());
 chain.points();   // the questions and stops a run of it can meet
 

From it come the interactive points a chain can reach, which a caller answering a session's questions is written against: every alert, error and message an action-validate can raise, every pseudo-action, every Java step (which may alert; its code is not read). And from the attributes its action-attrs set, FormSpec.limits() finds those a browser would enforce.

  • Method Details

    • of

      public static ActionChain of(String chain)
      A chain, comma separated, written out; a blank or null chain has no steps.
    • text

      public String text()
      The chain as written.
    • steps

      public List<ActionChain.Step> steps()
      Its elements, in order, groups holding theirs.
    • isEmpty

      public boolean isEmpty()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • points

      public List<ActionChain.Point> points()
      Every interactive point the chain can reach, in order, each once.
    • actions

      public Set<String> actions()
      The names of every action the chain reaches, groups included.