Skip to main content

Business Operations

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.

Developing a Business Operation

To write a business operation in an external language, extend one of the following classes:

Language Class
Java com.intersystems.enslib.BusinessOperation
.NET 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:

  1. Open the production in the Management Portal and add a business operation based on the PEX class EnsLib.PEX.BusinessOperation.

  2. Define the remoteClassname setting of the new PEX business operation as the Java class you created for the custom business operation.

  3. Use the External Server setting to specify the external server for your language. For more details about external servers, see Running the External Server.

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.

Feedback