Embedded and linked models have only one output path. Thus, if you want the outcome of their process to affect the direction of the workflow, you must use external decisioning.
Scenario: You have a linked model that contains a complex purchase order approval. When it ends, the order is either approved or rejected. If the order is approved, it moves on to the purchasing department. If the order is rejected, an email is sent with a rejection notice.
Process: This process is created in a Workflow-type project. After the Final Decision is reached, one of two variables is created - one with a True value, or one with a False value.
The following screen shot shows the process:
If the Final Decision is approved, the "True" variable is created. If the Final Decision is rejected, the "False" variable is created.
The important thing here is that both Add New Data Element components create a variable with the same name: IsApproved. Both variables are of the data type logical (true/false). The only difference between the two variables is that one is set to true, and the other to false. This way, only one variable, IsApproved, needs to be used as output data, and the primary model needs to evaluate only one data variable.
For more information on how to configure output data, see the Workflow Solution Designer's Guide.
The following screen shot shows the primary model:
Once outside of the linked model, IsApproved is evaluated by a True False Rule component.