Activities
latest
false
Banner background image
Developer Activities
Last updated 29 de feb. de 2024

Invoke Java Method

UiPath.Java.Activities.InvokeJavaMethod

Invokes a specified Java method from a .jar loaded in the Java Scope. The result is stored in a JavaObject variable.
Note: The Java Activity Pack is now compatible with .NET 5 Windows.

Properties

Common
  • DisplayName - The display name of the activity. This field supports only String variables.
Input
  • MethodName - The name of the Java method that you want to invoke. This field supports only String variables.
  • 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.
    Note: 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.
Misc
  • Private - If selected, the values of variables and arguments are no longer logged at Verbose level.
Output
  • Result - The invoked Java method, stored in a JavaObject variable. This field supports only JavaObject variables.
Target
  • TargetObject - The Java package you want to execute the Java method on. This field supports only JavaObject variables. Setting a variable in this property field disables the TargetType property.
  • TargetType - The name of the Java package and class. Setting a variable in this property field disables the TargetObject property.

    Note: 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.
  • Properties

Was this page helpful?

Get The Help You Need
Learning RPA - Automation Courses
UiPath Community Forum
Uipath Logo White
Trust and Security
© 2005-2024 UiPath. All rights reserved.