Skip to content

Commit 9f68471

Browse files
authored
Clarified Slack integration & logic of branches (windmill-labs#123)
1 parent f9f403e commit 9f68471

File tree

5 files changed

+28
-2
lines changed

5 files changed

+28
-2
lines changed
Loading
Loading
Loading

blog/2023-02-13-slack-integration/index.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,31 @@ on Windmill. The runs will be permissioned through the `g/slack` global group.
9292

9393
![Run info](./6-run-info.png)
9494

95+
:::
96+
97+
:::danger
98+
99+
You won't be able to have Slack interact with your resources and variables before adding them to the `slack` group that was automatically created by Windmill after you set up your Slack workspace on Windmill.
100+
101+
To give the permission, go to "Resources" (and "Variables") menu, click on `Share`, `Group` and pick `slack`.
102+
103+
<br/>
104+
105+
![Share to slack group](./10-slack_group.png)
106+
107+
<br/>
108+
109+
One simplier way to handle permissions is to host resources and variables on a folder that is part of the group `slack`.
110+
111+
<br/>
112+
113+
![Share variable to folder](./11-variable_to_folder.png)
114+
115+
<br/>
116+
117+
![Share folder to group](./12-folder_to_group.png)
118+
119+
95120
:::
96121

97122
## Action on Slack from Windmill

docs/flows/13_flow_branches.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,12 @@ There are two types of branches:
77

88
## Branch one
99

10-
A branch one is a special type of step that allows you to execute a branch if a condition is true. If the condition is false, the default branch will be executed. Each branch is a flow.
10+
A branch one is a special type of step that allows you to execute a branch if a condition is true. If the condition is false, the default branch will be executed. If several branches are true, the first one will execute. Each branch is a flow.
1111

1212
Clicking on one branch will open the branch editor. You can configure the:
1313

14-
- **Predicate expression**: the expression that will be evaluated to determine if the branch should be executed.
14+
- **Summary**: gives a name to the branch, useful when several branches. By default Branch 1, 2, 3...
15+
- **Predicate expression**: the expression that will be evaluated to determine if the branch should be executed. It can be simple `true`/`false` but also comparison operators (`results.c.command === 'email'`, `flow_input.number >= 2` etc.)
1516

1617
![Branch one step](../assets/flows/flow_branch_one.png)
1718

0 commit comments

Comments
 (0)