UiPath Documentation
uipath-cli
latest
false
Guia do usuário da UiPath CLI
Importante :
Este conteúdo foi traduzido com auxílio de tradução automática. A localização de um conteúdo recém-publicado pode levar de 1 a 2 semanas para ficar disponível.

uip or process-roi

Syntax and options for `uip or process-roi`, which manages the Business ROI configuration of an Orchestrator process.

uip or process-roi manages the Business ROI configuration of a process: the manual time a human spends per item, the item volume, the employee cost, and the cost per item. Each process has at most one ROI configuration. For the same configuration on a queue, refer to uip or queue-roi.

For the cross-resource conventions (auth, folder scoping, key types, output envelope), refer to the uip or overview.

Observação:

Every verb needs the OR.BusinessValue scope on the login, the BusinessValue folder permission that matches the verb (View, Create, Edit, or Delete), and the Business ROI feature enabled on the tenant.

Resumo​

uip or process-roi get     <process> [--folder-path <path> | --folder-key <key>]
uip or process-roi create  <process> --manual-time <number> [value options] [--disabled] [--folder-path <path> | --folder-key <key>]
uip or process-roi update  <process> [value options] [--no-volume] [--no-employee-cost] [--no-cost-per-item] [--enabled | --disabled] [--folder-path <path> | --folder-key <key>]
uip or process-roi delete  <process> --yes [--folder-path <path> | --folder-key <key>]
uip or process-roi get     <process> [--folder-path <path> | --folder-key <key>]
uip or process-roi create  <process> --manual-time <number> [value options] [--disabled] [--folder-path <path> | --folder-key <key>]
uip or process-roi update  <process> [value options] [--no-volume] [--no-employee-cost] [--no-cost-per-item] [--enabled | --disabled] [--folder-path <path> | --folder-key <key>]
uip or process-roi delete  <process> --yes [--folder-path <path> | --folder-key <key>]

Verbo​

TextoFinalidade
getGet the ROI configuration of a process. Reports Configured: false when none exists.
createCreate the ROI configuration of a process. Fails when one exists.
updateUpdate the ROI configuration of a process. Values you do not pass keep their current setting.
deleteDelete the ROI configuration of a process.

Argumentos​

Every verb takes the same positional argument.

NameRequiredFinalidade
<process>simProcess name or key (GUID). A name needs --folder-path or --folder-key when it exists in more than one folder you can see. Find processes with uip or processes list.

Opções de pasta​

Every verb accepts these options. They scope a name lookup and are not needed for a key.

ShortLongValorPadrãoDescription
—--folder-pathPath—Folder path the process name is looked up in (for example, Shared).
—--folder-keyGUID—Folder key the process name is looked up in.

uip or process-roi get​

Get the ROI configuration of a process. When the process has no ROI configuration, the command succeeds with Configured: false.

Exemplos​

uip or process-roi get InvoiceProcessing --folder-path Shared
uip or process-roi get c3d4e5f6-0000-0000-0000-000000000001
uip or process-roi get c3d4e5f6-0000-0000-0000-000000000001 \
    --output-filter 'Configured'
uip or process-roi get InvoiceProcessing --folder-path Shared
uip or process-roi get c3d4e5f6-0000-0000-0000-000000000001
uip or process-roi get c3d4e5f6-0000-0000-0000-000000000001 \
    --output-filter 'Configured'

Formato dos dados (--output json)​

{
  "Code": "ProcessRoiGet",
  "Data": {
    "ProcessKey": "c3d4e5f6-0000-0000-0000-000000000001",
    "ProcessName": "InvoiceProcessing",
    "Folder": "Shared",
    "Configured": true,
    "Key": "e5f6a7b8-0000-0000-0000-000000000001",
    "Enabled": true,
    "ManualTimePerItem": 12,
    "ManualTimeUnit": "Minutes",
    "ProcessVolume": 4000,
    "ProcessVolumePeriod": "Month",
    "EmployeeCost": 65000,
    "EmployeeCostPeriod": "Annual",
    "ManualCostPerItem": null,
    "Currency": "Usd"
  }
}
{
  "Code": "ProcessRoiGet",
  "Data": {
    "ProcessKey": "c3d4e5f6-0000-0000-0000-000000000001",
    "ProcessName": "InvoiceProcessing",
    "Folder": "Shared",
    "Configured": true,
    "Key": "e5f6a7b8-0000-0000-0000-000000000001",
    "Enabled": true,
    "ManualTimePerItem": 12,
    "ManualTimeUnit": "Minutes",
    "ProcessVolume": 4000,
    "ProcessVolumePeriod": "Month",
    "EmployeeCost": 65000,
    "EmployeeCostPeriod": "Annual",
    "ManualCostPerItem": null,
    "Currency": "Usd"
  }
}

A process with no ROI configuration returns only ProcessKey, ProcessName, Folder, and Configured: false.

CampoDescription
KeyKey of the ROI configuration.
EnabledWhether ROI tracking is on for the process.
ManualTimePerItem / ManualTimeUnitManual time a human spends per item, and its unit.
ProcessVolume / ProcessVolumePeriodItems processed per period. null when not set.
EmployeeCost / EmployeeCostPeriodFully loaded employee cost, in USD, over the period. null when not set.
ManualCostPerItemManual cost per item, in USD. null when not set, in which case the Orchestrator UI computes it from the other values.
CurrencyCurrency of the cost values.

uip or process-roi create​

Create the ROI configuration of a process. Requires --manual-time. Fails when the process already has an ROI configuration; use update to change it.

Opções​

ShortLongValorPadrãoDescription
—--manual-timewhole number, 0 or morenecessárioManual time a human spends per item, in --time-unit.
—--time-unitSeconds, Minutes, HoursMinutesUnit of --manual-time.
—--volumewhole number, 0 or more—Items processed per --volume-period.
—--volume-periodDay, Week, Month, YearMonth when --volume is setPeriod --volume is measured over. Requires --volume.
—--employee-costnumber, 0 or more, up to 4 decimals—Fully loaded cost of the employee doing the work, in USD, over --cost-period.
—--cost-periodAnnual, HourlyAnnual when --employee-cost is setPeriod --employee-cost is expressed over. Requires --employee-cost.
—--cost-per-itemnumber, 0 or more, up to 4 decimals—Manual cost per item, in USD. When omitted, the Orchestrator UI computes it from the other values.
—--disabledBandeiradesativadaCreate the configuration with ROI tracking off (the UI's "not applicable").

Orchestrator applies upper limits configured on the tenant. By default, the limits are 10,000 for --manual-time, 10,000,000 for --volume and --employee-cost, and 100,000 for --cost-per-item.

Exemplos​

uip or process-roi create InvoiceProcessing --folder-path Shared --manual-time 12

uip or process-roi create c3d4e5f6-0000-0000-0000-000000000001 \
    --manual-time 12 --time-unit Minutes \
    --volume 4000 --volume-period Month \
    --employee-cost 65000 --cost-period Annual

uip or process-roi create c3d4e5f6-0000-0000-0000-000000000001 \
    --manual-time 0 --disabled --output-filter 'Key'
uip or process-roi create InvoiceProcessing --folder-path Shared --manual-time 12

uip or process-roi create c3d4e5f6-0000-0000-0000-000000000001 \
    --manual-time 12 --time-unit Minutes \
    --volume 4000 --volume-period Month \
    --employee-cost 65000 --cost-period Annual

uip or process-roi create c3d4e5f6-0000-0000-0000-000000000001 \
    --manual-time 0 --disabled --output-filter 'Key'

Formato dos dados (--output json)​

Code: "ProcessRoiCreated", with the same Data fields as get.

uip or process-roi update​

Update the ROI configuration of a process. Values you do not pass keep their current setting. Pass at least one value option, --enabled, --disabled, or a --no-* option. Fails with ErrorCode: "not_found" when the process has no ROI configuration; use create first.

Opções​

update accepts the value options of create, all optional and without defaults. When you set --volume or --employee-cost without a period, the stored period is kept, or the create default is used when none is stored. It also accepts:

ShortLongValorPadrãoDescription
—--no-volumeBandeira—Clear the stored volume and its period.
—--no-employee-costBandeira—Clear the stored employee cost and its period.
—--no-cost-per-itemBandeira—Clear the manual cost per item, so the Orchestrator UI computes it again.
—--enabledBandeira—Turn ROI tracking on. Mutually exclusive with --disabled.
—--disabledBandeira—Turn ROI tracking off. Mutually exclusive with --enabled.

Exemplos​

uip or process-roi update InvoiceProcessing --folder-path Shared --volume 5000

uip or process-roi update c3d4e5f6-0000-0000-0000-000000000001 \
    --employee-cost 45 --cost-period Hourly --no-cost-per-item

uip or process-roi update c3d4e5f6-0000-0000-0000-000000000001 \
    --disabled --output-filter 'Enabled'
uip or process-roi update InvoiceProcessing --folder-path Shared --volume 5000

uip or process-roi update c3d4e5f6-0000-0000-0000-000000000001 \
    --employee-cost 45 --cost-period Hourly --no-cost-per-item

uip or process-roi update c3d4e5f6-0000-0000-0000-000000000001 \
    --disabled --output-filter 'Enabled'

Formato dos dados (--output json)​

Code: "ProcessRoiUpdated", with the same Data fields as get.

uip or process-roi delete​

Delete the ROI configuration of a process. Requires -y, --yes — the CLI never prompts for destructive operations.

Opções​

ShortLongValorPadrãoDescription
-y--yesBandeira—Required. Confirms the deletion.

Exemplos​

uip or process-roi delete c3d4e5f6-0000-0000-0000-000000000001 --yes
uip or process-roi delete c3d4e5f6-0000-0000-0000-000000000001 --yes

Formato dos dados (--output json)​

{
  "Code": "ProcessRoiDeleted",
  "Data": {
    "ProcessKey": "c3d4e5f6-0000-0000-0000-000000000001",
    "ProcessName": "InvoiceProcessing",
    "Folder": "Shared",
    "Status": "Deleted"
  }
}
{
  "Code": "ProcessRoiDeleted",
  "Data": {
    "ProcessKey": "c3d4e5f6-0000-0000-0000-000000000001",
    "ProcessName": "InvoiceProcessing",
    "Folder": "Shared",
    "Status": "Deleted"
  }
}

Códigos de saída​

Refer to Exit codes for the shared contract. Verb-specific behavior:

  • update exits 3 (ValidationError) when no value option is passed.
  • create and update exit 3 when --volume-period is passed without --volume, when --cost-period is passed without --employee-cost, or when --enabled and --disabled are both passed.
  • update exits 1 with ErrorCode: "not_found" when the process has no ROI configuration.
  • delete exits 1 if -y, --yes is omitted.

Veja também​

Esta página foi útil?

Conectar

Precisa de ajuda? Suporte(opens in new window)

Quer aprender? Academia UiPath(opens in new window)

Tem perguntas? Fórum do UiPath(opens in new window)

Fique por dentro das novidades