To Create an Instance of the TutorialJoin Control in Your Project
The TutorialJoin.dtf control is provided in your tutorial application. It is available in the requestquote folder in your Tutorial_Process_ApplicationWeb project folder. To learn how to build the TutorialJoin.dtf control, see Tutorial: Building Your First Data Tansformation.
Complete the following steps to add an instance of this control to your business process.
To Design the Process Interaction With the TutorialJoin Control
In this step, you design the business process to call the following method on the tutorialJoin control:
join(PriceQuoteDocument _priceQuoteDoc, AvailQuoteDocument _availQuoteDoc, float taxRate)
This join method does the work of combining the data returned to your business process from different systems and creating a single XML response document (quote), which is subsequently returned to the business process' client.
QuoteDocument join(org.example.price.PriceQuoteDocument _priceQuoteDoc, org.example.avail.AvailQuoteDocument _availQuoteDoc,float taxRate)
QuoteDocument join(org.exampel.price.PriceQuoteDocument _priceQuoteDoc, org.example.avail.AvailQuoteDocument _availQuoteDoc,float taxRate
The Control Expects field is populated with the data type expected by the join method on the tutorialJoin control, as shown in the following figure:
priceQuote holds the price quote data, which is returned from the priceProcessor service in the For Each loop in your business process.
availQuote holds the availability quote data, which is returned from the availProcessor service in the For Each loop in your business process.
taxRate holds the rate of sales tax applied to the quote, based on the shipping address, which is returned to your business process from the taxCalculation service.
On the Receive Data tab, the Control Returns field is populated with QuoteDocument, which is the data type returned by the join() method.
The Variable Type field is populated with org.example.quote.QuoteDocument.
This step completes the design of the Combine Price and Avail Quotes node. At run time, the availability quote data in XML format is assigned to the Quote variable.
To complete Part III of the tutorial, it only remains to write the quote to your file system (an optional step), and to create the Client Response node in your business process. The business process returns the quote you created to the client via the Client Response node.
To learn how to create Transformation controls, and specifically to learn how to design the TutorialJoin.dtf control used in this section, see Tutorial: Building Your First Data Tansformation.
![]() |
![]() |