Example: Workflow parameters and return values (call workflow)
Example: Workflow parameters and return values (call workflow)
The Workflow Parameters and Return Values screen appears whenever you click the Parameters action. It shows the parameters and return values from the workflow being called.

Of course to really be of value this workflow would contain some tasks that would assign values to the variables we are using as the source for our input parameters.


The parameter and return value names from the subflow are filled in. One of the parameters is required and therefore does not have a check box to allow selecting it to be deleted.


Repeat the definition process for the other parameter and the return value. Since the second parameter is optional it could be deleted rather than assigning it a value. You can always choose to ignore any returned values by deleting them. Any that remain in the Workflow Parameters and Return Values screen must be valid, which means the input parameters must be assigned to variables. Any that have with <Not set> in the Variable column will prevent the workflow from publishing.




Note the Calling Workflows Parameters Check identifies the workflows with errors by showing Invalid in red in the Parameters column.
Within a workflow, Call Workflow tasks that call a workflow with parameters are checked to verify that the parameter and return value mapping is valid. If the mapping is not valid the Call Workflow task is outlined in red and the workflow will not publish. The following conditions make the mapping invalid:
- A required subflow parameter is not assigned a value.
- A parameter is assigned and the parameter does not exist on the called workflow (can happen due to modifications to the called workflow after the mapping was defined).
- A parameter is assigned and the type is not compatible (can happen due to modifications to the called workflow after the mapping was defined).
- A variable is assigned from a return value that does not exist on the called workflow (can happen due to modifications to the called workflow after the mapping was defined).
When a workflow with parameters and/or return values is published, the system checks calling workflows to verify that the parameter and return value mappings are valid. Any workflows that have invalid mappings an be viewed by using the Callers link.