Skip to content

JavaΒΆ

The business entity, Java is used to create and manage the Java JAR files.

You can create new Java JAR files based on the requirements and then map the same to the activities as required. The created Java is mapped to the Java activity in the process flow for adding any particular custom actions in the process flow based on the business requirement.

Viewing JavaΒΆ

The Java associated with each flow will appear within that flow.

  1. Navigate to App Studio > Applications - open application name > Process Flow/Data Flow - process flow name > Open.
  2. Click Java on the left side panel for viewing the java entities for the flow module.

    Java entity and details

Creating New JavaΒΆ

The java activity reads the java entity mapped to it and it executes the code in the classpath.

  1. Navigate to App Studio > Applications - open application name > Process Flow/Data Flow - process flow name > Open > Java.
    The java entity list appears.

    Creating a new java entity

  2. Click +Create New. The Info Actions panel appears as Create Java.

  3. Enter the Basic details in the Create Java panel as explained below.

    Field Description
    Name* Enter the name of the java entity.
    Character limit: 50.
    Data type: Alphanumeric and underscore.
    Scope* The scope of an entity is always local as the entities are created at the flow level.
    Jar File Uploads the required java JAR file (.JAR file).
    - Click inside the dotted box. A browser window opens.
    - Select the .JAR file as per your requirement (or you can drag a .JAR file and drop it into the box).
    JAR file
    - Click Download to download the Java JAR file.
    - Click Remove to remove the mapping of the JAR file.
    Description Enter a description for the java file.
  4. Click Create. Java with the provided details is created.

Viewing and Editing JavaΒΆ

Make sure to unlock the application before editing if you want to edit the details of an entity that is not created by you.

  1. Navigate to App Studio > Applications - open application name > Process Flow/Data Flow - process flow name > Open > Java.
    The java entity list appears.
  2. Click the Java card for viewing the details of the selected java. The details of the java appear in the Info Actions panel (Edit Java).

    Viewing and editing java

  3. Edit the java details as needed.
    !!!!note
    If you upload a new JAR file, you need to deploy the process flow for updating the JAR file.

  4. Click Save.

Viewing Java AssociationsΒΆ

  1. Navigate to App Studio > Applications- open application name > Process Flow/Data Flow - process flow name > Open > Java.
    The java entity list appears.
  2. Hover over any java entity card. Three dots appear on the upper right side of the card.
  3. Click the three dots. More Actions appear.

    Viewing associations

  4. Click Associations. The association of the java entity with the application, flow modules, and activities is displayed in a pop-up.

    Selected Java associations

    • Application - The application in which the java entity is utilized.
    • Flow - The flow in which java is utilized.
    • Activity/Entity - The entity or activity name in which java is utilized.
    • Type - The type of entity or activity.

Duplicating JavaΒΆ

Make sure to unlock the application before duplicating an entity that is not created by you. When you duplicate a java entity, the associations are not duplicated.

  1. Navigate to App Studio > Applications- open application name > Process Flow/Data Flow - process flow name > Open > Java.
    The java entity list appears.
  2. Hover over any Java entity card. Three dots appear on the upper right side of the card.
  3. Click the three dots. More Actions appear.

    Duplicating Java entity

  4. Click Duplicate. A confirmation pop-up appears.

    Duplicate confirmation

  5. Click Ok for duplicating the java entity (or you can click Cancel to cancel the duplicate action). A Success message appears on the successful duplication of the java entity.

    Duplicate success message

  6. Click Ok. A duplicate copy of the java entity appears on the Java page with the same name suffixed with β€œ_copied”.

    The duplicated Java entity

Deleting JavaΒΆ

Make sure to unlock the application before deleting an entity that is not created by you. Also, you cannot delete the entity if it is associated with any activity.

  1. Navigate to App Studio > Applications - open application name > Process Flow/Data Flow - process flow name > Open > Java.
    The java entity list appears.
  2. Click the java name card that is to be deleted. The lower-right of the page displays Delete.

    Deleting Java entity

  3. Click Delete. A Confirmation pop-up for delete appears.

    Java Entity Delete confirmation

  4. Click Ok for deleting the java entity.
    Or
    Click Cancel to cancel the action.

Alternatively, you can follow the below steps to delete the java entity:

  1. Click the Burger menu and navigate to App Studio > Application > {Flow module} > Java.
  2. Hover over the java card. Three dots appear on the upper right side of the card.
  3. Click the three dots. More Actions appear.
  4. Click Delete and follow step 4 in the above procedure.

    Delete action in More Actions

Utilizing Java EntityΒΆ

Accessing Java through ActivityΒΆ

You can map the entity - Java to the activity, Java in the process flow.

  1. Navigate to App Studio > Applications - open application name > Process Flow/Data Flow - process flow name > Open.

    Info

    Open or create a process flow with Java activity in the flow.

  2. Click the Java activity and the Info Actions panel displays the configuration and properties.

  3. Click Java accordion. Java mapping details appear.

    Java entity mapping for the Java activity

  4. Click Default Java Jar for viewing the list of java entities.

  5. Select a java entity.
  6. Below the Class Path, enter the java classpath for the uploaded .JAR file.
    For example, com.abc.parser.
  7. Click Add More if you need to add a conditional Java entity based on rules.

Accessing Java in WebserviceΒΆ

Follow the below steps to access java entity in the webservice entity.

  1. Navigate to Webservice entity.
  2. Click Create New for creating a new webservice or click an existing webservice.
  3. Provide the Basic details and click More. Webservice configuration page appears.
  4. Click REST or SOAP. Configuration details appear.
  5. After providing REST or SOAP-specific details, click the Java Intercepter tab.

Webservices - Java Intercepter

  1. Click Select Java Jar and select the java entity as required.
  2. Enter the Class Path.