Time for action – specifying a human task payload

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:

  1. To specify the payload for our 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.
    Time for action – specifying a human task payload
  2. Under the Data section, we will click on the plus icon and select Add other parameter. The Add/Edit Task Parameter dialog opens:
    Time for action – specifying a human task payload
  3. First, we will add the book data. To achieve this, we will select Element and browse for the BookData element which is defined in the BookwarehousingBPEL.xsd schema.
    Time for action – specifying a human task payload
  4. Next, we will add the data about the selected bookstore. We have stored this data in a BPEL process variable of type string. Therefore, we need to add a string parameter:
    Time for action – specifying a human task payload
  5. We will name the parameter 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:
    Time for action – specifying a human task payload

What just happened?

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.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset