- Überblick
- Erste Schritte
- Konzepte
- Verwenden der UiPath CLI
- Anleitungen
- CI/CD-Rezepte
- Befehlsreferenz
- Überblick
- Exitcodes
- Globale Optionen
- UIP-codierter Agent
- UIP-Coded
- UIP-Kontextgrundlage
- UIP-Dokumentation
- UIP-Funktion
- UIP-Leitplanken
- uip llm-configuration
- uip llm-gateway
- UIP Maestro-Erstellung
- UIP Maestro-Registrierung
- UIP-Modellhub
- uip ont
- Aktivitäten finden
- get-standard-xaml
- Analysieren
- Analyseregeln-Liste
- Erstellen
- Bereinigung
- data-fabric-entities installieren
- data-fabric-entities-Liste
- Dateien differenzieren
- Get-Library-Object-Repository
- Get-Object-Repository
- Init
- Instanzenliste
- Packen
- Pakete überprüfen
- Pakete installieren
- Paketversionen
- Veröffentlichen
- Remote
- restore
- Ausführen, Debuggen & Ausführung enthält
- Einstellungen
- Studio-Start
- Vorlagensuche
- Testdaten-Add-Entität
- Testdaten-Warteschlange hinzufügen
- Testdaten-Hinzufügevariante
- TM
- UIA
- Überprüfen
- Workflow-Beispiele abrufen
- Workflow-Beispiele
- uip resources
- UIP-Aufgaben
- Anhang
- benutzerdefiniertes Feld
- Defects
- Ausführungen
- Exportaufträge
- Migration
- Objektbeschriftung
- Packen
- perf-szenario
- Perf-Szenario-Lastgruppen
- Ausführungsdaten für perf-szenario
- Perf-Szenario-Bericht
- Projekt
- Projektberechtigungen
- Aufforderungen
- Melden
- Anforderungen
- Ergebnis
- Ausführen
- Zeitpläne
- Scopes
- Testfallprotokoll
- Testfälle
- Testsätze
- Testschrittprotokoll
- Benutzer
- Warten
- UIP-Ablaufverfolgungen
- Feedback zu UIP-Ablaufverfolgungen
- Migration
- Referenz und Support
UIP-codierte App-Konvertierung
Syntax and options for `uip codedapp convert`, which converts an exported VB low-code app (`.uiapp`) or a Unified Build Solution (`.uis`) into a React and TypeScript coded app.
uip codedapp convert converts an exported low-code app into a React and TypeScript coded app that you own. The input is one of two exports:
- The
.uiappfile that Apps Studio exports for a Visual Basic (VB) app — a standalone low-code app whose expressions are written in VB, the Apps Studio default. - The
.uisfile that Studio Web exports for a Unified Build Solution. A Unified Build app keeps its event logic in XAML workflows, which become TypeScript handlers in the coded app. A Solution can hold more than one app, and each app converts into a project of its own. Refer to Convert a Unified Build Solution.
Das Ergebnis ist ein Suite-, React- und TypeScript-Projekt mit:
- Eine Komponente pro Seite
- Eingegebener Datenzugriff über
@uipath/uipath-typescript - Ein
conversion-report.jsonder auflistet, was konvertiert wurde, was nicht konvertiert wurde, und die Ursache jeder Lücke (converter,source-appoderby-design)
Die Konvertierung wird auf Ihrer Maschine ausgeführt. Es macht keinen Mandantenaufruf und benötigt keine uip login.
Voraussetzungen
Der Konverter bindet die VB-Ausdrücke der App an den Rolyn-Compiler, der auf.NET ausgeführt wird. Daher muss die.NET 10-Runtime auf der Maschine installiert werden, auf der convert ausgeführt wird. Das.NET SDK wird nicht benötigt.
Die Laufzeit für jedes Betriebssystem ist unter dotnet.microsoft.com verfügbar. Sobald er installiert ist, gibt dotnet --list-runtimes in einem neuen Terminal eine Zeile aus, die mit Microsoft.NETCore.App 10. beginnt. Andere.NET-Versionen können installiert bleiben.
Ohne die Runtime wird convert angehalten, bevor er die Datei liest und CONVERT_PREREQUISITE_MISSING meldet.
Konverter SDK
Der Konverter @uipath/codedapp-convert-sdk wird mit dem Tool ausgeliefert. Wenn der Befehl meldet, dass das Konverter-SDK nicht geladen werden konnte, z. B. nach einer Installation mit --omit=optional, installiert uip tools install codedapp das Tool zusammen mit dem SDK neu. uip tools update hilft hier nicht, da die installierte Toolversion bereits aktuell ist.
Sie können auch das SDK neben dem Tool mit npm install -g @uipath/codedapp-convert-sdk@beta ohne -g für eine projektlokale CLI installieren.
Reading a .uis file needs the SDK version the tool is built against, or later. An older SDK still converts a .uiapp file, and for a .uis file the failure names the version it needs.
Zusammenfassung
uip codedapp convert <file> [options]
uip codedapp convert <file> [options]
Argumente
| Argument | Beschreibung |
|---|---|
<file> | Required. The export: a .uiapp file (VB app) or a .uis file (Unified Build Solution). Put it before --app, which takes every word after it. |
Optionen
| Markieren | Beschreibung |
|---|---|
--out <dir> | Output directory for the coded app, by default ./<file name> in the current directory. An empty value is refused instead of treated as omitted. For a .uis file, refer to Convert a Unified Build Solution. |
--app <names...> | For a .uis Solution that holds more than one app: the apps to convert, as one or more names, or all. A value with a comma is a list of names. A Solution with one app needs no --app. With more than one app and no --app, the command lists the apps and stops. Refused on a .uiapp file. |
--skip-solution-registration | Write a standalone coded app and leave every Solution alone: the .uis is not extracted into --out, and the app is not registered in a Solution folder that --out is in. |
--client-id <id> | Client ID of the external application (OAuth client) that the app signs users in with. Written into uipath.json as clientId, replacing the value it holds. For an app registered in a Solution, also written onto the app's resource as externalClientId, which a deploy requires. |
--force | Convert into a non-empty directory, for a re-conversion. The generated code is replaced, including hand edits. uipath.json and node_modules are kept. |
--refresh | Binden Sie jeden Ausdruck erneut, anstatt den Bindungscache des Ausgabeverzeichnisses wiederzuverwenden. |
Ausgabe
Die codierte App geht an --out oder in ein Verzeichnis, das nach der Datei in Ihrem aktuellen Verzeichnis benannt ist. Die Ausgabe enthält:
README.mdconversion-report.jsonconversion-log.ndjson- Die Fähigkeit
fix-converted-app
Convert a Unified Build Solution
A converted Unified Build app stays a part of the Solution it came from: it refers to Solution resources, such as a connection, a queue, or a bucket, by the keys the Solution declares. By default, a .uis file therefore converts into its Solution, beside the original app. The result is a Solution folder ready for the uip solution commands:
invoices/ --out: the extracted Solution
Invoices.uipx lists two projects
Invoices/ the original low-code app, unchanged
Invoices_Coded/ the converted app, registered as a project
project.uiproj
webAppManifest.json
action-schema.json an action app only
source/ the React and TypeScript app
resources/solution_folder/ the original entries, plus one for Invoices_Coded
invoices/ --out: the extracted Solution
Invoices.uipx lists two projects
Invoices/ the original low-code app, unchanged
Invoices_Coded/ the converted app, registered as a project
project.uiproj
webAppManifest.json
action-schema.json an action app only
source/ the React and TypeScript app
resources/solution_folder/ the original entries, plus one for Invoices_Coded
The command works in this order:
- It extracts the
.uisfile into--out. When--outis a Solution folder already, or is inside one, nothing is extracted and that Solution is used. - It writes each selected app to
<App>_Coded/source/. - It registers each project in the Solution's
.uipxfile and adds its resource entry, the same wayuip codedapp initdoes.
The original app, and the resources that run its workflows, stay as they are.
Where the projects go
--out | Ergebnis |
|---|---|
| A missing or empty folder | The Solution is extracted there, and each app becomes <dir>/<App>_Coded. |
The folder that holds a Solution's .uipx file | Nothing is extracted. Each app becomes <solution>/<App>_Coded. |
<solution>/<name>, inside a Solution folder | Nothing is extracted. For a Solution with one app, <name> is the project. For a Solution with more than one app, <name> holds an <App>_Coded project per app. |
Any folder, with --skip-solution-registration | A standalone project at <dir> for a Solution with one app, or at <dir>/<App> per app for a Solution with more than one app. |
A re-run into the folder that an earlier run extracted does not extract the Solution again, and Data.SolutionExtracted is false. The Solution on disk must be the one the export came from. Any other Solution is refused with CONVERT_SOLUTION_UNUSABLE.
A project that the Solution already holds is checked before anything is written:
| Existing project | Ergebnis |
|---|---|
A coded project at <App>_Coded | An earlier conversion. Refused with CONVERT_DIR_NOT_EMPTY; --force converts over it. |
| A project at that path that is not a coded app | Refused with CONVERT_APP_SELECTION, with or without --force. |
| A coded project under another name that was converted from the same app | Refused with CONVERT_APP_SELECTION, with or without --force. |
Sign-in client and routing name
A deployed coded app signs users in through an external application, and a deploy refuses a coded app whose resource names none. The conversion writes the client ID onto the app's resource as externalClientId, and reports it in Data.ExternalClientId. The value comes from the first of these:
--client-id, which also setsclientIdinuipath.json.- The
clientIdin the app'ssource/uipath.json, when it holds a real ID. - The value an earlier run left on the resource.
A first conversion without --client-id has only a placeholder, and NextSteps says how to supply the ID. The deployed URL of the app must be one of the redirect URLs of that external application.
The conversion also gives the app's resource a routing name of its own, taken from the project name, for example invoices-coded for Invoices_Coded. Data.RoutingName reports it. A routing name set on the resource by hand is kept. A coded action app has none.
Pack and deploy the Solution
The Solution carries the converted app. uip codedapp pack, publish, and deploy are for a standalone app, not for an app registered in a Solution.
cd invoices/Invoices_Coded/source && npm install && npm run build && cd ../..
uip solution pack . ./pack
uip solution publish ./pack/<package>_<version>.zip --wait
uip solution upload .
cd invoices/Invoices_Coded/source && npm install && npm run build && cd ../..
uip solution pack . ./pack
uip solution publish ./pack/<package>_<version>.zip --wait
uip solution upload .
Refer to uip solution pack, uip solution publish, uip solution deploy, and uip solution upload.
Push a converted app
convert never contacts a tenant. Pushing the converted code into a Studio Web project is a separate step with uip codedapp push, from the folder that holds package.json: the output folder for a standalone conversion, or the project's source/ folder for an app registered in a Solution.
uip codedapp convert ./Invoices.uis --out ./invoices --client-id <external-application-client-id>
cd ./invoices/Invoices_Coded/source
npm install && npm run build
uip login
uip codedapp push --project-id <coded-app-project-id>
uip codedapp convert ./Invoices.uis --out ./invoices --client-id <external-application-client-id>
cd ./invoices/Invoices_Coded/source
npm install && npm run build
uip login
uip codedapp push --project-id <coded-app-project-id>
push makes the remote project match the local folder, and deletes remote files that are not in the folder, without a prompt. Pass --project-id explicitly, and check that it names the coded app project to replace.
pushcopiesclientIdfromuipath.jsononto the project as its external application. A conversion without--client-idleaves a placeholder there, and an app pushed with the placeholder cannot sign in. SetclientIdto the external application's ID, or to""to keep the client ID the project already has.convertlists its own non-web files, such asconversion-log.ndjson, in a.uipignorefile beside the code, sopushdoes not refuse them.
Die Fähigkeit zur Korrektur der konvertierten App
Die Ausgabe enthält die Fähigkeit fix-converted-app als Fähigkeitsquelle im gleichen Layout wie UiPath/Fähigkeiten: .uipath/agent-skills/skills/fix-converted-app/SKILL.md. convert führt selbst keinen Agent aus. Der Befehl, der die Fähigkeit unter NextSteps installiert, wird ausgegeben:
uip skills install --repo ./.uipath/agent-skills --path .
uip skills install --repo ./.uipath/agent-skills --path .
Wenn die Ausführung über das Ausgabeverzeichnis ausgeführt wird, installiert der Befehl die Fähigkeit für jeden Codierungs-Agent, der auf der Maschine erkannt wird, oder nur für einen Agent mit --agent <name>. Siehe uip skills. Die Fähigkeit beginnt dann beim Codierungs-Agent mit seinem Namen.
Die Fähigkeit liest conversion-report.json, bearbeitet die Probleme, die der Bericht dem converter vor führt, indem er den generierten Code bearbeitet, das Projekt erstellt, um seine Arbeit zu überprüfen, und schreibt in conversion-fixes.md, was es getan hat. Der Bericht oder das Protokoll wird nie geändert. Die Fähigkeit liest den generierten Code für den Export sowie den Bericht, sodass es Minuten dauern kann und Dinge ändern kann, die im Bericht nicht aufgeführt sind.
Beispiele
# Convert an export; the coded app lands in ./expense-app
uip codedapp convert ./expense-app.uiapp
# Choose the directory
uip codedapp convert ./expense-app.uiapp --out ./apps/expense
# Re-convert into the same project after a converter update (uipath.json is kept)
uip codedapp convert ./expense-app.uiapp --force --refresh
# A Unified Build Solution with one app: extracted into ./invoices, with the coded app registered in it
uip codedapp convert ./Invoices.uis --out ./invoices
# Name the sign-in client at conversion time
uip codedapp convert ./Invoices.uis --out ./invoices \
--client-id <external-application-client-id>
# A Solution with more than one app: every app, or a selection
uip codedapp convert ./HR.uis --app all --out ./hr
uip codedapp convert ./HR.uis --app Onboarding Leave --out ./hr
# A standalone coded app outside any Solution
uip codedapp convert ./Invoices.uis --out ./invoices-app --skip-solution-registration
# Convert an export; the coded app lands in ./expense-app
uip codedapp convert ./expense-app.uiapp
# Choose the directory
uip codedapp convert ./expense-app.uiapp --out ./apps/expense
# Re-convert into the same project after a converter update (uipath.json is kept)
uip codedapp convert ./expense-app.uiapp --force --refresh
# A Unified Build Solution with one app: extracted into ./invoices, with the coded app registered in it
uip codedapp convert ./Invoices.uis --out ./invoices
# Name the sign-in client at conversion time
uip codedapp convert ./Invoices.uis --out ./invoices \
--client-id <external-application-client-id>
# A Solution with more than one app: every app, or a selection
uip codedapp convert ./HR.uis --app all --out ./hr
uip codedapp convert ./HR.uis --app Onboarding Leave --out ./hr
# A standalone coded app outside any Solution
uip codedapp convert ./Invoices.uis --out ./invoices-app --skip-solution-registration
Datenform (--output json)
Eine Konvertierung ohne Lücken:
{
"Code": "ConvertCompleted",
"Data": {
"Path": "./expense-app",
"Kind": "uiapp",
"Pages": 3,
"Files": 58,
"Report": {
"Issues": 0,
"Converter": 0,
"SourceApp": 0,
"ByDesign": 0
}
}
}
{
"Code": "ConvertCompleted",
"Data": {
"Path": "./expense-app",
"Kind": "uiapp",
"Pages": 3,
"Files": 58,
"Report": {
"Issues": 0,
"Converter": 0,
"SourceApp": 0,
"ByDesign": 0
}
}
}
Eine Konvertierung mit Lücken enthält auch den Befehl zum Installieren der Fähigkeit:
{
"Code": "ConvertCompletedWithGaps",
"Data": {
"Path": "./apps/expense",
"Report": {
"Issues": 2,
"Converter": 2,
"SourceApp": 0,
"ByDesign": 0
},
"Skill": {
"Install": "uip skills install --repo ./.uipath/agent-skills --path ."
}
}
}
{
"Code": "ConvertCompletedWithGaps",
"Data": {
"Path": "./apps/expense",
"Report": {
"Issues": 2,
"Converter": 2,
"SourceApp": 0,
"ByDesign": 0
},
"Skill": {
"Install": "uip skills install --repo ./.uipath/agent-skills --path ."
}
}
}
Die Beispiele sind gekürzt. Das vollständige Data enthält folgende Felder:
| Feld | Beschreibung |
|---|---|
Path | Das Verzeichnis, in das die codierte App geschrieben wurde. |
Kind | Der Eingabetyp: uiapp oder uis. |
Outcome | converted, converted-with-gaps oder cannot-run. |
Pages | Die Anzahl der konvertierten Seiten. |
Files | Die Anzahl der geschriebenen Dateien. |
Kept | Die vorhandenen Dateien, die die Ausführung beibehalten hat, z. B. uipath.json. |
Expressions | Anzahl der Ausdrücke: referenziert, ausgegeben, exakt und nachvollziehen. |
Unconverted | Anzahl der Ausdrücke und Ereignishandler, die nicht konvertiert wurden. |
Blocking | Die Anzahl der Diagnosen, die das Verhalten bei der Konvertierung gestoppt haben. |
Report | Der Pfad von conversion-report.json und seine Anzahl von Problemen. |
Skill | Die Fähigkeit fix-converted-app : Path, Source und Install. |
NextSteps | Die als nächstes auszuführenden Befehle. |
A .uis conversion adds these fields:
| Feld | Beschreibung |
|---|---|
App | The name of the converted app. |
Workflows | Counts of the app's workflows: Read, Converted, Partial, Blocked, and Gaps, the total of unconverted activities. |
Solution | The Solution folder the app was written into. |
Project | The project folder. Path is then the project's source/ folder. |
SolutionRegistration | The registration result, in the shape uip codedapp init reports it. |
ProjectArtifacts | The resource entries written for the project. |
SolutionExtracted | false when the Solution was on disk already and was not extracted again. |
ExternalClientId | The client ID written onto the app's resource. |
RoutingName | The routing name written onto the app's resource. |
When --app selects more than one app, Data describes the Solution as a whole: Path is the output directory, Kind is uis, and Outcome is the worst outcome among the apps. Data.Apps lists the full result of each app.
Ergebnisse und Exitcodes
Result und Code geben an, was die Zahlen bedeuten, also sind sie – nicht die Anzahlen – die Werte, auf denen verzweigt werden soll:
Result | Code | Beenden | Bedeutung |
|---|---|---|---|
Success | ConvertCompleted | 0 | Alles konvertiert. Nichts im Bericht wird dem Konvertierer zugeschrieben. |
Success | ConvertCompletedWithGaps | 0 | Das Projekt wird erstellt und ausgeführt, mit Lücken: Report.Converter ist 1 oder höher oder Ausdrücke oder Ereignishandler werden nicht konvertiert. Weitere Informationen finden Sie unter Die Fähigkeit „ Fix-Converted-App“. |
Failure | ConvertOutputCannotRun | 1 | The project is written but cannot run as it is: a blocking diagnostic stopped behavior from converting, or generated TypeScript does not parse. Data still carries the result. With more than one app, the message names the apps that cannot run. |
Failure | ConvertNotRegistered | 1 | The project is written into a Solution but is not registered in it, so uip solution pack leaves it out. SolutionRegistration.Status is Failed or Skipped. Data still carries the result, and Instructions says how to register the project. |
Failure | CONVERT_* | 1 | Es wurde nichts konvertiert. Siehe Konvertierungsfehler. |
Konvertierungsfehler
Code | ErrorCode | Ursache |
|---|---|---|
CONVERT_FILE_REQUIRED | invalid_argument | No file was passed, or --app came before the file and took it as an app name. |
CONVERT_FILE_NOT_FOUND | not_found | Die Datei ist nicht vorhanden. Apps Studio exportiert die Datei. |
CONVERT_UNSUPPORTED_TYPE | invalid_argument | The file is neither a .uiapp nor a .uis export. |
CONVERT_NOT_A_DIRECTORY | invalid_argument | Der Ausgabepfad ist vorhanden und ist kein Verzeichnis. |
CONVERT_DIR_NOT_EMPTY | invalid_argument | Das Ausgabeverzeichnis ist nicht leer und --force wurde nicht übergeben. |
CONVERT_OUT_EMPTY | invalid_argument | --out wurde ein leerer Wert übergeben. |
CONVERT_SDK_UNAVAILABLE | configuration_error | Das Konverter-SDK konnte nicht geladen werden. Siehe Voraussetzungen. |
CONVERT_PREREQUISITE_MISSING | configuration_error | Die.NET 10-Runtime fehlt. Siehe Voraussetzungen. |
CONVERT_INPUT_REJECTED | invalid_argument | Der Konverter konnte den Export nicht lesen. |
CONVERT_CLIENT_ID_EMPTY | invalid_argument | --client-id was passed an empty value or the placeholder <external-application-clientId>. |
CONVERT_APP_SELECTION | invalid_argument | The app selection cannot be settled: more than one app and no --app, a name the Solution does not hold, all beside other names, --app on a .uiapp file, or a project the Solution already holds. The message lists the apps of the Solution. |
CONVERT_SOLUTION_UNUSABLE | invalid_argument | The app cannot be placed in the Solution at --out: the folder holds more than one .uipx file, the .uipx file cannot be read, or the Solution is not the one the export came from. |
CONVERT_PROJECT_FILE_INVALID | invalid_argument | An existing project file, such as webAppManifest.json, is not a JSON object. |
These checks run before anything is written. A .uis conversion can also fail while one app converts. The apps before it are then converted, and that app's folder can be partly written. Data.Apps lists each finished app, and Data.Failed names the app that failed with App, Path, and PartlyWritten.
Zugehörig
- uip codedapp push – Laden Sie die konvertierte App in Studio Web hoch.
- uip solution pack — pack the Solution that holds a converted Unified Build app.
- uip codedapp pack – verpacken Sie eine erstellte codierte App in ein
.nupkg. - uip codedapp init – starten Sie stattdessen eine codierte App aus einer Vorlage.
Siehe auch
- Voraussetzungen
- Konverter SDK
- Zusammenfassung
- Argumente
- Optionen
- Ausgabe
- Convert a Unified Build Solution
- Where the projects go
- Sign-in client and routing name
- Pack and deploy the Solution
- Push a converted app
- Die Fähigkeit zur Korrektur der konvertierten App
- Beispiele
- Datenform (--output json)
- Ergebnisse und Exitcodes
- Konvertierungsfehler
- Zugehörig
- Siehe auch