Mediation modules and business integration modules have interfaces
in their exports, so that the module can be invoked by another module. You
can invoke one mediation module from another mediation module. Or, if you
are running your application on the WebSphere Process server you can invoke
a mediation module from a business integration module
. To illustrate the steps to invoke a component in a different module,
we will use the following example.
ModuleA is a business integration module
that contains a business process component named MyProcess. You want MyProcess
to invoke a mediation flow component named MedFlow, in mediation module MedModuleB.
The mediation flow component implements interface MedFlowBInterface, which
is stored in a resource library named ResourceLib.
- Open MedModuleB in the assembly editor. Drag MedFlowBInterface
onto the canvas. In the component creation dialog, select Export
with no binding. Select the export, right-click, and select Generate
Binding > SCA Binding. Rename the export ExportMedFlow, and wire
it to MedFlow.
- Open ModuleA in the assembly editor. Create an import with SCA
binding, and give it the interface MedFlowBInterface. Rename the import to
ImportMedFlow. In the details page of the property view of the import, select
MedFlowBInterface, right click and select Wire (Advanced) .
Select MedModuleB and ExportMedFlow as targets of this import.
Use the same steps to invoke any type of module from any other type
of module.