Designer Sample Orchestration Project > Human Approval Sample > Preparing the Process for Human Interaction
  

Preparing the Process for Human Interaction

The process that is explained here is based on the Loan Approval process that is built when you complete the Process Developer Tutorial. During this part, you will:

Step 1. Remove the Invoke Loan Approver Activity

Since the decision to approve or reject a loan is now handled by a person, you need to update the loan approval process by removing the call to the loan approver Web service. This call will be replaced by a people activity.
  1. 1. From the Project Explorer, expand the bpel folder and open the loanProcessHuman.bpel process.
  2. 2. Select the Invoke Loan Approver activity on the canvas, right-click, and select Delete.
  3. 3. In the Outline view, expand the Participant Partner Links section, right-click on the LoanApproval node, and delete it. This removes the LoanApproval participant from the Participants view.

Step 2. Update the Reply Sent to the Loan Requester

Before invoking the people activity, it makes sense to reply back to the loan requestor, informing the requestor that the loan will be reviewed. Do this by updating the reply activity that follows the Invoke Loan Approver activity just deleted.
Next, format a message indicating that the loan is now under review. Do this by defining the data properties associated with the Reply activity. This implicitly builds an Assign statement that initializes the message variable.
  1. 1. Select the Return Approval Response reply activity and rename it to Under Review.
  2. 2. Select the Under Review activity.
  3. 3. In the Properties view for this activity, select the Data tab.
  4. 4. Change the Assignment from Single Variable to XPaths.
  5. 5. Press the Add button to create a new XPath copy expression.
  6. 6. Edit the XPath expression as follows:
  7. editing the under review literal
  8. 7. Because you are allocating a literal value for the entire content of the approval variable, there's no need to specify a value for the To Path part of the assignment.
  9. 8. Delete the approver variable from the Variables section in the Outline view. It is no longer needed.
Your process should look like this:
Under review