Business operations connect with external systems and send messages to them via an outbound adapter.
For general information related to all production components written in Java or .NET, see About Business Hosts and Adapters.
Java and .NET Classes
A business operation written in Java extends com.intersystems.enslib.BusinessOperation.
A business operation written in .NET extends InterSystems.EnsLib.PEX.BusinessOperation.
For information about sending messages between the business operation and another business host, see Messaging.
Using the Business Operation
At runtime, the OnMessage() method is called when the business operation receives a message from another business host. From within this method, the business operation can call any of the methods defined in the outbound adapter associated with the business operation.
Parameters for calls from a business operation to an outbound adapter are primitive types only, and do not need to be persistent.
When you want to integrate the business operation into the production:
Open the production in the Management Portal and add a business operation based on the PEX class EnsLib.PEX.BusinessOperation.
Define the remoteClassname setting of the new PEX business operation as the Java class you created for the custom business operation.
Use the gatewayHost and gatewayPort settings of the PEX business operation to define the values of the Object Gateway.
For example, suppose you have a business operation written in a Java class called MyJavaBusinessOperation. To incorporate this custom business operation into the production, you go to the Management Portal and add a business operation based on the PEX class EnsLib.PEX.BusinessOperation. Once added, edit the RemoteClassname setting of the PEX business operation to point to the Java classname MyJavaBusinessOperation.