Add additional shapes and ports to the orchestration by dragging the following shapes onto the orchestration design surface, and then set the properties as specified in the following table.
|
Shape
|
Location
|
Property Settings
|
|---|
|
Receive
|
Between the Begin (green circle) and the End (red octagon)
|
Name: Get_Assignable_loan
Message: Assignable_loan_msg
Activate: True
|
|
Construct Message
|
Below the Get_assignable_loan shape
|
Name: Form_SPROC_Arguments
Messages Constructed: AgentIntrestSPROCInputMsg
|
|
Transform
|
Inside the Form_SPROC_Arguments shape
|
Name: Transform_SPROC_Input
Map Name: Click the ellipsis (…) button.
In the Transform Configuration dialog box, in the left pane, select Source, and then in the right pane, select Assignable_loan_msg.parameters as the Variable Name.
In the Transform Configuration dialog box, in the left pane, select Destination, and then in the right pane, select AgentInterestSPROCInputMsg.parameters as the Variable Name.
Clear the When I click OK, launch BizTalk Mapper box.
Click OK, and then return to the BizTalk Orchestration.odx tab.
|
|
Send
|
Below the Form_SPROC_Arguments shape
|
Name: Call_SPROC
Message: AgentInterestSPROCInputMsg
Leave the Operation property blank. A red exclamation point appears on the shape in the orchestration indicating that this property must be set.
|
|
Receive
|
Below the Call_SPROC shape
|
Name: Get_SPROC_Result
Message: AgentInterestSPROCResultMsg
Again, leave the Operation property blank.
|
|
Construct Message
|
Below the Save_Result shape
|
Name: Form_Updategram
Message Constructed: UpdategramInputMsg
|
|
Transform
|
Inside the Form_updategram shape
|
Name: Transform_Updategram
Map Name: Click the ellipsis (…) button.
In the Transform Configuration dialog box, in the left pane, select Source, and then in the right pane, select Assignable_loan_msg.parameters as the Variable Name.
In the Transform Configuration dialog box, in the left pane, select Destination, and then in the right pane, select UpdategramInputMsg.parameters as the Variable Name.
Clear the When I click OK, launch BizTalk Mapper box.
Click OK, and then return to the BizTalk Orchestration.odx tab.
|
|
Message Assignment
|
Inside the Form_Updategram shape, below the Transform_Updategram shape
|
Name: Set_Agent_and_Interest
Expression: Click the ellipsis (…) button.
In the BizTalk Expression Editor dialog box, type the following:
UpdategramInputMsg.parameters.sync.after.Loans.AgentID = AgentInterestSPROCResultMsg.parameters.row.AgentID;
UpdategramInputMsg.parameters.sync.after.Loans.Interest = AgentInterestSPROCResultMsg.parameters.row.InterestRate;
UpdategramInputMsg.parameters.sync.after.Loans.Status = "Assigned";
Click OK.
|
|
Send
|
Below the Set_Agent_and_Interest shape
|
Name: Send_Updategram
Message: UpdategramInputMsg
Leave the Operation property blank.
|
|
Receive
|
Below the Send_Updategram shape
|
Name: Get_Updategram_Result
Message: UpdategramResultMsg
Leave the Operation property blank.
|
|
Send
|
Below the Get_UpdateGram_Result
|
Name: Save_Results_to_File
Message: UpdategramResultMsg
Leave the Operation property blank.
|
|
Port
|
On the left Port Surface, next to the Get_Assignable_loan shape
|
Name: ReceiveAssignableLoan_port
Use an existing Port Type
Available Port Types: SQL_Adapter_Updategram.SQLServiceExec1
Port Direction of communication: I'll always be receiving messages on this port.
Port binding: Specify later.
|
|
Port
|
On the right Port Surface, next to the Call_SPROC shape
|
Name: CallLoanAssignmentSPROC_port
Use an existing Port Type
Available Port Types: SQL_Adapter_Updategram.SPROCServiceExec
Port direction of communication: I'll be sending a request and receiving a response.
Port binding: Specify later.
|
|
Port
|
On the left Port Surface, next to the Save_Results_to_File shape
|
Name: Save_LoanAssignment_Port
Create a new Port Type
Port Type name: PortType_SaveLoanAssignment
Communication Pattern: One-Way
Access Restrictions: Internal
Port direction of communication: I'll always be sending messages on this port.
Port binding: Specify later
|