Skip to content

Commit 00fb46c

Browse files
author
Liang Mei
committed
Add comments
1 parent 0f57b49 commit 00fb46c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main/java/com/uber/cadence/samples/hello/HelloSaga.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,10 @@ public void compensate(int amount) {
6464
public interface SagaWorkflow {
6565
/**
6666
* Main saga workflow.
67+
* Here we execute activity operation twice (first from a child workflow, second directly using
68+
* activity stub), add three compensation functions, and then throws some exception in workflow code.
69+
* When we catch the exception, saga.compensate will run the compensation functions according
70+
* to the policy specified in SagaOptions.
6771
*/
6872
@WorkflowMethod
6973
void execute();

0 commit comments

Comments
 (0)