Creating the withdraw operation
The withdraw operation has the following input and output:
Input - amount with double type
Input - account with BankAccount type
Output - newBalance with CashAmount type
Follow these steps to add the withdraw operation to the Bank interface:
Switch to the BankInterface editor.
Click the
Add Request Response Operation
button
.
Switch to the Properties view.
In the details section, click the
Description
tab.
In the
Name
field, type
withdraw
.
Switch to the BankInterface editor.
Click the
Add Input
button
.
Switch to the Properties view.
In the details section, click the
Description
tab.
In the
Name
field, type
amount
.
In the
Type
list, type
double
.
From the list, click
double
.
Switch to the BankInterface editor.
Click the
Add Input
button
.
Switch to the Properties view.
In the details section, click the
Description
tab.
In the
Name
field, type
account
. The
Data Type Selection
window opens.
In the
Filter by type, namespace, or file (? = any character, * = any String)
field, type
BankAccountBO
.
Click
BankAccountBO
.
Click
http://eMergedLibrary/com/emerged/portal - eMergedLibrary/com/emerged/portal/BankAccountBO.xsd
.
Click
OK
.
In the
Type
list, type
BankAccountBO [http://eMergedLibrary/com/emerged/portal]
.
Switch to the BankInterface editor.
Click the
Add Output
button
.
Switch to the Properties view.
In the details section, click the
Description
tab.
In the
Name
field, type
newBalance
. The
Data Type Selection
window opens.
In the
Filter by type, namespace, or file (? = any character, * = any String)
field, type
CashAmountBO
.
Click
CashAmountBO
.
Click
http://eMergedLibrary/com/emerged/portal - eMergedLibrary/com/emerged/portal/CashAmountBO.xsd
.
Click
OK
.
In the
Type
list, type
CashAmountBO [http://eMergedLibrary/com/emerged/portal]
.
Parent topic:
Creating the Bank interface
Previous topic:
Creating the deleteAccount operation
Next topic:
Creating the deposit operation