UiPath Documentation
uipath-cli
latest
false
Guía del usuario de UiPath CLI
Importante :
Este contenido se ha traducido mediante traducción automática. La localización de contenidos recién publicados puede tardar entre una y dos semanas en estar disponible.

uip or queue-roi

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

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

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

Nota:

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.

Sinopsis​

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

Verbos​

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

Argumentos​

Every verb takes the same positional argument.

NombreObligatorioPropósito
<queue>SíQueue name or key (GUID). A name needs --folder-path or --folder-key when it exists in more than one folder you can see. Find queues with uip or queues list.

Opciones de carpeta​

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

CortoLargoValorPredeterminadoDescripción
—--folder-pathRuta—Folder path the queue name is looked up in (for example, Shared).
—--folder-keyGUID—Folder key the queue name is looked up in.

uip or queue-roi get​

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

Ejemplos​

uip or queue-roi get InvoiceQueue --folder-path Shared
uip or queue-roi get a1b2c3d4-0000-0000-0000-000000000010
uip or queue-roi get a1b2c3d4-0000-0000-0000-000000000010 \
    --output-filter 'Configured'
uip or queue-roi get InvoiceQueue --folder-path Shared
uip or queue-roi get a1b2c3d4-0000-0000-0000-000000000010
uip or queue-roi get a1b2c3d4-0000-0000-0000-000000000010 \
    --output-filter 'Configured'

Forma de datos (--json de salida)​

{
  "Code": "QueueRoiGet",
  "Data": {
    "QueueKey": "a1b2c3d4-0000-0000-0000-000000000010",
    "QueueName": "InvoiceQueue",
    "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": "QueueRoiGet",
  "Data": {
    "QueueKey": "a1b2c3d4-0000-0000-0000-000000000010",
    "QueueName": "InvoiceQueue",
    "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 queue with no ROI configuration returns only QueueKey, QueueName, Folder, and Configured: false.

CampoDescripción
KeyKey of the ROI configuration.
EnabledWhether ROI tracking is on for the queue.
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 queue-roi create​

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

Opciones​

CortoLargoValorPredeterminadoDescripción
—--manual-timewhole number, 0 or moreobligatorioManual 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.
—--disabledMarcaDesactivadoCreate 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.

Ejemplos​

uip or queue-roi create InvoiceQueue --folder-path Shared --manual-time 12

uip or queue-roi create a1b2c3d4-0000-0000-0000-000000000010 \
    --manual-time 12 --time-unit Minutes \
    --volume 4000 --volume-period Month \
    --employee-cost 65000 --cost-period Annual

uip or queue-roi create a1b2c3d4-0000-0000-0000-000000000010 \
    --manual-time 0 --disabled --output-filter 'Key'
uip or queue-roi create InvoiceQueue --folder-path Shared --manual-time 12

uip or queue-roi create a1b2c3d4-0000-0000-0000-000000000010 \
    --manual-time 12 --time-unit Minutes \
    --volume 4000 --volume-period Month \
    --employee-cost 65000 --cost-period Annual

uip or queue-roi create a1b2c3d4-0000-0000-0000-000000000010 \
    --manual-time 0 --disabled --output-filter 'Key'

Forma de datos (--json de salida)​

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

uip or queue-roi update​

Update the ROI configuration of a queue. 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 queue has no ROI configuration; use create first.

Opciones​

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:

CortoLargoValorPredeterminadoDescripción
—--no-volumeMarca—Clear the stored volume and its period.
—--no-employee-costMarca—Clear the stored employee cost and its period.
—--no-cost-per-itemMarca—Clear the manual cost per item, so the Orchestrator UI computes it again.
—--enabledMarca—Turn ROI tracking on. Mutually exclusive with --disabled.
—--disabledMarca—Turn ROI tracking off. Mutually exclusive with --enabled.

Ejemplos​

uip or queue-roi update InvoiceQueue --folder-path Shared --volume 5000

uip or queue-roi update a1b2c3d4-0000-0000-0000-000000000010 \
    --employee-cost 45 --cost-period Hourly --no-cost-per-item

uip or queue-roi update a1b2c3d4-0000-0000-0000-000000000010 \
    --disabled --output-filter 'Enabled'
uip or queue-roi update InvoiceQueue --folder-path Shared --volume 5000

uip or queue-roi update a1b2c3d4-0000-0000-0000-000000000010 \
    --employee-cost 45 --cost-period Hourly --no-cost-per-item

uip or queue-roi update a1b2c3d4-0000-0000-0000-000000000010 \
    --disabled --output-filter 'Enabled'

Forma de datos (--json de salida)​

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

uip or queue-roi delete​

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

Opciones​

CortoLargoValorPredeterminadoDescripción
-y--yesMarca—Required. Confirms the deletion.

Ejemplos​

uip or queue-roi delete a1b2c3d4-0000-0000-0000-000000000010 --yes
uip or queue-roi delete a1b2c3d4-0000-0000-0000-000000000010 --yes

Forma de datos (--json de salida)​

{
  "Code": "QueueRoiDeleted",
  "Data": {
    "QueueKey": "a1b2c3d4-0000-0000-0000-000000000010",
    "QueueName": "InvoiceQueue",
    "Folder": "Shared",
    "Status": "Deleted"
  }
}
{
  "Code": "QueueRoiDeleted",
  "Data": {
    "QueueKey": "a1b2c3d4-0000-0000-0000-000000000010",
    "QueueName": "InvoiceQueue",
    "Folder": "Shared",
    "Status": "Deleted"
  }
}

Códigos de salida​

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 queue has no ROI configuration.
  • delete exits 1 if -y, --yes is omitted.

Ver también​

¿Te ha resultado útil esta página?

Conectar

¿Necesita ayuda? Soporte(opens in new window)

¿Quiere aprender? UiPath Academy(opens in new window)

¿Tiene alguna pregunta? Foro de UiPath(opens in new window)

Manténgase actualizado