Designer Sample Orchestration Project

Designer Sample Orchestration Project

Step 2. Create the loan approval Human Task

Step 2. Create the loan approval Human Task

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.
  1. 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.
  2. Expand the
    loanProcessHuman - Imported Services
    then the
    LoanApproval
    to display the
    approve
    operation, select it and press OK.
    Under review
    A new task will appear in the Participants view, under
    loanreps
    , called
    Task1
    .
  3. Select
    Task1
    so that is displayed in the
    Properties
    view. Edit the value of the
    Name
    property to
    approveTask
    .
  4. Set the Priority to 3. Your task properties should look similar to the following:
  5. 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
      Presenation parameters
  6. Still at the Presentation tab, define the
    loansummary
    substitution variable that was just entered in the Subject area:
    1. Press the ellipsis button at the right of the panel.
    2. 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.
    3. Click on the
      Parameter
      name to make it editable, and enter
      loansummary
      .
    4. Leave the Type as
      string
      .
    5. Click on the expression to make it editable, and enter the following value:
      concat(htd:getInput('Document')/loan:lastName , ", ", htd:getInput('Document')/loan:firstName , "; $", htd:getInput('Document')/loan:amountRequested )
      Your dialog should look similar to this:
      approve task presentation parms

0 COMMENTS

We’d like to hear from you!