The Detour tool is useful in constructing Analytic Apps or Macros, where the developer can prompt a user to bypass a process in a workflow.
Detours should output to either a Detour End Tool or an output tool. Do not connect a data stream to a detour output without terminating the detour.
It is typical in an Analytic App or macro to turn on or off a whole section of the workflow based on user input. Detours makes it easy to effectively remove any number of tools with a single Analytic App/macro action.
- When adding a Detour tool to a workflow, first determine the process to bypass, whether you would like to configure to the left or right and check the box appropriately. Make sure your Analytic App or Macro sets the direction either way and you don't rely on the state in the workflow.
Detour to the Right: Select to make the bypass is through the right side of the Detour tool. By default, the bypass occurs from the left side of the tool.
- Connect the tool leading into the process you wish to bypass to the input connection of a detour tool.
- Connect the outputs to both the continue process and bypass process. The un-selected side does not get evaluated or run at all. That means in the GUI, the metainfo (fields and such) is not getting updated for downstream tools. It makes it very hard to configure the disabled side.
- Once the detour is re-routed connect to a Detour End tool to unify the data processes into a single stream for further analysis or connect to an output tool.