Class Procedures

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

public final class Procedures extends Object
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.

 confirm_order:
   title: Confirm the order
   action: sale.orders
   view: form
   when: "!confirmed"
   inputs:
     confirmDate: { type: date, required: true }
   steps:
     - set: { confirmDate: "eval: inputs.confirmDate" }
     - add: { items: { product: "eval: inputs.product", qty: 1 } }
     - set: { "items[-1].price": 10 }
     - click: { at: "items[-1]", button: btnDiscount }
     - click: btnConfirm
     - save: true
   interactions:
     "action-sale-order-validate: No Sale Order Items*": accept
 

Steps are set, add, remove, commit, click, run and save. A line is named by its path: items[#42] by id, items[@line] by the id an input gives, items[-1] for the first line the procedure added, items[0] by position, and a field of a line is written after it. The text itself is what a skill keeps and exports; this only reads it.

  • Field Details

  • Method Details