Map Reuse
It is common to see repetitive code be packaged as a reusable component, called upon by other code when needed. These helper components can load configuration settings, log error messages, etc. Instead of repeating code for every instance, one copy is kept as a standalone component that is reused. It is also common in large repositories to find multiple copies of the exact same code due to developers copy-pasting code.
Blueprint detects both cases and presents both as opportunities for reuse in the generated PAD code.
Reuse of code in PAD can occur either between flows (inter-flow reuse) or within flows (intra-flow reuse). Inter-flow reuse is when a flow is called multiple times by other flows. Intra-flow reuse is when sub-flows within a flow are called multiple times from other subflows of the flow.
Blueprint automatically supports intra-flow reuse. Single code components called multiple times in the source RPA tool, and even cases where identical copies of code components exist, will be created by Blueprint as a single, reused PAD subflow.
However inter-flow reuse only happens if you configure Reuse rules to make it happen. Blueprint helps by automatically generating all cases where this reuse opportunity exists, and your role is to configure and enable the rule. Not using these rules will result in multiple copies of the code being generated, specifically as identical subflows in multiple flows.
Using Rules Table
If you would rather have a single, reused copy of the code be created in PAD then you need to configure the rule. Typically users will have Blueprint generate the rules, and then the user configures them. In this case Blueprint rule generation scans the code identifying where the conversion will create copies of code in PAD by default. These will be listed in the Reuse table giving you an opportunity to configure a rule that will instead make a reusable component (PAD flow).
If there are cases where you'd like to make a reusable component even though Blueprint didn't recommend it (e.g. you intend to reuse it in future) you can add a new rule by clicking the Add Process button and selecting a Blueprint process for which you'd like to create a reuse rule.
You can find the generated Reuse Rules in the Reuse tab. The "PAD Copies" column tells you how many code copies will be created if you don't reuse it by enabling the rule. To its right, a size column shows how large the process is. It is named Activities for UiPath, Stages for Blue Prism and Actions for A360. You can sort the table by either column
Clicking on that number in the table will show you exactly where these copies exist in the Blueprint internal representation of the Blue Prism code. For example the following image is the popup that is displayed when clicking on the first number (3) in the previous image.

In the first column we can see there are two identical copies of code with the same name "Launch", one having ID 1030950 and the other having ID 1030856. The second column tells us that in Blue Prism these code copies are being called by three different Blue Prism processes (calltrees). In the next column we can see which processes (Blue Prism pages) are making the calls, and the last column shows exactly which step in those processes (Blue Prism Stage) is making the call.
If we choose to not have a rule then Blueprint will create three PAD flows (based on the calltrees in second column) each of which will have an identical copy of the "Launch" code as a subflow.
If we would rather have a single, reusable copy of that code then we can use a Reuse Rule to map it to a single, reusable flow and have "Run desktop flow" actions placed in the three PAD flows. You can have Blueprint create the reusable code as a new PAD flow, or have Blueprint use an existing flow if it already exists, using these instructions: Map to an External Flowο»Ώ.
ο»Ώ
ο»Ώ