> For the complete documentation index, see [llms.txt](https://docs.oneweb.tech/oneweb/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.oneweb.tech/oneweb/design-and-develop-oneweb-apps/integration-with-other-systems/develop-integration-with-oneweb-microflow/activity-nodes/java-task.md).

# Java Task

Use the **Java** **Task** to call custom java functions.

<figure><img src="/files/VvnAhnWw6lJ2XmodCj0w" alt=""><figcaption></figcaption></figure>

### **Purpose**

The **Java Task** is used to call and execute Java code defined by user. The Java node task is needed when user wants to use Java code inside their microflow. To accomplish this user can create the Java method, export the Java class to a Jar file and then upload this Jar file to the **Java Node Task** for executing Java method during the flow. You can upload any jar file and call a function from that jar file using the Java Task.

### **Properties**

Java Node Configuration panel has 3 tabs to define properties.

**General**

General Tab contains general information such as title, task id etc.

**Business Object**

Used to configure and map the **Business Object** for input and output for the node.

**Java Parameter**

![](/files/Xd92unZq83pHRfYWOhRJ)

<table data-header-hidden><thead><tr><th width="130"></th><th width="121"></th><th width="93"></th><th></th></tr></thead><tbody><tr><td><strong>Property</strong></td><td><strong>Mandatory</strong></td><td><strong>Default</strong></td><td><strong>Description</strong></td></tr><tr><td>Jar Name</td><td>Y</td><td></td><td>The jar file. The value can be set by clicking on the Choose Jar button and choosing the jar file using the folder browser. Alternately the user can select from the list of existing jar files as well.</td></tr><tr><td>Class Name</td><td>Y</td><td></td><td>The fully qualified class name. The system will display all the available classes from jar on clicking the "Get Class Name" button. User can then choose the value from the list.</td></tr><tr><td>Method Name</td><td>Y</td><td></td><td>The method to be called from the class. System will display all the eligible methods from the chosen class. User can select the method from the list</td></tr></tbody></table>

In Java Parameter tab, "**Choose** **Jar"** button is used to upload **Jar** file and "**Get Class Name"** button is used to get class name from Jar file.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.oneweb.tech/oneweb/design-and-develop-oneweb-apps/integration-with-other-systems/develop-integration-with-oneweb-microflow/activity-nodes/java-task.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
