Skip to content

Commit

Permalink
only WorkflowActivity, no CompensatableWorkflowActivity
Browse files Browse the repository at this point in the history
Signed-off-by: Sky Ao <[email protected]>
  • Loading branch information
skyao committed Dec 19, 2023
1 parent 1ddf755 commit 0dc1157
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 0011-S-Saga-pattern-support-in-dapr-workflow.md
Original file line number Diff line number Diff line change
Expand Up @@ -546,10 +546,10 @@ The customer must write a corresponding compensation activity for each activity

```java
public class ProcessPaymentActivity implements WorkflowActivity {......}
public class ProcessPaymentCompensationActivity implements CompensatableWorkflowActivity {......}
public class ProcessPaymentCompensationActivity implements WorkflowActivity {......}

public class UpdateInventoryActivity implements WorkflowActivity {......}
public class UpdateInventoryCompensationActivity implements CompensatableWorkflowActivity {......}
public class UpdateInventoryCompensationActivity implements WorkflowActivity {......}
```

These compensation activities should also be registered like normal activities:
Expand Down

0 comments on commit 0dc1157

Please sign in to comment.