152153154155156157158159160161162
// Query for half the balance final Integer amountToTransfer = context.availableFunds() / 2; // Transfer from savings to checking context.transfer( amountToTransfer ); } finally { uow.discard(); }
180181182183184185186187188189190
// Query for double the balance final Integer amountToTransfer = context.availableFunds() * 2; // Transfer from savings to checking context.transfer( amountToTransfer ); } finally { uow.discard(); }