Chapter 9. Integration into business processes 279
Enterprise Application module. You might have to add Java snippets to the
other two branches, because BPEL validation can fail if empty switch cases
are detected.
Add the Enterprise Application to a WebSphere Business Integration Server
Foundation test server, publish the applications, and start the server. You can
start the business process by using the business process Web client. Refer to
the WebSphere Studio Application Developer Integration Edition help for more
details on how to test business processes.
Invoking the EIS component service using EJB binding
Because the Trader EIS component consists of EJBs, the BPEL process is able
to call the EJBs directly using the EJB binding. EJB service descriptions can be
created with the Service Creation Wizard by selecting File
→ New → Service
built from.
We have created a service description that includes the EJB binding for the
TraderIntegration session bean of The Trader EIS component. The EJB service
description, for example TraderIntegrationEJBService.wsdl, has to be dropped
on the BPEL editor to create a partner link. The EJB-based service is called from
an Invoke activity that needs to be configured as described in the previous
section. Also, variables for inbound and outbound data need to be created.
Because the Trader EIS component accepts business objects, setting outbound
data objects and inbound objects is easier. Instead of coding the data
transformation in Java snippets, we can now use Assign activities. Assign
activities are available from the palette of the BPEL editor.
Assign activities do not contain Java code. They are configured in the
Implementation tab of their Attributes view. Data mapping is supported in the
editor by specifying the variable that provides the data in the left column. The
variable that has to be initialized is selected in the right column. The Assign
activity does not support transformation between data types. Data types of the
structures selected in both columns must match. Figure 9-23 on page 280
depicts the data mapping editor for the AssignEISRequest activity.