Now that you've defined the human task, the last step is to create a people activity in the process that uses the task. Although you've already defined most of the details of the human interaction through setting properties associated with the task, the people activity has a few properties of its own as well, and you need to set them as well.
In the Participants view, select the approveTask. Drag it from the Participants view to a position after the
Under Review
activity:
Select the people activity, and the associated Properties view. Edit the properties for the activity as follows:
On the People Activity tab, change the name to
ReviewLoan
. Select a color, such as orange.
On the Assignment tab, no changes are required. Note that the role assignment information that was entered during task definition has been propagated to the people activity automatically. It can be overridden here if desired.
The Schedule tab allows you to control when the activity is executed, and how long it is allowed to take. These parameters are separate from the escalation deadlines that are part of the task definition, and all are taken into account at runtime. Set an Expiration expression for a task duration of
'PT180M'
, the maximum allowed duration for the people activity.
On the
Input
tab:
In the
Assignment
picklist, select
Single Variable
.
In the
Variable
picklist, select
creditInformation
.
On the Output tab:
In the
Assignment
picklist, select Single Variable.
In the
Variable
picklist, declare a new output variable as follows:
Select
New Variable
... and assign the following values:
Variable Name
:
approve-task
Scope
: Accept the default value of Process
Variable Type
: Accept the default value of Element
You have now completed the definition of both a human task for loan application review, and a people activity using that task. You've added the people activity to the process at the appropriate location. In the final part of the process, you will notify the Customer Service Department of the loan approval decision, so that they can inform the customer.