| A simple example showing how to make a transaction, and how to automatically log it. | | To make a transaction, go to the Question menu. then: | | * click on | | in account some-name change the balance some-balance1 by some-amount to some-balance2 | | then | | * click on some-amount | | * select Type in a value and type in say, 100, to add to the account | | * click on Ask | | * double click Make these changes to the agent data to confirm | | * then click anywhere in the page. | | Note that someone logged on as 'author' could edit the log table, and so alter the audit trail. | | But someone logged on as 'user' can only make transactions that add correct audit trail entries to the log. | | The rule to ERASE transactions is just present for demo convenience. Normally, there would be no such rule. the last transaction number for account some-name is some-transaction-number after transaction that-transaction-number the account that-name had a balance some-balance1 that-transaction-number + 1 = a-transaction-number1 that-balance1 + an-amount = some-balance2 add : after transaction that-transaction-number1 the account that-name had a balance that-balance2 ----------------------------------------------------------------------------------------------------- in account that-name change the balance that-balance1 by that-amount to that-balance2 after transaction some-transaction-number the account some-name had a balance some-balance that-transaction-number is greater than 0 del : after transaction that-transaction-number the account that-name had a balance that-balance ------------------------------------------------------------------------------------------------------- ERASE transaction that-transaction-number showing that the account that-name had a balance that-balance account some-name is active max some-number : the account that-name has a transaction that-number = some-last-number --------------------------------------------------------------------------------------- the last transaction number for account that-name is that-last-number after transaction this-number the account this-name had a balance this-balance ------------------------------------------------------------------------------- account that-name is active after transaction this-number the account this-name had a balance this-balance ------------------------------------------------------------------------------- the account that-name has a transaction that-number after transaction this-transaction-number the account this-name had a balance this-balance =========================================================================================== 0 Adrian Walker 0