UiPath Documentation
activities
latest
false
Importante :
A tradução automática foi aplicada parcialmente neste conteúdo. A localização de um conteúdo recém-publicado pode levar de 1 a 2 semanas para ficar disponível.
UiPath logo, featuring letters U and I in white

Atividades do fluxo de trabalho

Última atualização 7 de abr de 2026

Wait for Job and Resume

UiPath.Persistence.Activities.Job.WaitForJobAndResume

Description

Suspende a execução do fluxo de trabalho atual até que uma Tarefa especificada seja concluída. Para designar um trabalho, um objeto JobData , recuperado da atividade Start Job e Get Reference , deve ser fornecido. Quando o Trabalho for concluído, a execução do fluxo de trabalho é retomada.

Os trabalhos podem ter os seguintes estados:

  • docs image Pendente - Um trabalho está nesse estado se estiver em fila no mesmo Robô ou estiver tentando estabelecer uma conexão com o Robô (somente trabalhos diferentes no mesmo Robô podem ser enfileirados).
  • docs image Em execução - um trabalho está nesse estado se ele tiver estabelecido uma conexão com o Robô que começou a executar o processo designado.
  • docs image Bem-sucedido - um trabalho está nesse estado se tiver sido executado corretamente pelo Robô e tiver concluído a execução ou tiver sido interrompido usando o botão Parar .
  • docs image Faulted - A job is in this state if it failed to start or the process threw an unhandled error during execution.
    Observação:

    Os trabalhos com falha devem ser reiniciados manualmente.

  • docs image Parando - um estado intermediário que é disparado se você clicar no botão Parar no Orchestrator. O trabalho é cancelado assim que for seguro. Isso pode ser implementado em um fluxo de trabalho usando a atividade Deve Parar .
  • docs image Encerrando - Um estado intermediário que será disparado se você clicar no botão Encerrar no Orchestrator. Por padrão, um trabalho de limpeza em segundo plano é executado uma vez a cada três horas, e os trabalhos que estiveram no estado de Encerramento por mais de um dia mudam para Com falha.
  • docs image Suspenso - um estado intermediário que é acionado com a finalidade de permitir a intervenção do usuário ou a conclusão de um processo intermediário. Ele é acionado pelas atividades correspondentes no Studio. Consulte os detalhes aqui.
  • Retomado - um estado intermediário que é disparado se as condições (intervenção do usuário, conclusão do processo intermediário) de um fluxo de trabalho fragmentado tiverem sido atendidas. Ele é acionado pelas atividades correspondentes no Studio. Consulte os detalhes aqui.
  • docs image Stopped - A job is in this state if it stopped (by using the Kill button, or by canceling it from the system tray) before it finished executing without throwing any errors.

Depois que um trabalho é retomado, ele faz a transição para o estado Em execução .

Compatibilidade do projeto

Windows - Legada | Windows | Multiplataforma

Windows, Windows - configuração herdada

Painel do Designer
  • Job Object (Input) - The Job you want to suspend, stored in a JobData variable. This variable can be obtained from a Start Job and Get Reference activity, This field supports only JobData variables.
  • Job Object - The updated Job object obtained from Orchestrator after the execution of this activity.
Painel de Propriedades

Comum

  • ContinueOnError - Specifies if the automation should continue even when the activity throws an error. This field only supports Boolean values (True, False). The default value is False. As a result, if the field is blank and an error is thrown, the execution of the project stops. If the value is set to True, the execution of the project continues regardless of any error.

    Observação:

    If this activity is included in Try Catch and the value of the ContinueOnError property is True, no error is caught when the project is executed.

  • DisplayName - O nome de exibição da atividade.

  • StatusMessage - The message specified in this property field is displayed in Orchestrator alongside the workflow that is suspended by this activity. This field supports strings and String variables only.

  • TempoLimiteEmMs - Especifica o período de tempo (em milissegundos) para aguardar que a atividade seja executada antes de gerar um erro. O valor padrão é de 30.000 milissegundos (30 segundos).

Entrada

  • Job Object (Input) - The Job you want to suspend, stored in a JobData variable. This variable can be obtained from a Start Job and Get Reference activity, This field supports only JobData variables.

Diversos

  • Privado - Se selecionado, os valores de variáveis e argumentos não são mais registrados no nível Verbose.

Saída

  • Job Object - The updated Job object obtained from Orchestrator after the execution of this activity.

Configuração multiplataforma

  • Job Object (Input) - The Job you want to suspend, stored in a JobData variable. This variable can be obtained from a Start Job and Get Reference activity, This field supports only JobData variables.
  • Job Object - The updated Job object obtained from Orchestrator after the execution of this activity.
Opções avançadas
  • ContinueOnError - Specifies if the automation should continue even when the activity throws an error. This field only supports Boolean values (True, False). The default value is False. As a result, if the field is blank and an error is thrown, the execution of the project stops. If the value is set to True, the execution of the project continues regardless of any error.

    Observação:

    If this activity is included in Try Catch and the value of the ContinueOnError property is True, no error is caught when the project is executed.

  • TempoLimiteEmMs - Especifica o período de tempo (em milissegundos) para aguardar que a atividade seja executada antes de gerar um erro. O valor padrão é de 30.000 milissegundos (30 segundos).

  • StatusMessage - The message specified in this property field is displayed in Orchestrator alongside the workflow that is suspended by this activity. This field supports strings and String variables only.

Esta página foi útil?

Conectar

Precisa de ajuda? Suporte

Quer aprender? Academia UiPath

Tem perguntas? Fórum do UiPath

Fique por dentro das novidades