When you choose to establish team members by using an expression,
you can define rules to determine those members.
Before you begin
To perform this task, you must open the
Process Designer desktop
editor.
This procedure triggers dynamic group creation, which can
be time consuming. You can configure IBM® Business
Process Manager to
deactivate these triggers. See Deactivating dynamic group updates.
Procedure
To define rules, follow these steps.
- Open the Process Designer desktop
editor.
- Open the team that you want to edit.
- Click Add Rule to choose the type
of rule you want.
When you define team rules, you have
the following types from which to choose:
Table 1. Rule
types available for defining teamsRule type |
Description |
Participant Rule |
Enables user selection according to team membership. |
User Attribute Rule |
Enables user selection that is based on user attributes. |
Expression Rule |
Enables the selection of users who match a particular expression
that you provide. |
- Supply the necessary information for the type of rule that
you choose.
For a Participant Rule, supply the input that you want for
the following specification:
Who belong to
team select participant.
Table 2. Input
required for a Participant RuleExpression |
Action |
belong |
Click belong to choose either belong or do
not belong. |
select participant |
Click select participant to choose an
existing team. |
For a User Attribute Rule, supply the
input that you want for the following specification.
Who have
an attribute select user attribute equal to enter
value.
Table 3. Input required for a User
Attribute RuleExpression |
Action |
select user attribute |
Click select user attribute to
select an existing user attribute definition. |
equal to |
Click equal to to choose from: equal
to, not equal to, less
than, less than or equal to, greater
than, or greater than or equal to. |
enter value |
Click enter value to display a field
in which you can enter either an IBM Business Process Manager variable
or a JavaScript expression that produces the value that you want to
compare. Be sure to surround any strings in the expression with double
quotation marks. |
For example, when you select
Using
Expression and define a User Attribute Rule, you can enter
an expression that returns a default value when the complex variable
is null and the attribute for the variable otherwise. For example,
if the user attribute is a string, the expression can be:
tw.local.processData==null ?
"":tw.local.processData.targetView.complexity
Note: Users
that do not have a value set for the selected user attribute definition
are ignored for any of the operators.
For an Expression Rule, supply the input
that you want for the following specification:
Who match expression enter
value.
Table 4. Input required for
an Expression RuleExpression |
Action |
match |
Click match to choose either match or do
not match. |
enter value |
Click enter value to display a field
in which you can enter either an IBM BPM variable
or a JavaScript expression that produces the value that you want to
compare. Be sure to surround any strings in the expression with double
quotation marks. The expression must evaluate to a specific user name. |