...
The Model Class definition is stored in a table with type code MC , which has following fields:
uniqueName* – Unique name of the Model Class. It is used in Model Object to reference the Model Class they instantiate. Note , that you can modify the uniqueName, but the references won’t will not be updated automatically.
label – Human readable name of the Model Class, displayed to the users, when they select which Model Class they want to use for creating a new Model Object.
definition – Defines , how the Model Class instances will look and behave. It stores definitions of Calculations, Steps and Evaluations in a JSON text format.
workflowFormulaName – Name of the workflow logic (with workflowType = “model”) which is responsible for building the approval workflow steps , when the user clicks Submit. If not set, when the user submits the model, it is auto-approved and marked as “No Approval Required”.
...
A list of calculation. A Calculation defines a calculation process , which can be started from a Step.
...
name* – Name of the Calculation, unique within this Model Class.
type* – Accepted values:
formula – Simple calculation, all actions in the provided logic are done in a sequential order.
parallel – Parallel calculation. The calculations done by the logic can be split into more parts (called Items) and the calculation of those Items will be done in parallel.
sequence – This calculation does not have a logic, it is only reference to a list of other calculations , which should be executed one by one.
formulaName* – Unique name of a Logiclogic. Used only for formula and parallel types.
for For formula type - the – The logic must be of nature Nature
model_calculation
. See Model Calculation Logic.for For parallel type - the – The logic must be of nature Nature
model_parallel_calculation
. See Model Parallel Calculation Logic.
sequence* – List of Calculation names defined in this Model Class. Used only for the sequence type.
Step (steps
)
A list of Steps and their Calculations, Tabs and their Evaluation Logicslogics.
Example:
Code Block | ||
---|---|---|
| ||
{ "steps": [ { "name": "step1", "label": "First Step", "description": "This step has 1 calculation and 1 tab.", "calculation": "calc1", "tabs": [ { "name": "tab1", "label": "First Tab", "type": "dashboard", "formulaName": "POAI_Test_Dashboard1" } ] }, { "name": "step2", "label": "Second Step", "description": "This step has 1 sequence calculation and 3 tabs.", "calculation": "seq", "tabs": [ { "name": "tab1", "label": "First Tab", "type": "simple", "formulaName": "POAI_Test_Dashboard2" }, { "name": "tab2", "label": "Configurator Tab", "type": "configurator", "formulaName": "POAI_Test_Configurator" }, { "name": "tab3", "label": "Visual Tree", "type": "filtertree", "treeName": "Segments", "formulaName": "POAI_Test_FilterTreeNodeEval", "selectedNodeIdsInputName": "selectedNodeIds" } ] } ] } |
Each Step has the following fields:
name* – Name of the step, unique in the Model Class.
label – Human readable name of the step, shown in the UI, it defaults to name if not specified.
description – Description of the step, shown in the UI.
calculation – Name of the calculation associated to this step, optional.
tabs – List of Tabs as defined below.
Each Tab has the following fields:
name* – Name of the tab, unique in the step.
label – Human readable name of the Tab, shown in the user interface. It defaults to name if not specified.
type* – Determines , how the Tab will present the content to the user.
dashboard – The content of the tab will be rendered as a dashboard, i.e. input fields on left side, and portlets on the right side.
simple – The content of the tab will show the inputs generated by the logic on the left, and on the right side there will be results from the visible elements NOT as portlets, but rather one after another, as a simple list of values (e.g. similar to quote item calculation results).
configurator – The content of the tab will be rendered as the Configurator form, i.e. as a list of various input fields, whose values typically have dynamic dependencies.
filtertree – The content of the tab will be rendered as a tree (used for example to visualize the Segmentation Tree in the Negotiation Guidance Accelerator), and when you select/click one node, it will show details of the node on the right side, visualized as calculation results (e.g. similar to quote item calculation results).
formulaName* - unique – Unique name of an existing Logiclogic. Depending on the field type (see above), the logic will serve different purposepurposes, and it must be of different natureNatures.
for For dashboard type - it – It must be Model Evaluation Logic, which is expected to return input fields (filters) and content for portlets.
for For simple type - it – It must be Model Evaluation Logic, which is expected to return mostly simple types of values.
for For configurator type - it – It must be Model Evaluation Configurator Logic, which is expected to return the definition of form sections with input fields.
for For filtertree type - it – It must be Model Evaluation Logic. It will be used at the moment, when the user clicks on the node of the tree. So the a tree node, so the logic is expected to return various detailed information about the selected node.
treeName* (only for filtertree type) – Name of the tree to be displayed in the Tab. The tree is expected to be stored in the model.
selectedNodeIdsInputName* (only for filtertree type) – Name of the input parameter passed to the evaluation logic, containing the list of selected node IDs.
...
This is used mostly for integration of the model with other modules. When other another module (e.g. Quoting) needs to access the model results, it can either read the model data tables directly, or rather call the Evaluation to provide the data in a certain way. So, in a way, you can think about of it as an API for reading the model.
Note , that these Evaluations are not the same , and as the evaluations used to provide content for Tabs.
...
Code Block | ||
---|---|---|
| ||
{ "evaluations": [ { "name": "query_results", "formulaName": "POAI_Test_QueryResults" } ] } |
Each evaluation has the following fields:
name* – Name of the evaluation, unique in the Model Class.
formulaName* – Unique name of an existing Logic logic of nature
model_evaluation
, see also Model Evaluation Logic.
...