|
20 | 20 |
|
21 | 21 | /**
|
22 | 22 | * Workflow encapsulates the orchestration of activities and child workflows. It can also answer to
|
23 |
| - * synchronous queries and receive external events (also known as signals). |
| 23 | + * synchronous queries and receive other external requests (signals and updates). |
24 | 24 | *
|
25 | 25 | * <h2>Workflow Interface</h2>
|
26 | 26 | *
|
|
65 | 65 | * started, a new instance of the workflow implementation object is created. Then, one of the
|
66 | 66 | * methods (depending on which workflow type has been started) annotated with {@literal @}{@link
|
67 | 67 | * io.temporal.workflow.WorkflowMethod} is invoked. As soon as this method returns the workflow,
|
68 |
| - * execution is closed. While workflow execution is open, it can receive calls to signal and query |
69 |
| - * methods. No additional calls to workflow methods are allowed. The workflow object is stateful, so |
70 |
| - * query and signal methods can communicate with the other parts of the workflow through workflow |
71 |
| - * object fields. |
| 68 | + * execution is closed. While the workflow execution is open, it can receive calls to signal, update, |
| 69 | + * and query methods. No additional calls to workflow methods are allowed. The workflow object is |
| 70 | + * stateful, so query, signal, and update methods can communicate with the other parts of the workflow |
| 71 | + * through workflow object fields. |
72 | 72 | *
|
73 | 73 | * <h3>Calling Activities</h3>
|
74 | 74 | *
|
75 | 75 | * {@link io.temporal.workflow.Workflow#newActivityStub(Class)} returns a client-side stub that
|
76 |
| - * implements an activity interface. It takes activity type and activity options as arguments. |
| 76 | + * implements an activity interface. It takes an activity type and activity options as arguments. |
77 | 77 | * Activity options are needed only if some of the required timeouts are not specified through the
|
78 | 78 | * {@literal @}{@link io.temporal.activity.ActivityMethod} annotation.
|
79 | 79 | *
|
|
0 commit comments