Create or update the Java logic
Learn how to write or update the Java logic of a workflow in the custom workflow repository, submit it for review, and register the JAR file that Reltio builds on the tenant.
Create or update Java logic when a step of the workflow needs behavior that the Java logic on your tenant does not provide. You write the Java classes and their tests in the custom workflow repository, and submit them in a pull request. Reltio reviews the pull request, builds the Java logic into a JAR file, and sends you an email. You then register the JAR file on the tenant, so that the steps of the workflow call its classes.
Write the Java logic yourself, or describe your requirements to the AI agent in a natural language prompt. For the cases that require Java logic, see When Java development is required.
Prerequisites
Before you begin, confirm the following requirements:
-
The custom workflow repository is connected for the tenant. For the steps, see Connect the custom workflow repository.
-
The BPMN file of the workflow is created or updated. For the steps, see Create or update the BPMN file.
-
Your Reltio user has the
ROLE_WORKFLOW_MANAGERrole on the tenant. This role is required to register the JAR file. -
To build and test the Java logic on your computer, JDK 17 and Maven are installed. The integrated development experience does not run the build. You run it in a terminal.
Result
The JAR file is registered on the tenant, and its classes are available to the steps of your workflows. If you registered a new version of a JAR file, the tenant uses the most recently registered version. Updated classes take effect after about five minutes. The workflow is not deployed yet.
Verification steps
To confirm that the JAR file is registered, perform the following steps:
-
Under JAR Deployments, hover over the JAR file. In the tooltip, confirm that Custom JAR appears, that Name and Description show what you entered, and that Registered by shows your user name.
-
Confirm that the JAR file no longer appears under Unregistered.
Next steps
Deploy the workflow, as described in Deploy a workflow. If a step fails, see Troubleshoot workflows.