It’s now easier and more intuitive than ever to add sub-models to your KnowledgeKube applications. A sub-model is a collection of settings, values, documents and calculations that are connected to a model without forming part of its core logic. Models can have multiple sub-models, so you can create a suite of bespoke processes to suit a range of scenarios. Data collected through a model can be processed by each sub-model, returning contextual results to a user them having to answer the same questions repeatedly.
By creating separate logic for each sub-model, you don’t have to write and maintain large, complex expressions that try to account for every possible scenario. Instead, you identify a scenario and use the associated sub-model to perform the necessary calculations. If you need to modify these calculations, you can update the appropriate sub-model without affecting the others.
Using the SaveFormData function, you can save question data from your model alongside derived values stored in variables, with one set of data being saved for each sub-model in your application. A number of supplementary functions let you interact with this data, modifying and exporting it as required.