Package com.axelor.ai.procedure
Class Procedures
java.lang.Object
com.axelor.ai.procedure.Procedures
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 Summary
Fields -
Method Summary
-
Field Details
-
FILE
The file at a skill's root that holds its procedures.- See Also:
-
-
Method Details
-
parse
The procedures of aprocedures.yaml, in file order; none for blank text.- Throws:
ProcedureException- naming every problem found
-
find
The procedure with this name, or null.
-