Now that you've declared the Logical People Groups, you can define its tasks. Start with WSDL defining the interactions. You can reuse the LoanApproval WSDL that was removed from the process earlier, but this time it will provide definitions for interaction with a person instead of a service.
In the Participants view, right click the
loanreps
Logical People Group, and select
New Human Task...
. The
Human Task
dialog opens, showing available port types. Remember that in WS-BPEL For People, people activities are just another type of service interaction, and they are declared in WSDL.
Expand the
loanProcessHuman - Imported Services
then the
LoanApproval
to display the
approve
operation, select it and press OK.
A new task will appear in the Participants view, under
loanreps
, called
Task1
.
Select
Task1
so that is displayed in the
Properties
view. Edit the value of the
Name
property to
approveTask
.
Set the Priority to 3. Your task properties should look similar to the following:
Select the Presentation side tab in the Properties view and set the following properties:
Display Name
:
Loan for review
Subject
:
Please look at this loan and approve or decline it. (for {$loansummary})
Type
:
default
Still at the Presentation tab, define the
loansummary
substitution variable that was just entered in the Subject area:
Press the ellipsis button at the right of the panel.
In the
Presentation Parameters
dialog that appears, press Add to add a new parameter. A new parameter called
param1
whose type is
string
will appear.
Click on the
Parameter
name to make it editable, and enter
loansummary
.
Leave the Type as
string
.
Click on the expression to make it editable, and enter the following value: