Skip to content

Commit 1000926

Browse files
committed
edit
1 parent af2f92b commit 1000926

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

temporal-sdk/src/main/java/io/temporal/internal/statemachines/WorkflowStateMachines.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -484,14 +484,14 @@ private void handleSingleEvent(HistoryEvent event, boolean lastTask, boolean has
484484
}
485485

486486
/**
487-
* Handles command event. Command event is an event which is generated from a command emitted by a
488-
* past decision. Each command has a correspondent event. For example ScheduleActivityTaskCommand
489-
* is recorded to the history as ActivityTaskScheduledEvent.
487+
* Handle a command event. A command event is an event which was generated by a command emitted by
488+
* a past event. Each command has precisely one corresponding event. For example a
489+
* ScheduleActivityTask command gives rise to an ActivityTaskScheduled history event.
490490
*
491-
* <p>Command events always follow WorkflowTaskCompletedEvent.
491+
* <p>Command events always follow a WorkflowTaskCompleted event.
492492
*
493-
* <p>The handling consists from verifying that the next command in the commands queue matches the
494-
* event, command state machine is notified about the event and the command is removed from the
493+
* <p>The handling consists of verifying that the next command in the commands queue matches the
494+
* event, the command state machine is notified about the event and the command is removed from the
495495
* commands queue.
496496
*/
497497
private void handleCommandEvent(HistoryEvent event) {

0 commit comments

Comments
 (0)