Lesson 1.6: Create the Transfer Money activity diagram
About this task
The Transfer Money activity diagram shows the workflow that occurs when either a customer or teller clicks Transfer Money on the main menu of the online user interface. The CityBank system processes the transaction to determine whether or not the accounts exist and whether or not the amount of money is less than 100 dollars, because a limit exists for how much money can be transferred in a single transaction. The CityBank system either completes the transaction or displays a message to state that the transaction is invalid.
Create the Customer/Teller activity partition
Procedure
- In the Project Explorer view, expand Account Operations, right-click Transfer Money; then click .
- Type Transfer Money activity diagram and press Enter.
- Right-click in the diagram editor; then click .
- In the Project Explorer view, click the Partition element and, in the Properties view, type the name Customer/Teller.
- In the Palette, double-click Initial and name the element Initial node.
- In the diagram editor, click the Initial node element and drag it to the top-left corner of the editor. This element is the starting point of your activity diagram.
- In the Palette, double-click Action and name the action Customer/Teller selects Transfer Money from menu.
- In the diagram editor, click the Customer/Teller selects Transfer Money from menu action and drag it directly below the initial node.
- In the Palette, click Flow.
- In the diagram editor, click the Initial node element and drag the cursor to the Customer/Teller selects Transfer Money from menu action.
Results
You created the activity partition and workflow for the customer and teller. Your diagram should look similar to the following figure:

Create the System activity partition
Procedure
- Right-click in the diagram editor; then click .
- In the Project Explorer view, click the Partition element and, in the Properties view, name the partition System.
- In the Palette, double-click Action and name the action Validate accounts exist and transfer amount is < current balance.
- In the diagram editor, click the Validate accounts exist and transfer amount is < current balance action, and drag it directly to the right of the Customer/Teller selects Transfer Money from menu action.
- In the Palette, click Flow.
- In the diagram editor, click the Customer/Teller selects Transfer Money from menu action and drag the cursor to the Validate accounts exist and transfer amount is < current balance action.
Results
You created the activity partition and workflow for the system. You can now add the system logic that determines the system response when a teller or customer requests to transfer money.
Create the system logic to transfer money
About this task
The system logic states that a money transfer can occur if the transfer amount is less than the current balance of the bank account.
To create the system logic that transfers money if sufficient funds exist in the account:
Procedure
Create a message to display for an invalid transaction
Procedure
Create a summary message for a transaction
Procedure
- In the Palette, double-click Action and name the action Display transfer summary.
- In the diagram editor, drag the Display transfer summary action below the Debit Customer account action.
- In the Palette, click Flow.
- In the diagram editor, click the Debit Customer account action and drag the cursor to the Display transfer summary action.
- In the diagram editor, click the Activity Final node element and drag it to the bottom of the editor, into the System activity partition. This is the end point of your activity diagram.
- In the Palette, click Flow.
- In the diagram editor, click the Display invalid transaction message action and drag the cursor to the Activity Final node element.
- In the Palette, click Flow.
- In the diagram editor, click the Display transfer summary action and drag the cursor to the Activity Final node element.
Results
You created the Transfer Money activity diagram. Your diagram should look similar to the following figure:

(Optional) Create a link to the Transfer Money activity diagram in the Account Operations use-case diagram
About this task
You can insert a link in the Account Operations use-case diagram that leads to the Transfer Money diagram. This link can increase the readability of the model by enabling you to move between the associated diagrams.
To create a link to the Transfer Money activity diagram:
Procedure
- In the Project Explorer view, expand the Account Operations package and double-click Account Operations Use Cases.
- In the Project Explorer view, click the Transfer money activity diagram, and drag it into the Account Operations Use Cases diagram, to the right of the Transfer use case.