AquaLogic Service Bus Example

The following example shows how to access AquaLogic Service Bus objects from within a PBL program.

Note: You must add AquaLogic Service Bus objects to the BPM Object Catalog before they can be used within Studio.

Accessing ALSB Objects

The following PBL program shows how to access an AquaLogic Service Bus object after it has been cataloged. This example is based on the default example that is provided in ALSB.
 service as ServiceBus.LoanGateway1.MyService = 
   ServiceBus.LoanGateway1.MyService(); 
request as ServiceBus.LoanGateway1.LoanStruct = 
  ServiceBus.LoanGateway1.LoanStruct(); 

request.amount = 12345 
request.name = 'John Smith' 

//display request.name 
processLoanApp service 
  using loanRequest = request 
  returning result2 = result 

display result2.name 
display result2.notes