A human task will, through the web user interface that we will discuss later, show specific information to the user. In our case, the human task will show the selected bookstore to the user and require an approval. Therefore, we need to configure the human task payload. The payload specifies the data that is sent to the human task and the outcome from the human task. We need to specify the XML element from the corresponding XML Schema.
We proceed as follows:
BookstoreApproval
human task definition, we need to select the Data tab to the left of Task Definition Editor. We have to set the payload, as the approval manager will need data about the book and the selected bookstore to decide whether to approve the warehousing or not.BookData
element which is defined in the BookwarehousingBPEL.xsd
schema.SelectedBookstore
. We will check Editable via worklist, as we will enable that the user modifies the selected bookstore in the human task. The final data payload configuration should look like this:We have configured the human task payload for our human task definition. We have selected two data elements as human task payload: the book data, for which we have used the BookData
element from the BookwarehousingBPEL.xsd
schema, and SelectedBookStore
of simple XML type string
. Next, we will assign the human task to the user who should fulfill it.