UiPath Documentation
uipath-cli
latest
false
UiPath CLI ユーザー ガイド
重要 :
このコンテンツは機械翻訳によって処理されています。 新しいコンテンツの翻訳は、およそ 1 ~ 2 週間で公開されます。

UIP ルールの初期化

「uip rules init」の構文とオプション - 1 つのデシジョン テーブルでシードされたビジネス ルール プロジェクトを作成し、それをソリューションに登録します。

uip rules init は、1 つのデシジョン テーブルでシードされたビジネス ルール プロジェクトを作成します。プロジェクトには、 project.uiproj、 Business rule.dmn、 entry-points.json、 bindings_v2.jsonが含まれています。

プロジェクトの場所は、現在のディレクトリによって異なります。

  • 既存のソリューション内では、プロジェクトは ./<name> で作成され、そのソリューションの .uipx マニフェストに追加されます。
  • ソリューションの外部には、 <name>Solution という名前の親ソリューションが作成され、その中に ./<name>Solution/<name>でプロジェクトが作成されます。
  • --skip-solution-registrationでは、プロジェクトは ./<name> で作成され、どのソリューションにも登録されません。

概要​

uip rules init <name> [--force] [--skip-solution-registration]
uip rules init <name> [--force] [--skip-solution-registration]

引数​

名前Required目的
<name>○ビジネス ルールのプロジェクト名。文字、数字、アンダースコア (_)、およびハイフン (-) のみ。

オプション​

長押し値 (Value)既定 (Default)説明
--forceフラグ無効ターゲット ディレクトリが存在していて空でなくても、プロジェクトを初期化します。ディレクトリにすでに.dmnファイルが保持されている場合、既存のルール ファイルはそのまま残RuleStatusPreservedになります。
--skip-solution-registrationフラグ無効周囲のソリューションにプロジェクトを登録したり、親ソリューションを作成したりしないでください。SolutionRegistration.Status は OptedOutです。
# Create a project; outside a solution, a parent my-rules-projectSolution is created
uip rules init my-rules-project
# Create a project; outside a solution, a parent my-rules-projectSolution is created
uip rules init my-rules-project

データシェイプ(--output json)​

{
  "Code": "RulesInit",
  "Data": {
    "Status": "Created successfully",
    "Path": "/workspace/my-rules-projectSolution/my-rules-project",
    "RuleStatus": "Created",
    "SolutionRegistration": {
      "Status": "Registered",
      "Message": "Project registered in parent solution.",
      "Solution": "/workspace/my-rules-projectSolution/my-rules-projectSolution.uipx",
      "Project": "my-rules-project/project.uiproj",
      "ProjectId": "00000000-0000-0000-0000-000000000000",
      "Instructions": "The project is listed in the parent solution manifest.\nPacking or uploading the solution will sync solution resources automatically."
    },
    "AutoCreatedSolution": {
      "Name": "my-rules-projectSolution",
      "Path": "/workspace/my-rules-projectSolution",
      "SolutionFile": "/workspace/my-rules-projectSolution/my-rules-projectSolution.uipx"
    },
    "ProjectArtifacts": { "Created": true },
    "NextSteps": "The project is listed in the parent solution manifest.\nPacking or uploading the solution will sync solution resources automatically."
  }
}
{
  "Code": "RulesInit",
  "Data": {
    "Status": "Created successfully",
    "Path": "/workspace/my-rules-projectSolution/my-rules-project",
    "RuleStatus": "Created",
    "SolutionRegistration": {
      "Status": "Registered",
      "Message": "Project registered in parent solution.",
      "Solution": "/workspace/my-rules-projectSolution/my-rules-projectSolution.uipx",
      "Project": "my-rules-project/project.uiproj",
      "ProjectId": "00000000-0000-0000-0000-000000000000",
      "Instructions": "The project is listed in the parent solution manifest.\nPacking or uploading the solution will sync solution resources automatically."
    },
    "AutoCreatedSolution": {
      "Name": "my-rules-projectSolution",
      "Path": "/workspace/my-rules-projectSolution",
      "SolutionFile": "/workspace/my-rules-projectSolution/my-rules-projectSolution.uipx"
    },
    "ProjectArtifacts": { "Created": true },
    "NextSteps": "The project is listed in the parent solution manifest.\nPacking or uploading the solution will sync solution resources automatically."
  }
}
フィールド説明
RuleStatusCreated シードされたデシジョンテーブルが書き込まれた日時。プロジェクトにすでに.dmnファイルがある場合にPreservedします。
SolutionRegistration.StatusRegistered、AlreadyRegistered、Skipped、Failed、NotInSolution、またはOptedOutのいずれかです。
AutoCreatedSolutioninit親ソリューションを作成した場合にのみ存在します。
ProjectArtifactsプロジェクトがソリューションに登録されている場合にのみ存在します。
NextSteps登録によって指示が返された場合にのみ出席してください。

終了コード​

共有コントラクトの 終了コード をご覧ください。名前に文字、数字、アンダースコア、ハイフン以外の文字が含まれている場合、またはターゲット ディレクトリが存在していて空ではなく、--forceが渡されない場合、コマンドは1終了します。

  • uip rules refresh は、.dmn ファイルを編集した後にエントリ ポイントを再生成します。
  • uip rules validate がプロジェクトをチェックします。
  • uip solution は、プロジェクトを保持するソリューションをパッケージ化、パブリッシュ、デプロイします。

参照​

  • ツールの概要とプロジェクトのレイアウトのuip rules。

このページは役に立ちましたか?

接続

ヘルプ リソース サポート(opens in new window)

学習する UiPath アカデミー(opens in new window)

質問する UiPath フォーラム(opens in new window)

最新情報を取得