You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/documentation/server_admin/topics/workflows/defining-conditions.adoc
+2-3Lines changed: 2 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,8 +3,7 @@
3
3
[[_workflow_conditions_]]
4
4
= Defining conditions
5
5
6
-
The optional `if` setting allows you to define a condition using an expression language that must be met for the workflow to be triggered.
7
-
It allows more fine-grained control over when a workflow execution should be created based on the context of the event.
6
+
The optional `if` setting allows you to define the conditions the target resource must meet in order for the workflow to be triggered.
8
7
9
8
Conditions provide fine-grained control over whether a workflow execution should be created.
10
9
They allow you to inspect the context of the event and the state of the resource.
@@ -16,7 +15,7 @@ If the condition evaluates to `true`, the workflow execution is created. If it e
16
15
the expression from the `on` setting evaluates to `true`.
17
16
18
17
Just like the `on` setting, the condition is written using an expression that supports a variety of checks on the realm resource associated with the event.
19
-
For instance, considering a `user_group_membership_created` event, you can define a condition to trigger the workflow only if the user has a specific attribute:
18
+
For instance, considering a `user_created` event, you can define a condition to trigger the workflow only if the user has a specific attribute:
Copy file name to clipboardExpand all lines: docs/documentation/server_admin/topics/workflows/listening-workflow-events.adoc
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,10 +17,10 @@ As you can see, events are functions in an expression and, as such, they also su
17
17
For example, to trigger a workflow when a user is added to a specific group, you can use the following expression:
18
18
19
19
```yaml
20
-
on: user_group_membership_created('/mygroup')
20
+
on: user_group_membership_added('/mygroup')
21
21
```
22
22
23
-
You can also combine multiple conditions using logical operators. For example, to trigger a workflow when a user is created or when authenticates, you can use:
23
+
You can also combine multiple conditions using logical operators. For example, to trigger a workflow when a user is created or when they authenticate, you can use:
24
24
25
25
```yaml
26
26
on: user_created or user_authenticated
@@ -47,10 +47,10 @@ At the moment, workflows support event functions for the following realm resourc
47
47
| `user_created` | User is added to the realm. | None
48
48
| `user_removed` | User is removed from the realm. | None
49
49
| `user_authenticated` | User authenticates to the realm. | The client id of the client acting on behalf of the user when authenticating.
50
-
| `user_federated_identity_created` | User is federated or when the account is linked to an identity provider. | The identity provider alias.
50
+
| `user_federated_identity_added` | User is federated or when the account is linked to an identity provider. | The identity provider alias.
51
51
| `user_federated_identity_removed` | User's federated identity is removed or unlinked from an identity provider. | The identity provider alias.
52
52
| `user_role_granted` | A role is granted to the user. | The role name.
53
53
| `user_role_revoked` | A role is revoked from the user. | The role name.
54
-
| `user_group_membership_created` | User joined a group. | The group name or path
54
+
| `user_group_membership_added` | User joined a group. | The group name or path
55
55
| `user_group_membership_removed` | User is removed from a group. | The group name or path
0 commit comments