Class ProcedureInputs

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

public final class ProcedureInputs extends Object
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. An undeclared input, a missing required one or a value of the wrong type is refused, never dropped or guessed.
  • Method Details

    • typed

      public static Map<String,Object> typed(Procedure procedure, Map<String,Object> given, Access access)
      Parameters:
      procedure - the procedure
      given - what the model gave, or null
      access - what the call may read: a reference names a record the user may read
      Returns:
      the inputs by name, typed; absent optional inputs are null
      Throws:
      ProcedureException - naming every problem