Class ProcessInspector

java.lang.Object
com.axelor.ai.procedure.ProcessInspector

public class ProcessInspector extends Object
The digest of how a model's forms work, read from their definitions — what an author writes procedures against, and what an admin reads after an upgrade: the ways in, the states, the fields and buttons with their client expressions verbatim, the hooks, every chain written out with the questions it can ask, the workflows on the model. Nothing is evaluated or run.

Forms are resolved as a run resolves them (FormSpec.of(String)), extensions merged, so the digest and the runtime cannot disagree. Given a skill, it also checks each of its procedures against the forms as they are now: what would stop it from running, and the questions its chains can ask that its interactions do not answer.

  • Method Summary

    Modifier and Type
    Method
    Description
    digest(String subject)
    The digest of the forms of a model.
    drift(AiSkill skill)
    Each procedure of the skill checked against the forms as they are now: what would stop it, the questions its chains can ask that its interactions do not answer, and the client expressions on the buttons and fields it uses — for the author to review; there is no earlier copy to compare them with.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • digest

      public String digest(String subject)
      The digest of the forms of a model.
      Parameters:
      subject - a model (full or simple name), a custom model, or an action-view
      Throws:
      IllegalArgumentException - when it names none of these
    • drift

      public String drift(AiSkill skill)
      Each procedure of the skill checked against the forms as they are now: what would stop it, the questions its chains can ask that its interactions do not answer, and the client expressions on the buttons and fields it uses — for the author to review; there is no earlier copy to compare them with.