Java Class Unit

Java Class Unit


Java Class Overview

  1. 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 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.
  2. 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.
  3. 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.
  4. 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.
  5. Visual Representation:
    • Related Articles

    • Edit Java Class Unit

      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 ...
    • Flow Units Overview

      Flow Units Overview A Flow Unit is a configurable, reusable building block in the Flow Designer that represents a single action or logic step in an automation flow. Each flow unit processes input data, performs a defined operation, and produces an ...
    • 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 ...
    • Configurable Units

      Overview The application provides fixed, trigger, and configurable units. These units are reusable building block of the Flow Designer/Editor that represents a single action or logic step in an automation flow. Each flow unit processes input data, ...