Post by dejohnny on May 1, 2013 22:50:10 GMT -5
Use Cases can be an effective analysis tool for BA (Business Analyst). But, if not done right, they can be difficult to translate into real tangible programming code when implemented by a Developer.
Below is a short Use Case example with Main flows and alternate flows, showing how we can apply Business Rules explicitly inside the steps in these flows.
Below is a short Use Case example with Main flows and alternate flows, showing how we can apply Business Rules explicitly inside the steps in these flows.
UC2: Start a Project
Step 1: <user> requests MoneyGiftr.com home page <view>
IF
<HomeController> fails to present the home page to the <user>
IF
<HomeController> cannot find the page
THEN
<system> presents a 404 error page <view> to the <user>
IF
<HomeController> cannot determine what caused the error
THEN
<system> presents an Oops error page <view> to the <user>
IF
<HomeController> cannot process data or times out
THEN
<system> presents a 505 error page <view> to the <user>
IF
<HomeController> determines that the requested page is under maintenance
THEN
<system> presents a page maintenance page <view> to the <user>
END
Step 2: <HomeController> presents home page <view> to <user>
Step 3: <user> clicks on Start a Project menu
IF
<HomeController> fails to present the page to the <user>
IF
<HomeController> cannot find the page
THEN
<system> presents a 404 error page <view> to the <user>
IF
<HomeController> cannot determine what caused the error
THEN
<system> presents an Oops error page <view> to the <user>
IF
<HomeController> cannot process data or times out
THEN
<system> presents a 505 error page <view> to the <user>
IF
<HomeController> determines that the requested page is under maintenance
THEN
<system> presents a page maintenance page <view> to the <user>
END
Step 4: <HomeController> presents create new project page <view> to <user>
IF
<user> is logged on
THEN
END {link to step 5}
OTHERWISE
<HomeController> presents Sign Up form to <user>
END {link to step 5}
OTHERWISE
<HomeController> presents <user> logon page
END {link to step 5}
END
Step 5: <HomeController> presents project wizard page <view> to authorized <user>
END