Changes between Version 38 and Version 39 of dialogmanager


Ignore:
Timestamp:
01/04/24 15:51:10 (11 months ago)
Author:
wouter
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • dialogmanager

    v38 v39  
    116116Generally these functions look like this in json
    117117
    118 {{{ {"NameOfFunction":[val1, val2, val3....] } }}}
     118{{{ {"NameOfFunction":{val1, val2, val3....} } }}}
    119119
    120120NameOfFunction is the name of a java class that implements the UpdateFunction class.
    121121The arguments val1... provided here are the CONSTRUCTOR arguments for NameOfFunction. Typically these are names of parameters.
     122
     123But the update function can also contain other elements, eg a Condition object or list of Conditions. In the end the json layout is specified in by the implementation of the update function.
    122124
    123125Technically, the function {{{call(Parameters parameters) }}} is called to evaluate the function, and that call updates the {{{Parameters}}}. An update function has access to all parameters and can change any of them. But generally it is good practice to only use/change parameters provided in the constructor.