Package com.axelor.ai.procedure


package com.axelor.ai.procedure
  • Class
    Description
    Where a procedure run paused in a chat is kept until its owner answers: on the generic cache (local, or distributed across nodes), under form:<chatId>#<toolCallId>, as JSON, so whichever node receives the answer carries on.
    A named, reviewed run of a form's own steps, carried by a skill: open the action-view's form on a record (or a new one), set fields, click buttons, save — each step handled as the web client would.
    A value the model supplies.
    How an alert is answered when no one can answer it.
    One step of a procedure: what a user does on the form or on a line of it.
    A new line: its defaults, its onNew, then the seed, literals or eval:.
    A button's click: its prompt, then its onClick chain.
    A line into its collection: the collection's onChange.
    A line out of its collection; the collection's onChange runs at once.
    A chain the form declares, run in a record's context: a hook by name (onLoad) or a chain as a field or button writes it.
    The Save button: open lines committed, onSave, save, read back, onLoad.
    Values applied in order, each field's onChange after it in its record's context; literals or eval:.
     
    A skill's procedures as an agent may see and run them: parsed, and only those in its scope.
    Procedures that cannot be read or would not run; every problem found, each named.
    The values a model gives a procedure, checked against what the procedure declares and turned into the types its expressions read: a date is a LocalDate, a decimal a BigDecimal, a reference the record itself.
    Runs a procedure on its form, with no browser: each step as a user would do it.
    An alert met during the run, and how it was answered.
    The guard said no; nothing ran beyond loading the form.
    How the form open beside the chat was used, when it showed the procedure's record.
    What a run did.
    A run stopped at a question for the user, with all it needs to carry on: the form's state, the procedure step it stopped in (-1 for the form's load hooks), and what the run met so far.
    A message the browser would have shown, kept with a paused run.
    Reads a skill's procedures.yaml into Procedures, strictly: an unknown key, a missing one or a value of the wrong shape is refused with its place named, never ignored.
    Checks procedures against the application before they can reach a chat, so a broken one is refused where it is written — at import, and later when the builder saves a skill — rather than failing halfway through a run.
    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.