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.

Atividades do desenvolvedor

Última atualização 21 de mai de 2026

Create Java Object

UiPath.Java.Activities.CreateJavaObject

Cria uma variável JavaObject a partir de uma classe usando o construtor especificado no campo da propriedade TipoDeDestino . A classe deve ser definida no .jar fornecido na atividade Load jar .

Observação:

O pacote de atividades Java agora é compatível com o .NET 5 Windows.

Propriedades

Comum

  • DisplayName - The display name of the activity. This field supports only String variables.

Entrada

  • Parameters - The list of arguments you want to pass to the Java method. The arguments must be specified in the same order as they are in the Java method. This field supports value-type variables (Int32, String, etc.), as well as Arrays of value-type variables.
  • ParametersList - An array of Object variables, containing the parameters you want to pass to the Java method. This field supports only List<Object> variables.
    Observação:

    The Parameters field enables you to add plain-text arguments and the ParametersList field enables you to load them from preexisting variables. These two property fields have the same function. An argument cannot be null.

Diversos

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

Saída

  • Result - The created JavaObject variable.

Destino

  • TargetType - The name of the Java class you want to use to create the JavaObject. This field supports only strings and String variables.
    Observação:

    The TargetType property must be specified in the form package.name.ClassName. For example, if we have a package called com.package.example which contains the class User.Profile, which we want to use, then the TargetType property should look like com.package.example.User.Profile.

  • Propriedades
  • Comum
  • Entrada
  • Diversos
  • Saída
  • Destino

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