Skip to content

Commit d1966d3

Browse files
committed
PR feedback
1 parent fbb5764 commit d1966d3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/content/guides/custom-steps.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ You can reference your custom step's inputs using the `getInputs()` method shown
1414
app.function("sample_function", (req, ctx) -> {
1515
app.executorService().submit(() -> {
1616
try {
17-
var userId = req.getEvent().getInputs().get("user_id").asString();
18-
var response = ctx.client().chatPostMessage(r -> r
17+
String userId = req.getEvent().getInputs().get("user_id").asString();
18+
ChatPostMessageResponse response = ctx.client().chatPostMessage(r -> r
1919
.channel(userId) // sending a DM
2020
.text("Hi! Thank you for submitting the request! We'll let you know once the processing completes.")
2121
);
22-
var outputs = new HashMap<String, Object>();
22+
Map<String, Object> outputs = new HashMap<String, Object>();
2323
outputs.put("channel_id", response.getChannel());
2424
outputs.put("ts", response.getTs());
2525
ctx.complete(outputs);
@@ -74,4 +74,4 @@ The corresponding function definition section of the app manifest for the preced
7474
}
7575
```
7676

77-
Once your custom step is defined in your app's manifest and implemented in code, it is discoverable in Workflow Builder when you **Add Step** and search for the name of your app.
77+
Once your custom step is defined in your app's manifest and implemented in code, it is discoverable in Workflow Builder when you **Add Step** and search for the title of your step or name of your app.

0 commit comments

Comments
 (0)