First page Back Continue Last page Graphics

Specifying Task Flow Return Options


Notes:

Specifying Task Flow Return Options

If the called ADF bounded task flow is able to start a new transaction (based on the transaction option that you selected), you can specify whether the transaction should be committed or rolled back when the task flow returns its caller. The table at the top of the slide shows the requirements to specify commit or rollback for each transaction option.

The commit and rollback options are set on the task flow return activity that returns control back to the calling task flow. You use the Property Inspector in the End Transaction property on the Behavior tab. The same task flow that starts a transaction must also resolve the transaction.

In a called task flow definition, you can specify two different return task flow activities that result in either committing or rolling back a transaction in the called ADF bounded task flow. Each of the task flow return activities passes control back to the same calling task flow. The difference is that one task flow return activity specifies the commit option, whereas the other specifies the rollback option.

In the example in the slide, if transaction processing successfully completes, the submit control flow rule passes to the PlaceOrder task flow return activity, which specifies options to commit the transaction. If the transaction is cancelled before completion, the cancel control flow rule passes control to the CancelOrder task flow activity, which specifies options to roll back the transaction.