Table of Contents

Search

  1. Preface
  2. Part 1: Using Process Developer
  3. Part 2: Creating and Modifying Processes
  4. Part 3: Functions, Events, Errors, and Correlation
  5. Part 4: Testing and Deployment
  6. Part 5: Process Central and Process Server (On-Premises)

Process Developer

Process Developer

Default-Order Compensation Example

Default-Order Compensation Example

Default compensation processing is available from the compensate activity with the form
<compensate/>
. The activity invokes the compensation handlers on all of the enclosed scopes that are eligible for compensation. The scope's compensation handlers are invoked in the reverse order of completion. If a scope executed multiple times in a
<while>
loop, it is eligible for each execution instance where it completed without having a fault generated.
The following example shows how a confirmed purchase order is canceled. The
CancelPurchase
operation compensates the
SyncPurchase
operation in an already completed Invoke activity.
<scope> <compensationHandler> <invoke partnerLink="Seller" portType="SP:Purchasing" operation="CancelPurchase" inputVariable="getResponse" outputVariable="getConfirmation"> <correlations> <correlation set="PurchaseOrder" pattern="request"/> </correlations> </invoke> </compensationHandler> <invoke partnerLink="Seller" portType="Sell:Purchasing" operation="SyncPurchase" inputVariable="sendPO" outputVariable="getResponse"> <correlations> <correlation set="PurchaseOrder" initiate="yes" pattern="request"/> </correlations> </invoke> </scope>

0 COMMENTS

We’d like to hear from you!