This site contains the documentation that is relevant to older WSO2 product versions and offerings.
For the latest WSO2 documentation, visit https://wso2.com/documentation/.

Introducing the Enterprise Integrator

WSO2 Enterprise Integrator (EI) is a comprehensive integration solution that enables communication among various, disparate applications. Instead of having your applications communicate directly with each other in all their various formats, each application simply communicates with the EI, which handles transforming and routing the messages to their appropriate destinations. The WSO2 EI product can be used to manage short-running, stateless integration flows (using the Integrator runtime) as well as long-running, stateful business processes (using the Business Process Server runtime). The product also includes a separate Analytics runtime for comprehensive monitoring as well as a Broker runtime (WSO2 MB ) that can be used for reliable messaging.

The Integration runtime in EI provides its fundamental services through an event-driven and standards-based messaging engine (the bus), which allows integration architects to exploit the value of messaging without writing code. This Integrator product is a step ahead of the ESB product introduced by WSO2 (WSO2 Enterprise Service Bus), as it allows back-end applications and services required for an integration process to be hosted within the same runtime. This eliminates the need to use a separate application server or data services server for your integration processes.

The Business Process runtime in EI enables developers to easily deploy long-running integration processes (business processes). These processes are written using the following: A subset of the BPMN 2.0 standard, WS-BPEL 2.0 and BPEL4People standards, and WS-Human Tasks. Powered by the Activiti BPMN Engine 5.21.0 and Apache Orchestration Director Engine (ODE) BPEL engine, the Business Process runtime in EI comes with a complete web-based graphical management console, enabling users to easily deploy, manage, view and execute processes as well as human tasks.

Therefore, WSO2 EI is essentially a collection of enterprise architecture design patterns (WSO2 ESB++) that can be implemented directly using a single product. This product is light-weight and versatile. It is 100% open source and is released under Apache Software License Version 2.0, one of the most business-friendly licenses available today.

Short-running integration flows

The following diagram illustrates the message-flow architecture in the Integration runtime of EI, which is used for implementing integration flows.

messaging architecture

This shows how a request propagates to its actual endpoint through the Integrator runtime. Response handling is the reverse of this operation. Note that the components of the pipes are not in a specific order.

  1. An application(client) sends a message to the Integration runtime of WSO2 EI.
  2. The message is picked up by a transport.
  3. The transport sends the message through a message pipe, which handles quality of service aspects such as security. Internally, this pipe is the in-flow and out-flow of the Axis2 engine. The Integration runtime can operate in two modes:
  4. Both message transformation and routing can be considered as a single unit. As the diagram specifies, there is no clear separation between message transformation components and routing components. In the Integration runtime of EI, this is known as the mediation framework. Some transformations take place before the routing decision has been made while others take place after the routing decision. This is part of the Synapse implementation.
  5. The message is injected to the separate pipes depending on the destinations. Here again, quality of service aspects of the messages are determined.
  6. The transport layer takes care of the transport protocol transformations that are required before sending the message to the receiver application.
  7. The message is sent to the receiver application.

There are other areas like Working with Scheduled Tasks and Events that are not shown in the diagram. All these components can be analyzed and monitored using the EI-Analytics runtime. Also, you can perform all message tracing activities via the EI-Analytics profile.

Long-running business processes

The following diagram illustrates the message-flow architecture in the Business Process runtime of EI, which is used for long-running, stateful business processes.

This is how a request message propagates through the Business Process runtime:

  1. An application(client) sends a message to the Business Process runtime of WSO2 EI. Note that this request could be for a BPEL process, Human Task or a BPMN process. 
  2. The message is picked up by the transport layer, depending on whether it is intended for a  BPEL process, Human Task or a BPMN process as explained below.
    • Business processes defined using BPEL, as well as Human Tasks are exposed as SOAP services. Therefore, the transport layer is essentially an Axis2 web service (corresponding to the BPEL process or the Human Task), which can receive messages from Axis2-supported transports such as HTTP, HTTPS, JMS, etc.
    • Business processes defined using BPMN are exposed as a secured REST API, which is built as a web application and deployed in embedded tomcat. Therefore, the transport layer for BPMN is essentially a web application that can receive RESTful messages.
  3. If the message is received for a BPEL process, it goes through the Axis2 engine, where QoS (quality of service) requirements such as WS-Addressing and WS-Security will be processed using Axis2 modules such as rampart and addressing. 
  4. The message will be forwarded to the relevant runtime: BPEL runtime, BPMN runtime or the Human Task runtime.
    • BPEL Runtime - The message will be processed against the compiled BPEL process definition. The Integration Layer sits between the ODE BPEL runtime and Axis2 for processing and forwarding received messages to ODE Runtime. 
    • BPMN Runtime - When REST requests are received by the BPMN REST API, it will perform relevant operations in the BPMN runtime against deployed BPMN processes. In addition to exposed REST service, admin services are provided for BPMN processes and instance management.
    • Human Task Runtime - The received message will be executed against the human tasks defined in the system. If the execution is successful, an instance of the task will be created and relevant task instance data will be persisted to the database. 
  5. The Data Access Objects Layer is used to interact with the database for persisiting BPEL process definition/instance data and Human Tasks instance data.