Skip to content

Commit

Permalink
Add reference to WorkflowStepBuilder in docs (#389)
Browse files Browse the repository at this point in the history
  • Loading branch information
misscoded authored Jul 2, 2021
1 parent b16d4cf commit c61206d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/_steps/creating_workflow_step.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ The configuration object contains three keys: `edit`, `save`, and `execute`. Eac

After instantiating a `WorkflowStep`, you can pass it into `app.step()`. Behind the scenes, your app will listen and respond to the workflow step’s events using the callbacks provided in the configuration object.

Alternatively, workflow steps can also be created using the `WorkflowStepBuilder` class alongside a decorator pattern. For more information, including an example of this approach, [refer to the documentation](https://slack.dev/bolt-python/api-docs/slack_bolt/workflows/step/step.html#slack_bolt.workflows.step.step.WorkflowStepBuilder).

</div>

<div>
Expand Down
2 changes: 2 additions & 0 deletions docs/_steps/ja_creating_workflow_step.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ order: 2

`WorkflowStep` のインスタンスを作成したら、それを`app.step()` メソッドに渡します。これによって、アプリがワークフローステップのイベントをリッスンし、設定オブジェクトで指定されたコールバックを使ってそれに応答できるようになります。

また、デコレーターとして利用できる `WorkflowStepBuilder` クラスを使ってワークフローステップを定義することもできます。 詳細は、[こちらのドキュメント](https://slack.dev/bolt-python/api-docs/slack_bolt/workflows/step/step.html#slack_bolt.workflows.step.step.WorkflowStepBuilder)のコード例などを参考にしてください。

</div>

<div>
Expand Down

0 comments on commit c61206d

Please sign in to comment.