Here is another tip for customizing your projects. In this tutorial you will learn how to embed a decision model into a Primary Model using the EmbeddedModel component.
Prerequisites: None
Objective: Create a project to understand Embedding using the EmbeddedModel component.
Estimated Time to Complete: 30 minutes
Step 1: Create a new Decision Only project. Search for 'embedded' in the Toolbox and drag and drop the EmbeddedModel component. Link the components as shown below:
Click to view.
Step 2: Set the Input Data as shown below:
Step 3: Set the Output Data as shown below:
Step 4: Right click on the Embedded component and select Edit Component. Click the selector button next to the Embedded Model field and set the Embedded Decision Model as shown below:
The AddValues component should be mapped to the input variables and the output variable must be named as shown. The EndComponent must then be mapped to the the named output variable from the AddValues component.
Step 6: Right click on the End component and select Edit Component. Set the Mapping Property as shown below.
Step 7: Save and Run the project. Click the Run Project button on the toolbar (bug with green arrow over it)
Step 8: Double click Execute and set the input values.
Step 9: The results are shown as below:
Step 10: Finished!