Business Process Modeling - BTMSoftwareSolutions.com

Sunday, September 6, 2009

LDAP, Intalio and openESB

This blog demostrates how LDAP data may be accessed with Intalio using openESB to create composite application consisting of two web services.

I had a business requirement in which we had to access user attributes from LDAP within Intalio Business Process.  Since Intalio does not currently offer an LDAP connector to access user attributes, I downloaded the latest version of openESB and used the NetBeans IDE GUI to develop a BPEL module that included 2 web services to return user information stored in an LDAP.  These were the general steps involved:

  1. Create a new SOA BPEL module project
  2. Add LDAP WSDL
  3. Add Trigger WSDL
  4. Updat BPEL module to include 2 web services (WSDLs defined above)
  5. Deploy project to GlassFish Server
The Trigger WSDL is a SOAP call defined with input and output parameters.  The LDAP WSDL is an LDAP call search with filter based on cn value (SOAP input parameter) and return value of user email attribute (reply to SOAP call).  So, SOAP message is received, BPEL assigns input message to a variable called cn.  BPEL invokes LDAP service and passes cn value as a filter.  Users email address (LDAP attribute) is sent back and BPEL assigns this value to a variable called mail.  BPEL sends mail variable to SOAP call.  That is it. 

How does this work with Intalio.  The SOAP WSDL is imported into Intalio and placed within a diagram.  In the mapper, the SOAP input message and output message is exposed.  The users cn attribute is passed from within Intalio business process.  The call is made to the service (which resides in GlassFish server deployed from NetBeans) and the users email is sent back to intalio process to be used to send email notifications from within Intalio.

For more information, contact http://btmsoftwaresolutions.com/.

No comments:

Post a Comment