In this lesson, add extra nodes to log incoming data to Jaguar log.
Right-click in the editor canvas and select Show Tool Palette.
Select the Activities category in the Tool Palette, then drag and drop an Assign activity to the editor canvas next to the getDiscountRequest activity.
In the Service Explorer, expand Private/MyDebugJavaService/debugClass, select printMyString and drag and drop it next to the Assign activity on the editor canvas.
Connect the activities:
Click the right arrow of getDiscountRequent and drag to and click the left arrow of the new Assign.
Click the right arrow of the new Assign and drag to and click the left arrow of printMyString.
Click the right arrow of printMyString and drag to and click the left arrow of Join.
Expand the Business Process Variables view in the Variables Panel, expand Interface Variables/MyHandleOrdersBP/MyHandleOrdersBP/getDiscount to see the getDiscount operation parameters.
Expand Invoked Services Variables/MyDebugJavaSerivce/debugClass to see the printMyString parameter.
In the editor canvas, select the new Assign activity.
Complete two assignments for the first Assign activity so when the business process has successfully executed, a message is logged that indicates the customer ID and the discount.
Expand the Properties Panel and complete the Source and Target for the first Assign in the Assign Overview table:
In the Business Process Variables view of the Variables Panel, drag customerid from beneath Interface Variables/MyHandleOrdersBP/MyHandleOrdersBP/getDiscount and drop it into the Source column.
Drag label from beneath Invoked Service Variables/MyDiscountSOAP/MyDebugJavaService/debugClass/printMyString and drop it into Target column.
Click New below the Assign Overview table in the Properties Panel to add one more assignment row.
Complete the Source and Target properties for the second assignment:
In the Business Process Variables view of the Variables Panel, drag discount from beneath getDiscount and drop it into the second Assign’s Source column.
Drag variable from beneath printMyString and drop it into the second Assign’s Target column.
Select File|Save from the WorkSpace main menu bar.
Use the instructions in “Packaging, deploying, and testing a business process service” to create a package and deploy the MyHandleOrdersBP service.
Unwired Orchestrator must be running and there must
be a connection to the server from MyServiceContainer in WorkSpace.
In Enterprise Explorer, expand Service Containers/MyServiceContainer/Packages/MyHandleOrdersBP/Services and locate the MyHandleOrdersBP package.
In the Enterprise Explorer, right-click MyHandleOrdersBP and select Save WSDL from the context menu. When the Save WSDL Wizard opens, select MySybStore_Tutorials/Services/BP as the parent folder, confirm the File Name is MyHandleOrdersBP, and click Finish.
In the WorkSpace Navigator, expand MySybStore_Tutorials/Services/BP, right-click MyHandleOrdersBP.wsdl, and select Create SOAP Service from the context menu.
When the New Service Wizard opens,
select MySybStore_Tutorials/Services/BP as
the parent folder, enter MyProcessOrderSOAP
for
the File Name of the service, and click Next.
In the Service Summary window, click Next.
In the Service Endpoint Creation window, select the option Yes, Create An Endpoint Now, and click Next.
In the Endpoint Name window,
accept the default Name endpoint
and click Next.
In the Connection Properties window, click Finish.
The SOAP service is created and opens in the SOAP Service Editor. Select File|Close.