Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/events/src/main/java/events/EventExample.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public static void main(String[] args) throws IOException {
WorkflowInstance waitingInstance = listenDefinition.instance(Map.of());
waitingInstance
.start()
.thenAccept(node -> logger.info("Waiting instance completed with result {}", node));
.thenAccept(output -> logger.info("Waiting instance completed with result {}", output));
logger.info("Listen instance waiting for proper event, Status {}", waitingInstance.status());
logger.info("Publishing event with temperature 35");
emitDefinition.instance(Map.of("temperature", 35)).start().join();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public static void main(String[] args) throws IOException {
appl.workflowDefinition(WorkflowReader.readWorkflowFromClasspath("get.yaml"))
.instance(Map.of("petId", 10))
.start()
.thenAccept(node -> logger.info("Workflow output is {}", node));
.thenAccept(output -> logger.info("Workflow output is {}", output));
logger.info("The request has been sent, this thread might continue doing stuff");
}
}
Expand Down
Loading