|
36 | 36 | * annotations: {@literal @}WorkflowMethod, {@literal @}SignalMethod or {@literal @}QueryMethod |
37 | 37 | * |
38 | 38 | * <p>An interface annotated with WorkflowInterface can extend other interfaces annotated with |
39 | | - * WorkflowInterface having that it can have at most one method annotated with |
| 39 | + * WorkflowInterface having that it can have <b>at most one</b> method annotated with |
40 | 40 | * {@literal @}WorkflowMethod including all inherited methods. |
41 | 41 | * |
42 | 42 | * <p>The prefix of workflow, signal and query type names is the name of the declaring interface |
43 | 43 | * annotated with WorkflowInterface. If a method is declared in non annotated interface the prefix |
44 | 44 | * comes from the first sub-interface that has the WorkflowInterface annotation. |
45 | 45 | * |
46 | | - * <p>A workflow implementation object must have exactly one method annotated with |
| 46 | + * <p>A workflow implementation object must have <b>exactly one</b> method annotated with |
47 | 47 | * {@literal @}WorkflowMethod inherited from all the interfaces it implements. |
48 | 48 | * |
49 | 49 | * <p>Example: |
|
61 | 61 | * {@literal @}SignalMethod |
62 | 62 | * b(); |
63 | 63 | * |
64 | | - * {@literal @}SignalMethod // must to define the type of the inherited method |
| 64 | + * {@literal @}SignalMethod // must define the type of the inherited method |
65 | 65 | * aa(); |
66 | 66 | * } |
67 | 67 | * |
|
92 | 92 | * <p> |
93 | 93 | * |
94 | 94 | * <ul> |
95 | | - * <li>B_a signal handler |
96 | | - * <li>B_b signal handler |
97 | | - * <li>B_aa signal handler |
98 | | - * <li>C_c workflow main method |
99 | | - * <li>D_d query method |
| 95 | + * <li>a signal handler |
| 96 | + * <li>b signal handler |
| 97 | + * <li>aa signal handler |
| 98 | + * <li>c workflow main method |
| 99 | + * <li>d query method |
100 | 100 | * </ul> |
101 | 101 | * |
102 | | - * Note that methods <code>a()</code> and <code>aa()</code> are registered with "B_" prefix because |
103 | | - * interface <code>A</code> lacks the WorkflowInterface annotation. The client code can call signals |
104 | | - * through stubs to <code>B</code>, <code>C</code> and <code>D</code> interfaces. A call to crate a |
105 | | - * stub to <code>A</code> interface will fail as <code>A</code> is not annotated with the |
106 | | - * WorkflowInterface. |
| 102 | + * The client code can call signals through stubs to <code>B</code>, <code>C</code> and <code>D |
| 103 | + * </code> interfaces. A call to crate a stub to <code>A</code> interface will fail as <code>A |
| 104 | + * </code> is not annotated with the WorkflowInterface. |
107 | 105 | */ |
108 | 106 | @Retention(RetentionPolicy.RUNTIME) |
109 | 107 | @Target(ElementType.TYPE) |
|
0 commit comments