UiPath Activities Guide

About the Java Activities Pack

Important!

The Java activity pack has been made open-source. Feel free to collaborate on our Github repositories.

The Java Activities Pack contains several new activities that help you harness the power of Java code. With the Java Scope activity you can initialize a Java library, thus providing a scope for all subsequent activities. All activities in this pack must be run inside the aforementioned scope.

You can then load .jar files inside the Scope by using the Load Jar activity.

We have created the JavaObject variable, which is a custom data type used to process results from Java routines in UiPath by either converting them into standard C# datatypes or passing them as arguments to other Java methods. Also, you can retrieve fields from methods found in this custom data type and store them in JavaObject variables, by using the Get Field activity.

This variable can be created from a method by using the Invoke Java Method activity or from a class, by using the Create Java Object activity.

If you find it easier to work with .NET, you can convert any JavaObject variable to an Object variable by using the Convert Java Object activity.


About the Java Activities Pack


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.