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:

  1. Click the Add function icon Add function node icon in the diagram toolbar.
  2. Open the drop-down menu and select the decision model that you want to use.
  3. 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 Connect to another node icon, and select the decision node.
  4. 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.
When you write the decision logic of the decision node, use the output of the function node to make decisions. You can use the invocation example available in the Details tab of the function node to write the decision logic.

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:

  1. Click the Add prediction icon Add prediction node icon in the diagram toolbar.
  2. Open the drop-down menu and select the predictive model that you want to use.
  3. 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 Connect to another node icon, and select the decision node.
  4. 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.