Dashboard > GreenPepper Demo > Home > Bank Scenario
  GreenPepper Demo Log In View a printable version of the current page.  
  Bank Scenario
Added by Francois Denommee, last edited by Francois Denommee on Oct 28, 2009  (view change)
Labels: 
(None)

Begin Info
Bank Scenario Example

The main purpose of this example is to show you :

  • How to handle business flows using the 'Scenario' Interpreter
End Info
Import
com.greenpepper.confluence.demo.bank.scenario
GreenPepper.Confluence.Demo.Bank.Scenario

Account Management Example

Scenario Bank
I have a checking account 12345-67890 under the name of Bart Simpson
The balance of account 12345-67890 is $0.00
I deposit $100.00 in account 12345-67890
The balance of account 12345-67890 is $100.00
I withdraw $50.00 from account 12345-67890
The balance of account 12345-67890 is $50.00
I can't withdraw $75.00 from account 12345-67890
The balance of account 12345-67890 is $50.00
I can withdraw $25.00 from account 12345-67890
Show the balance of account 12345-67890
end

Opening different account type

Scenario Bank
I have a checking account 12345-67890 under the name of Bart Simpson
I have a savings account 54321-09876 under the name of Lisa Simpson
set of opened accounts
number type owner name
12345-67890 checking Bart Simpson
54321-09876 savings Lisa Simpson
end

Freezing an Account

Scenario Bank
I have a savings account 11111-22222 for Homer Simpson with balance of $1546.23
I can withdraw $100.00 from account 11111-22222 using ATM
Freeze account 11111-22222
I can't witdraw $100.25 from account 11111-22222 using ATM
I can deposit $200.00 in account 11111-22222
end

Source Code

Begin Info
End Info

DEMONSTRATION LICENSE - This Confluence site is for demonstration purposes only. Evaluate Confluence today.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.4.3 Build:#705 Mar 21, 2007) - Bug/feature request - Contact Administrators