Reuse a shared step library
- UpdatedAug 3, 2023
- 3 minutes to read
- Vancouver
- Service Mapping
As part of creating or modifying a discovery pattern, you can reuse a sequence of discovery steps that you created for one pattern in other patterns. Saved shared step sequences become pattern modules referred to as shared libraries.
Before you begin
Role required: pd_admin
Basic knowledge of programming is desirable.
About this task
You do not have to recreate the same step manually if you reuse existing step sequences.
First, you save the steps you want to reuse into a repository as a shared library. Then you can insert them wherever relevant and as many times as needed.
You can deactivate shared libraries, so that patterns using them, skip steps in deactivated shared libraries. For more information, see Discovery Configuration Console. You can also disable the step containing a shared library for a specific pattern. This change does not affect other patterns containing the same shared library.
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
What to do next
- Continue editing the pattern by adding a new step and defining its operation or
- Finalize the pattern.