Edit Java Class Unit

Edit Java Class Unit


Overview

A Java Class Unit in a flow diagram represents a step where the workflow invokes custom Java logic packaged as a class. This is commonly used to extend the functionality of built-in units by writing Java code. This unit allows developers to integrate custom-built Java classes into automation flows to perform advanced processing, validation, or business logic that cannot be handled through standard flow units.

What it does:
  1. Executes custom business logic written in Java.
  2. Allows developers to:
    1. Perform complex calculations.
    2. Integrate with external libraries.
    3. Implement custom transformations or validations.
How it works:
  1. Configuration:
    1. Specify the Java class name and method to call.
    2. Provide input parameters from the flow.
    3. Define expected output variables.
  2. Execution:
    1. The flow engine loads the Java class (usually from a JAR or classpath).
    2. Invokes the specified method with mapped inputs.
    3. Captures the return value and passes it to the next unit.
  3. Benefits:
    1. Flexibility: Add logic that is not available in standard units.
    2. Reusability: Use the same Java class across multiple flows.
    3. Performance: Java code runs natively, often faster than scripting.
Use case:
  1. Document Workflow: Custom parsing of metadata from documents.
  2. Integration: Apply encryption/decryption using Java libraries.
  3. Business Logic: Validate invoice data with complex rules.





    • Related Articles

    • Edit Java Class Unit

      Edit Java Class Unit
    • Java Class Unit

      Java Class Overview Purpose: A Java Class Unit in a flow diagram represents a step where the workflow invokes custom Java logic packaged as a class. This is commonly used to extend the functionality of built-in units by writing Java code. This unit ...
    • Edit Component Flow

      Overview The flow editor feature in OneEnterprise enables you to visually modify and refine component flow through an intuitive interface. This functionality permits direct interaction with the flow structure of the component. The flow editor offers ...
    • Edit JSONata Unit

      Overview The JSONata Unit is an action unit in the Flow Editor/Designer that enables a flow to query, transform, and manipulate JSON data using JSONata expression language. This unit lets you convert data without writing custom code, making it ideal ...
    • Edit XSLT Unit

      Edit XSLT Unit