# @(#)65    1.6  src/examples/bank/pm/readme, examples.src, os2dce21.dss, 960602a.1  5/12/96  06:41:31
#
# COMPONENT_NAME:  examples.src
#
# FUNCTIONS:
#
# ORIGINS: 27
#
#
# (C) COPYRIGHT International Business Machines Corp. 1992, 1994
# All Rights Reserved
# Licensed Materials - Property of IBM
#
# US Government Users Restricted Rights - Use, duplication or
# disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
#
##############################################################################

Refer to the main Examples Readme file in opt\dcelocal\examples
for information on how to build these examples.

Steps to setup/run Presentation Manager Bank DCE Demo
-----------------------------------------------------

1)  dce_login as cell_admin and run bnksetup.  It will
    create an account with the bank name you will be asked to input
    as well as the bank user accounts (demo1 - demo10). We use these user
    accounts to log into the bank server. This script assumes the password
    for cell_admin is -dce-.

    --->  dcelogin cell_admin -dce-

    --->  bnksetup
          At prompt, enter -> Hibernia

2)  Start the bank server (bankd).  Issue the following command:
    bankd <bank name>  where <bank name> is the name you defined earlier.

    --->  bankd Hibernia

    Wait until the bank issues the Listening for remote requests . . .
    message before proceeding to the next step.

3)  In another root window, dce_login as cell_admin.  Start the bank client
    (bank).  The reason for the dce_login is so the bank can import bindings
    from the CDS namespace.  Wait until the PM interface comes up.

    --->  dcelogin cell_admin -dce-

    --->  bank

4)  When the Action menu item Start Transaction is selected, you should now
    be presented with the Available Banks panel which lists the available
    banks.  The available banks will be determined by how many bankd's you
    started.  Select a bank.

5)  You should now be presented with the Authorization panel, asking for an
    Account Name and Password.  Select the Account Name field (by placing
    mouse in field and clicking the left mouse button) and enter the name of
    one of the 10 accounts we created with bnksetup (demo1 - demo10).
    Select the Password field and enter the account password in the Password
    field (all passwords are demo).  You will not be able to see the password
    being entered.  Then select the Enter button on the panel.  The bank is now
    going off to DCE Security and determining if the account exists.

6)  You should now be presented with an Operation panel listing the functions
    you can perform.  The account must first be created.  So select the Create
    function button on the panel.  A Transaction Completed panel should come
    up.  Select Next Transaction.  This will take you back to the Operations
    panel.

7)  Now select the Deposit function button.  You will be presented with an
    Account Type panel.  Select Checking.  Now an Amount panel comes up.
    Select the Amount field and enter the amount.  Enter only whole numbers.
    The bank is not ready to handle cents yet.  Enter something like 100.
    Then select the Enter button on the panel.  The Transaction Complete
    panel appears.

8)  Select Next Transaction.  Select Deposit again.  Now select CD account.
    Select the Amount field and enter 100 again.  You will notice that this
    transaction is rejected and an error_popup appears saying the amounts
    must be multiples of $500.00.  This is the proper behavior.  The manager
    routine to deposit in CD and IRA type accounts requires amounts that are
    multiples of $500.00.  To get rid of the error_popup, select OK.  Select
    Next Transaction.

9)  From this point on, just play around with the different operations.  One
    other thing to note about CD and IRA accounts is that if you attempt to
    withdraw from them, attempts will be unsuccessful until the account is
    at least 10 minutes old.  Obviously, I was trying to mimic the real world
    where you can't withdraw from these accounts until X number of years has
    passed from account creation.

10) When you have had enough, you may select Exit at the lower left of the
    panels.  To get back to the Available Banks panel, you may select Cancel
    from the lower left of the panels.  You will also notice Help at the
    lower right of the panels.  Select it and you will receive help info
    about the panel that you are currently at.

11) To terminate the bank server (bankd), either ctrl-C the window it's
    running in or send a signal to it via kill.
