Best practices: Using Java in the assembly diagram

The assembly editor generates the background code you need to use Java code in your business integration module.

If you need to develop Java™ code or import Java code that will be used in a business integration module, you should create a Java project for the code and add a dependency on the Java project to the module that will be using the code. Once that is completed, you can create an import in the assembly diagram and add the Java interface to the import by following these steps:
  1. Create a Java component or import using the icons on the palette.
  2. Click the Add Interface icon, Add Interface button, on the component or import.
  3. In the Add interface dialog box, select Show Java as the interface type and enter the name of the interface in the filter field. You should be able to find the matching interface.
  4. Select the matching interface to see its qualifier, select the qualifier for the interface, and click OK. The interface is added.
  5. Save the assembly diagram.