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