The Java data source is one of the integration methods available on the Kuika platform that allows you to develop custom functions and business logic. Using Java, you can define custom operations within your application, create methods that accept parameters, and use these methods in application workflows.
With the Java data source, you can write custom code to address needs beyond the built-in actions, customize data processing workflows, and create reusable functions.


A. Top Menu
B. Top Settings Area

C. Java Editor
public class Main {
public static String greet(String name) {
return "Hello, " + name;
}
}
This structure demonstrates the following:
D. TIDY UP Button
E. Test Console
Configuring Java Data Source Settings
Manual Code Writing
If “Generate with AI” is turned off, all code is written manually directly in the editor.
Example:
public class Main {
public static String toUpperCase(String text) {
return text.toUpperCase();
}
}
Code Generation with AI
If you enable the “Generate with AI” feature, you can automatically generate code by entering a description.
Example command:
Create a method that converts the entered text to uppercase.
Selecting a Java Version
You can select the Java version in which your code will be compiled/run from the Java version dropdown menu. Since language features or library compatibility may vary between different versions, it is recommended that you select the LTS version appropriate for your project’s needs.
Using External Libraries (BETA)
Through the External Libraries section, you can include additional dependencies in your project beyond the standard Java libraries. This feature is currently in the BETA phase.
Parameter Definition
You can add parameters to your methods.
Example:
public class Main {
public static double sum(double value1, double value2) {
return value1 + value2;
}
}
This method takes two numbers and returns their sum.
Specifying the Return Type
The data type to be returned must be specified at the beginning of the method definition.
Example types:
Testing Methods with the Test Console
After writing your code, you can use the Test Console section below.
Example:
public class Main {
public static String hello(String name) {
return "Hello " + name;
}
}
Parameter: Kuika Expected output: Hello Kuika
Saving the Data Source with CREATE
After completing and testing your code, you can save the Java data source by clicking the CREATE button. The saved data source becomes available for use within the application.
Expected Output / Result
Once these steps are complete: