Calling other models
You can integrate the output of decision models and predictive models in other decision
models that are stored in the same decision service.
Adding a function node
Function nodes allow you to encapsulate the output of a decision model, that you can reuse in other decision models. In a decision model, you create a dependency between a decision node and a function node so that the decision node makes a decision based on the output of the function node.
To call another decision model:
- Click the Add function icon
in
the diagram toolbar. - Open the drop-down menu and select the decision model that you want to use.
- In the diagram, create a dependency between this node and the decision node that will use the
result of the function: hover over the function node, click the Connect to another
node button
, and select the decision node. - Write the decision logic of the decision node using the output of the function node. You can use the invocation example available in the Details tab of the function node.
Adding a prediction node
Predictive models are meant to be reused in decision models to make decisions based on predictions. When you design the decision model, you must think about the part of the decision logic where you want to use the predictive model. Then, you configure the corresponding decision node to use the predictive model.
To call a predictive model:
- Click the Add prediction icon
in the diagram toolbar. - Open the drop-down menu and select the predictive model that you want to use.
- In the diagram, create a dependency between this node and the decision node that will use the
result of the prediction: hover over the prediction node, click the Connect to another
node button
, and select the decision node. - Write the decision logic of the decision node using the output of the prediction node. You can use the invocation example available in the Details tab of the prediction node.