UiPath Documentation
studio
latest
false
Wichtig :
Es kann 1–2 Wochen dauern, bis die Lokalisierung neu veröffentlichter Inhalte verfügbar ist.

Studio-Benutzerhandbuch

Aufrufen codierter Automatisierungen mithilfe von Bibliotheken

Sie können codierte Automatisierungen in Low-Code-Automatisierungen (XAML) sowie in codierten Automatisierungen (CS) wiederverwenden, indem Sie sie in einer Bibliothek veröffentlichen und in einem anderen Projekt aufrufen.

Hinweis:

Die Standardverbindung einer exportierten Bibliothek funktioniert in anderen Projekten nur, wenn sich das importierte Projekt im selben Mandanten wie das ursprüngliche Bibliotheksprojekt befindet.

Schritte

  1. Veröffentlichen Sie ein Studio-Projekt, das Low-Code- sowie codierte Automatisierungen enthält, in einer Bibliothek.

In diesem Beispiel betrachten wir die Bibliothek als myFavoriteLibrary.

  1. Open a different project, and select Manage Packages.
  2. Under All Packages, search for and install myFavoriteLibrary.
  3. In the Activities panel of your project, follow these steps according to the type of automation you want to reuse the workflows in:
    • Für Low-Code-Automatisierungen: Ziehen Sie die Workflows aus dem installierten Bibliothekspaket per Drag-and-drop in Ihren aktuellen Workflow.
    • Für codierte Automatisierungen: Rufen Sie den Dienst auf, der dem Namen der Bibliothek entspricht und greifen Sie auf den Workflow aus dem installierten Bibliothekspaket zu.
      Hinweis:

      Der Dienstname beginnt immer mit einem Kleinbuchstaben (z. B. myFavoriteLibrary).

      myFavoriteLibrary.<WorkflowFromThatLibrary>()
      myFavoriteLibrary.<WorkflowFromThatLibrary>()
      
  4. When you include the coded automation into another project as an invoked workflow in XAML files, you can modify its arguments. These arguments are available as properties inside the activity that invokes the coded automation. Optionally, you can also edit the arguments defined in the library as Activity Properties. To do this, go to the library project, open the context menu for the workflow you wish to export, and select Activity Layout. This action displays the activity properties window that allows you to configure different options depending on the library compatibility (Windows-Legacy, Windows, Cross-platform). Unlike low-code automations, you cannot configure an icon or color for coded automations in libraries. Visit Configuring the Layout of an Activity for more information.

Abbildung 1. Das Fenster „Aktivitätseigenschaften“, in dem Sie das Aktivitätslayout konfigurieren können

Ergebnis

The coded automations from the library are available in your project and can be invoked in both low-code and coded automations.

  • Schritte
  • Ergebnis

War diese Seite hilfreich?

Verbinden

Benötigen Sie Hilfe? Support

Möchten Sie lernen? UiPath Academy

Haben Sie Fragen? UiPath-Forum

Auf dem neuesten Stand bleiben