Table of Contents

Search

  1. Preface
  2. Welcome to Informatica Process Developer
  3. Using Guide Developer for the First Time
  4. Getting Started with Informatica Process Developer
  5. About Interfaces Service References and Local WSDL
  6. Planning Your BPEL Process
  7. Participants
  8. Implementing a BPMN Task or Event in BPEL
  9. Implementing a BPMN Gateway or Control Flow
  10. Using Variables
  11. Attachments
  12. Using Links
  13. Data Manipulation
  14. Compensation
  15. Correlation
  16. What is Correlation
  17. What is a Correlation Set
  18. Creating Message Properties and Property Aliases
  19. Adding a Correlation Set
  20. Deleting a Correlation Set
  21. Adding Correlations to an Activity
  22. Rules for Declaring and Using Correlation Sets
  23. Correlation Sets and Engine-Managed Correlation
  24. Event Handling
  25. Fault Handling
  26. Simulating and Debugging
  27. Deploying Your Processes
  28. BPEL Unit Testing
  29. Creating POJO and XQuery Custom Functions
  30. Custom Service Interactions
  31. Process Exception Management
  32. Creating Reports for Process Server and Central
  33. Business Event Processing
  34. Process Central Forms and Configuration
  35. Building a Process with a System Service
  36. Human Tasks
  37. BPEL Faults and Reports

Designer

Designer

Using Expressions for Role Assignments

Using Expressions for Role Assignments

Select the value of the Role assignment: literal, expression, or Logical People Group.
Use the Expression option to write a conditional expression for selecting task or notification-related roles. The expression can be based on the input data of a People activity. For example, if you are invoking a service to retrieve identities, you can pass them into the potential owners or administrators identities.
The expression can include a process variable or it can be composed using WS-HT custom XPath functions, described in
Custom Functions
.
To Add an Expression for a Task or Notification Role:
  1. From the Outline View, select task or notification.
  2. In the Assignment tab of the Properties view, select a role, such as
    potential owners
    .
  3. In the Value column, click (
    ...
    ).
  4. Select Expression as the Source, and then select
    Expression Builder
    .
  5. In the Expression Builder, select a Human Task (WS-HT) custom function or other variable in creating an expression.
  6. Select the users or groups for the role.
XML Syntax
<htd:from expressionLanguage="anyURI"?>     expression </htd:from>
Example: Expression for a Task’s Role Assignment
<htd:potentialOwners>    <htd:from>$voters/users/user[i]</htd:from> </htd:potentialOwners>
The potential owners definition is contained within a For Each activity.
Example: Using a WS-HT Custom Function
:
<htd:potentialOwners>     <htd:from>         htd:getInput("part1")/approvers     </htd:from> </htd:potentialOwners> <htd:businessAdministrators>     <htd:from>         htd:except(htd:getInput("part1")/admins,         htd:getInput("part1")/globaladmins[0])     </htd:from> </htd:businessAdministrators>
The WS-HT custom function
getInput
returns a list of potential owners defined as the child element
approvers
in
part1
of the task's input message. The business administrators group includes
globaladmins
and excludes
admins
.
Example: A Notification's Role Assignment
<htd:peopleAssignments>   <htd:recipients>    <htd:from>      htd:getPotentialOwners("ApproveClaim")    </htd:from>   </htd:recipients> </htd:peopleAssignments>
Example: XQuery
<htd:potentialOwners>  <htd:from>   <htd:literal>    <ht:organizationalEntity      xmlns:ht='http://www.example.org/WS-HT'>     <ht:groups>      <ht:group>{data($creditInformation/loan:loanTypeGroup)}      </ht:group>     </ht:groups>    </ht:organizationalEntity>      </ht:literal>    </ht:from> </ht:potentialOwners>

0 COMMENTS

We’d like to hear from you!