Make a step conditional
- UpdatedAug 3, 2023
- 2 minutes to read
- Vancouver
- Service Mapping
The Vancouver release is no longer supported. As such, the product documentation and release notes are provided for informational purposes only, and will not be updated.
If necessary, create a precondition that defines how Discovery and Service Mapping execute a pattern step.
Before you begin
Role required: pd_admin
Basic knowledge of programming is desirable.
Create a pattern or select a pattern that you want to modify.
Navigate to the relevant pattern step:
- Select the relevant pattern step or click
to add a step.
About this task
You can define a single or multiple prerequisite conditions. For example, you can define that a step is run only during the horizontal or top-down discovery using the pattern_runtime_mode variable.
If a precondition defined for a shared library step is not fulfilled, the pattern skips all steps belonging to this shared library. For example, if the file, to which the variable points, does not contain "test", the pattern does not run the shared library steps 1-1 to 1-5. The precondition exists only for the pattern within which you created it. The precondition does not affect other patterns using this shared library.
Procedure
Example

Related Content
- Create or customize patterns
Create or modify a discovery pattern and define its basic attributes.