activities
latest
false
- Overview
- Cryptography
- Database
- Java
- Python
- WebAPI
Create Java Object
Developer Activities
Last updated Nov 26, 2024
Create Java Object
UiPath.Java.Activities.CreateJavaObject
Creates a
JavaObject
variable from a class by using the builder specified in the TargetType property field. The class must be defined in the .jar
supplied in the Load Jar activity.
Note: The Java activity package is now compatible with .NET 5 Windows.
Common
- DisplayName - The display name of the activity. This field supports only
String
variables.
Input
- 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 asArrays
of value-type variables. -
ParametersList - An array of
Object
variables, containing the parameters you want to pass to the Java method. This field supports onlyList<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 created
JavaObject
variable.
Target
-
TargetType - The name of the Java class you want to use to create the
JavaObject
. This field supports only strings and String variables.Note: The TargetType property must be specified in the formpackage.name.ClassName
. For example, if we have a package calledcom.package.example
which contains the classUser.Profile
, which we want to use, then the TargetType property should look likecom.package.example.User.Profile
.