The example code given in the documentation for the [`@WorkflowInterface`](https://www.javadoc.io/doc/io.temporal/temporal-sdk/latest/io/temporal/workflow/WorkflowInterface.html) annotation would not behave as described in the accompanying text. See [this forum post](https://community.temporal.io/t/trying-to-understand-example-in-the-workflowinterface-annotation-documentation/13559/2) for background details.